/* Design2: Pasión & Alma - Alta Joyería */

:root {
    /* Colores - Tokens de diseño */
    --color-azabache: #121110;
    --color-granito: #2A2927;
    --color-piedra: #E7E4DE;
    --color-marfil: #FAF8F4;
    --color-oro: #A98B5B;

    --color-text-dark: #1A1A1A;
    --color-text-light: #666;
    --color-text-muted: #999;
    --color-border: #D0CCC3;

    /* Tipografía */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Hanken Grotesk', sans-serif;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Radios */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;

    /* Breakpoints */
    --bp-sm: 640px;
    --bp-md: 768px;
    --bp-lg: 1024px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background: var(--color-marfil);
    padding-top: 30px;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
    color: var(--color-text-light);
}

a {
    color: var(--color-oro);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

a:focus-visible {
    outline: 2px solid var(--color-oro);
    outline-offset: 2px;
}

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

/* Layout Grid */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* TOPBAR */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--color-azabache);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.topbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.topbar-right {
    text-align: right;
}

.topbar-tagline {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.topbar-link {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.topbar-link:hover {
    color: var(--color-oro);
}

.topbar-divider {
    color: rgba(255, 255, 255, 0.3);
}

/* MENU TOGGLE */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 0.5rem;
    z-index: 1002;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: black;
    transition: all 0.3s;
}

.menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}


/* RESPONSIVE MENU */
@media (max-width: 768px) {
    .header {
        border-bottom: none;
    }
    
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem var(--spacing-lg);
        gap: 1rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo-link {
        order: 1;
        z-index: 1003;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .menu-toggle {
        display: flex !important;
        order: 2;
        z-index: 1003;
        padding: 0.75rem;
    }
    
    .hamburger {
        width: 28px;
        height: 3px;
    }
    
    .nav-links {
        display: flex !important;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-azabache);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow-y: auto;
        transition: max-height 0.3s ease;
        width: 100%;
        height: calc(100vh - 80px);
        z-index: 1001;
        justify-content: flex-start;
        padding-top: 0;
    }
    
    .nav-links.active {
        max-height: 100vh;
    }
    
    .nav-links li {
        width: 100%;
        border: none;
    }
    
    .nav-links li a {
        display: block;
        padding: 1.5rem 1rem;
        color: white;
        text-decoration: none;
        text-align: center;
    }
    
    .nav-links li a:hover,
    .nav-links li a.nav-cta {
        background: var(--color-oro);
        color: #1A1A1A;
        font-weight: 600;
        margin: 2rem 1rem;
        border-radius: 4px;
    }
    
    @media (max-width: 768px) {
        .nav-links li a.nav-cta {
            margin: 2rem auto;
            display: block;
            text-align: center;
            max-width: 90%;
            width: 100%;
        }
    }
}

/* RESPONSIVE TOPBAR */
@media (max-width: 768px) {
    .topbar {
        padding: 0.4rem 0;
        font-size: 0.7rem;
    }
    
    .topbar-container {
        padding: 0 1rem;
        gap: 0.5rem;
    }
    
    .topbar-left {
        gap: 0.3rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .topbar-divider {
        display: none;
    }
    
    .topbar-right {
        display: none;
    }
    
    .topbar-link {
        white-space: nowrap;
    }
}

/* HEADER & NAV */
.header {
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: none;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #000000;
    letter-spacing: 0.3px;
    text-shadow: none;
}

.nav-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFFFF;
    background: var(--color-oro);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    margin-left: var(--spacing-lg);
    text-shadow: none;
}

.nav-cta:hover {
    background: #c49950;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(169, 139, 91, 0.3);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px var(--spacing-lg) var(--spacing-2xl);
    background: var(--color-azabache);
    color: white;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-title {
    color: white;
    margin-bottom: var(--spacing-lg);
    font-size: 3.2rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}


@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        padding: 100px var(--spacing-md) var(--spacing-xl);
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* BOTONES */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--color-azabache);
    color: white;
}

.btn-primary:hover {
    background: var(--color-granito);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: white;
    color: var(--color-azabache);
    text-shadow: none;
}

/* SECCIONES */
section {
    padding: var(--spacing-2xl) var(--spacing-lg);
}

