/* ==========================================
   ACONSEGUIT ANGAMAR S.L. - Estilos principales
   ========================================== */

/* Variables CSS */
:root {
    --gold: #C9A227;
    --gold-dark: #A88A1F;
    --gold-light: #E5D190;
    --navy: #1A2F4A;
    --navy-light: #2C5364;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-light: #F5F5F5;
    --gray: #E8E8E8;
    --gray-dark: #D0D0D0;
    --text: #2D2D2D;
    --text-light: #6B7280;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Raleway', 'Segoe UI', sans-serif;
    
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition: all 0.3s ease;
}

/* Reset y base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--off-white);
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid var(--gray);
}

.header__logo img {
    height: 55px;
}

.header__contact {
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.header__contact a {
    color: var(--navy);
    font-weight: 600;
}

.header__contact a:hover {
    color: var(--gold);
}

.header__lang {
    display: flex;
    gap: 0.5rem;
}

.header__lang a {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}

.header__lang a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.header__lang a.active {
    background: var(--gold);
    color: var(--navy);
}

/* Pestañas de navegación */
.tabs {
    display: flex;
    justify-content: center;
    background: var(--white);
    border-bottom: 3px solid var(--gray-light);
}

.tab {
    padding: 1.25rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    background: transparent;
    position: relative;
    transition: var(--transition);
}

.tab::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab:hover {
    color: var(--navy);
}

.tab.active {
    color: var(--navy);
}

.tab.active::after {
    transform: scaleX(1);
}

/* ==========================================
   CONTENIDO DE PESTAÑAS
   ========================================== */
.tab-content {
    display: none;
    min-height: calc(100vh - 140px);
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ==========================================
   HERO
   ========================================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 140px);
    background: var(--off-white);
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid var(--gold);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero__title span {
    color: var(--gold);
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--gold {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.btn--gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201, 162, 39, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn--outline:hover {
    background: var(--navy);
    color: var(--white);
}

/* Hero features */
.hero__features {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray);
    flex-wrap: wrap;
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero__feature-icon {
    width: 45px;
    height: 45px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero__feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--navy);
}

.hero__feature span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

/* Hero imagen */
.hero__image {
    position: relative;
    overflow: hidden;
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: rgba(26, 47, 74, 0.95);
}

.hero__stat {
    flex: 1;
    padding: 1.5rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.hero__stat:last-child {
    border-right: none;
}

.hero__stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.hero__stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   SECCIONES GENÉRICAS
   ========================================== */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section--gray {
    background: var(--gray-light);
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.section--gray .section__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.section__header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.section__header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   SERVICIOS
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.service-card__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card__icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--white);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-card ul {
    margin-bottom: 1.5rem;
}

.service-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.9rem;
}

.service-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card__link:hover {
    color: var(--navy);
}

/* ==========================================
   PROYECTOS
   ========================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(26,47,74,0.95), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover .project-card__overlay {
    transform: translateY(0);
}

.project-card__tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.project-card h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.project-card__location {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

/* ==========================================
   ANTES / DESPUÉS - Estilo Polaroid
   ========================================== */
.before-after {
    padding: 5rem 2rem;
    background: var(--gray-light);
}

.before-after__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.before-after__header {
    text-align: center;
    margin-bottom: 3rem;
}

.before-after__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: var(--navy);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.before-after__subtitle {
    font-size: 1.1rem;
    color: var(--gold-dark);
    font-weight: 500;
}

/* Cuerda con polaroids */
.clothesline {
    position: relative;
    padding: 3rem 0;
}

.clothesline__rope {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #8B6914 5%, #8B6914 95%, transparent);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.clothesline__items {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 2rem 1rem 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.clothesline__items::-webkit-scrollbar {
    height: 8px;
}

.clothesline__items::-webkit-scrollbar-track {
    background: var(--gray);
    border-radius: 4px;
}

.clothesline__items::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

/* Polaroid individual */
.polaroid {
    flex-shrink: 0;
    width: 280px;
    background: var(--white);
    padding: 12px 12px 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform-origin: top center;
    scroll-snap-align: start;
    position: relative;
    transition: transform 0.3s ease;
}

.polaroid:nth-child(odd) {
    transform: rotate(-2deg);
}

.polaroid:nth-child(even) {
    transform: rotate(2deg);
}

.polaroid:nth-child(3n) {
    transform: rotate(-1deg);
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
}

/* Pinza */
.polaroid::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 35px;
    background: linear-gradient(135deg, #D4A574 0%, #8B6914 100%);
    border-radius: 4px 4px 8px 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 5;
}

.polaroid::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 12px;
    background: linear-gradient(135deg, #C19A6B 0%, #6B4423 100%);
    border-radius: 2px;
    z-index: 6;
}

.polaroid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 2px;
}

.polaroid__label {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* ==========================================
   SOBRE NOSOTROS
   ========================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image__badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gold);
    color: var(--navy);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.about-image__badge strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1;
}

.about-image__badge span {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.about-text .section__tag {
    text-align: left;
}

.about-text h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-text strong {
    color: var(--navy);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    gap: 1rem;
}

.about-feature__icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--gray-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-feature__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--gold);
}

.about-feature h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--navy);
}

.about-feature p {
    font-size: 0.85rem;
    margin: 0;
}

/* ==========================================
   CONTACTO
   ========================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info .section__tag {
    text-align: left;
}

.contact-info h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item__icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--gray-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--gold);
}

.contact-item h4 {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--navy);
}

.contact-item p,
.contact-item a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact-item a:hover {
    color: var(--gold);
}

/* Formulario */
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-group label span {
    color: var(--gold);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 2px solid var(--gray);
    border-radius: var(--radius-md);
    background: var(--off-white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.form-checkbox input {
    margin-top: 3px;
    accent-color: var(--gold);
}

.form-checkbox label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.form-submit {
    width: 100%;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
}

.footer__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer__logo img {
    height: 45px;
}

.footer__copyright {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.footer__links {
    display: flex;
    gap: 1.5rem;
}

.footer__links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.footer__links a:hover {
    color: var(--gold);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .hero__image {
        height: 50vh;
        order: -1;
    }
    
    .hero__content {
        padding: 2.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-image__badge {
        position: relative;
        bottom: auto;
        right: auto;
        display: inline-block;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .header__top {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .header__contact {
        display: none;
    }
    
    .tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab {
        padding: 1rem 1.25rem;
        font-size: 0.75rem;
    }
    
    .hero__features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero__stats {
        flex-direction: column;
    }
    
    .hero__stat {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 1rem;
    }
    
    .hero__stat:last-child {
        border-bottom: none;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features,
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .polaroid {
        width: 250px;
    }
    
    .footer__content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 1.5rem;
    }
    
    .hero__content {
        padding: 2rem 1.5rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .hero__cta {
        flex-direction: column;
    }
    
    .polaroid {
        width: 220px;
    }
}