/* MANIFIESTO */
.manifesto {
    background: var(--color-marfil);
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.manifesto-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.manifesto-lead {
    font-size: 1.3rem;
    font-family: var(--font-serif);
    line-height: 1.8;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

.manifesto-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* COLECCIÓN INTRO */
.collection-intro {
    background: white;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.collection-intro h2 {
    color: var(--color-text-dark);
}

.collection-intro p {
    max-width: 900px;
    margin: 0 auto var(--spacing-md);
    line-height: 1.8;
}

.collection-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

@media (max-width: 768px) {
    .collection-layout {
        grid-template-columns: 1fr;
    }
}

.collection-text {
    max-width: 500px;
}

.collection-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.collection-image img {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* MATERIALES */
.materials {
    background: linear-gradient(135deg, rgba(232, 212, 192, 0.8) 0%, rgba(42, 41, 39, 0.1) 100%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20 20 Q50 30 80 20 L80 80 Q50 70 20 80 Z" fill="rgba(169, 139, 91, 0.05)" stroke="none"/></svg>');
    background-size: cover;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.materials-intro {
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
    text-align: center;
    font-size: 1.1rem;
    font-style: italic;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.material-item {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.material-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.material-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.material-item h3 {
    color: var(--color-azabache);
    margin-bottom: var(--spacing-sm);
    margin-top: 0;
    padding: var(--spacing-lg) var(--spacing-lg) 0;
}

.material-item p {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    margin: 0;
}

/* ACABADOS */
.finishes {
    background: var(--color-marfil);
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.finishes h2 {
    color: var(--color-text-dark);
}

.finishes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

@media (max-width: 1024px) {
    .finishes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .finishes-grid {
        grid-template-columns: 1fr;
    }
}

.finish-card {
    text-align: center;
}

.finish-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
}

.finish-card h3 {
    font-size: 1.2rem;
}

.finish-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* CATÁLOGO */
.catalog {
    background: white;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.catalog h2 {
    color: var(--color-text-dark);
}

.catalog-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    font-size: 1.1rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
}

.catalog-item {
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s, opacity 0.2s;
    padding: 0;
}

.catalog-item:hover {
    transform: translateY(-4px);
}

.catalog-item:focus-visible {
    outline: 2px solid var(--color-oro);
    outline-offset: 4px;
}

.catalog-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
}

.catalog-item h3 {
    color: var(--color-text-dark);
    font-size: 1.1rem;
}

.catalog-cta {
    font-size: 0.9rem;
    color: var(--color-oro);
    font-weight: 600;
    margin-top: var(--spacing-xs);
    font-family: var(--font-sans);
    transition: all 0.2s;
}

.catalog-item:hover .catalog-cta {
    color: var(--color-text-dark);
}

/* DIALOG */
.product-dialog {
    background: var(--color-marfil);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    max-width: 1100px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.product-dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: var(--color-marfil);
}

.dialog-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.dialog-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-muted);
    line-height: 1;
    transition: color 0.2s;
}

.dialog-close:hover {
    color: var(--color-azabache);
}

.dialog-content {
    padding: var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

@media (max-width: 768px) {
    .dialog-content {
        grid-template-columns: 1fr;
    }
}

.dialog-image-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.dialog-image-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.dialog-thumbnails {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-start;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.thumb {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    padding: 0;
    overflow: hidden;
}

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

.thumb.active {
    border-color: var(--color-oro);
}

.thumb:hover {
    opacity: 0.8;
}

.dialog-info {
    display: flex;
    flex-direction: column;
}

.dialog-info h3 {
    color: var(--color-text-dark);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

.dialog-info p {
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.specs {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* NAVEGACIÓN DE IMÁGENES EN DIALOG */
.dialog-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.dialog-nav-btn {
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--color-border);
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-text-dark);
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-nav-btn:hover {
    background: white;
    border-color: var(--color-oro);
    color: var(--color-oro);
    box-shadow: 0 4px 12px rgba(169, 139, 91, 0.3);
}

.dialog-nav-prev {
    left: 10px;
}

.dialog-nav-next {
    right: 10px;
}

/* REFERENCIA DE TAMAÑO */
.dialog-size-reference {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: #FAF8F4;
    border-radius: var(--radius-md);
    text-align: center;
}

.dialog-size-reference img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

/* TAMAÑOS Y DETALLES */
.dialog-sizes {
    background: #FAF8F4;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

.dialog-sizes h4,
.dialog-details h4 {
    font-family: var(--font-serif);
    color: var(--color-text-dark);
}

.dialog-details {
    background: #FAF8F4;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

/* DISTRIBUIDORES */
.distribution {
    background: linear-gradient(to bottom, rgba(250, 248, 244, 0.95), rgba(232, 212, 192, 0.5));
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.distribution h2 {
    color: var(--color-text-dark);
}

.distribution-intro {
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-text-light);
}

.distribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.distribution-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    position: relative;
    transition: all 0.2s;
    text-align: center;
}

.distribution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.distribution-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, rgba(169, 139, 91, 0.1), rgba(169, 139, 91, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-oro);
}

.distribution-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-oro);
}

.distribution-card h3 {
    color: var(--color-azabache);
    margin-bottom: var(--spacing-sm);
}

.distribution-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* EN EL CAMINO */
.on-the-way {
    background: var(--color-marfil);
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.on-the-way h2 {
    color: var(--color-text-dark);
    text-align: center;
}

.way-intro {
    max-width: 900px;
    margin: 0 auto var(--spacing-2xl);
    text-align: center;
}

.way-intro p {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.way-quote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-azabache);
    font-weight: 500;
    margin: var(--spacing-xl) auto;
    border-left: 4px solid var(--color-oro);
    padding-left: var(--spacing-lg);
}

.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

figure {
    margin: 0;
}

figure img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

figcaption {
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: left;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

figcaption strong {
    display: block;
    color: var(--color-azabache);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

/* FAQ */
.faq {
    background: white;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.faq h2 {
    color: var(--color-text-dark);
    text-align: center;
}

.faq-list {
    max-width: 800px;
    margin: var(--spacing-xl) auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-lg) 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-text-dark);
    user-select: none;
    transition: color 0.2s;
}

.faq-item summary:hover {
    color: var(--color-oro);
}

.faq-item p {
    margin-top: var(--spacing-md);
    color: var(--color-text-light);
}

/* CONTACTO */
.contact {
    background: linear-gradient(135deg, rgba(232, 212, 192, 0.4) 0%, rgba(250, 248, 244, 1) 100%);
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.contact h2 {
    color: var(--color-text-dark);
}

.contact-subtitle {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: var(--spacing-xl);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

.contact-content {
    max-width: 400px;
}

.contact-form {
    max-width: 500px;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    display: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: none;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    background: transparent;
    transition: all 0.2s;
    color: var(--color-text-dark);
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--color-oro);
    background: transparent;
}

.form-group textarea {
    resize: vertical;
    border-bottom: 2px solid transparent;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.form-group.checkbox input {
    margin-top: 4px;
    width: auto;
    cursor: pointer;
}

.form-group.checkbox label {
    display: block;
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9rem;
    cursor: pointer;
}

.contact-alt {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
}

.contact-alt p {
    margin-bottom: var(--spacing-md);
}

/* FOOTER */
.footer {
    background: var(--color-azabache);
    color: white;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.footer-brand {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: var(--spacing-md);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-style: italic;
    margin: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.footer-column h3 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-sm);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-column a:hover {
    color: var(--color-oro);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* WHATSAPP FLOTANTE */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #25D366 0%, #20BA61 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(25, 211, 102, 0.35);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    z-index: 999;
    animation: whatsapp-pulse 2.5s infinite;
}

.whatsapp-float svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.whatsapp-float:hover {
    transform: scale(1.18) translateY(-4px);
    box-shadow: 0 12px 40px rgba(25, 211, 102, 0.45);
}

.whatsapp-float:active {
    transform: scale(1.1);
}

.whatsapp-float:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

@keyframes whatsapp-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

/* ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: var(--color-granito);
        color: rgba(255, 255, 255, 0.9);
    }

    .hero-subtitle {
        color: rgba(255, 255, 255, 0.7);
    }
}
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
    
    .nav-links {
        display: flex !important;
        position: static !important;
        max-height: none !important;
        background: none !important;
        width: auto !important;
        z-index: auto !important;
    }
}