﻿/* Instituto Médico Natividad Cano - CSS Completo */

:root {
    --primary: #D4AF37;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --white: #fff;
    --accent: #8b7355;
    --text: #333;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; margin: 0; padding: 0; }
body { font-family: 'Jost', sans-serif; color: var(--text); line-height: 1.6; background: var(--white); margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-family: 'Cormorant Garamond', serif; font-weight: 300; color: var(--dark); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.3rem; }

/* ═══════════════════════════════════════════════════════════════
   HEADER / CABECERA - DISEÑO EXACTO SEGÚN IMAGEN
   ═══════════════════════════════════════════════════════════════ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #FAF7F2;
    border-bottom: 1px solid #f0ebe2;
    margin: 0;
    padding: 0;
}

/* FILA SUPERIOR - REDES SOCIALES */
.header-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 1cm;
    padding: 0 2rem;
    background-color: #f2eede;
    border-bottom: 1px solid #e8dfd3;
    width: 100%;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* FILA PRINCIPAL - LOGO | MENÚ | BOTÓN */
.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    height: 3cm;
    padding: 0 2rem;
}

/* LOGO - IZQUIERDA */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    flex-shrink: 0;
    white-space: normal;
}

.logo-circle {
    width: 48px;
    height: 48px;
    background-color: #D4AF37;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    font-family: 'Jost', sans-serif;
}

.logo-text {
    font-size: 0.75rem;
    line-height: 1.3;
    color: #888;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
}

.logo-text strong {
    display: block;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #888;
}

/* NAVEGACIÓN - CENTRO */
.main-navigation {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2.8rem;
    margin: 0;
    padding: 0;
    align-items: center;
    white-space: nowrap;
}

.main-navigation li {
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #888;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    font-family: 'Jost', sans-serif;
    display: block;
    padding: 0.4rem 0;
}

.main-navigation a:hover {
    color: #D4AF37;
}

/* LADO DERECHO - REDES + BOTÓN */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}

/* ICONOS DE REDES SOCIALES */
.social-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #D4AF37;
    transition: color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
    line-height: 1;
}

.social-link svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
}

.social-link:hover {
    color: #8b7355;
    transform: scale(1.2);
}

/* BOTÓN PEDIR CITA */
.btn-pedir-cita {
    display: inline-block;
    background-color: #D4AF37;
    color: white;
    padding: 9px 26px;
    border-radius: 25px;
    border: 2px solid #D4AF37;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: 'Jost', sans-serif;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-pedir-cita:hover {
    background-color: transparent;
    color: #D4AF37;
    transform: translateY(-2px);
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    margin: 0;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

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

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

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

/* HERO */
.hero {
    position: relative;
    height: calc(100vh - var(--header-height, 0px));
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-size: cover;
    background-position: top center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-content {
    max-width: 600px;
    color: var(--white);
}

.hero-eyebrow {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0.9;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--white);
}

.hero-title em {
    color: var(--primary);
    display: inline;
    font-style: normal;
    font-weight: 300;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    opacity: 0.85;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 3rem;
}

.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    font-size: 0.95rem;
    font-family: 'Jost', sans-serif;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* ANNOUNCEMENT */
.announcement-bar {
    background: rgba(212, 175, 55, 0.85);
    color: white;
    padding: 16px 2rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.1rem;
    line-height: 1.6;
}

.announcement-bar a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.announcement-bar a:hover {
    opacity: 0.9;
}

/* SECTIONS */
section { position: relative; padding: 6rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 0.5rem; font-weight: 600; }
.section-title { margin-bottom: 3rem; font-weight: 300; }
.section-title em { color: var(--primary); font-style: normal; font-weight: 400; }

/* PRESENTATION - QUIÉNES SOMOS */
.section-presentation {
    background: var(--white);
    padding: 6rem 2rem;
}

.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* IMAGEN IZQUIERDA */
.presentation-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    /* padding, background-color y border-radius se controlan desde ACF */
}

.presentation-image img {
    width: 100%;
    height: auto;
    display: block;
    /* opacity y border-radius se controlan desde ACF */
}

/* CONTENIDO DERECHA */
.presentation-content {
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

/* Pseudo-elemento para imagen de fondo con opacidad */
.presentation-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    /* background-image y opacity se setean desde inline style en el template */
}

.presentation-content > * {
    position: relative;
    z-index: 1;
}

/* Bloques de texto adicionales */
.pres-text-block {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0ebe2;
}

.pres-text-block p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #666;
}

.pres-text-block:first-child {
    border-top: none;
    padding-top: 0;
}

.section-label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #D4AF37;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.presentation-content .section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--dark);
}

.presentation-content .section-title em {
    font-style: italic;
    color: var(--dark);
    display: block;
}

.presentation-text {
    margin-bottom: 2rem;
}

.presentation-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #666;
}

.btn-outline {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid #333;
    color: #333;
    background: transparent;
    border-radius: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.75rem;
}

.btn-outline:hover {
    background: transparent;
    color: #D4AF37;
    border-color: #D4AF37;
}

/* TRABAJO */
.section-trabajo { background: var(--light); }
.trabajo-filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3rem; justify-content: flex-start; }
.trabajo-filter { padding: 8px 18px; border: 2px solid var(--primary); background: transparent; color: var(--primary); border-radius: 25px; font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: 0.3s; }
.trabajo-filter:hover, .trabajo-filter.active { background: var(--primary); color: var(--dark); }
.trabajo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.trabajo-item { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; aspect-ratio: 1; }
.trabajo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.trabajo-item:hover img { transform: scale(1.08); }
.trabajo-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; z-index: 5; }
.trabajo-item:hover .trabajo-overlay { opacity: 1; }
.trabajo-overlay span { color: var(--white); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: 0.95rem; }
.trabajo-item::after { content: 'NC'; position: absolute; bottom: 1rem; right: 1rem; width: 38px; height: 38px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--dark); font-weight: 700; z-index: 10; font-size: 0.85rem; }

/* NUESTRO TRABAJO - NUEVO DISEÑO */
.section-trabajo { padding: 4rem 2rem; }

/* FILTROS CON BORDES */
.trabajo-filters-new {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
}

.trabajo-filter-new {
    padding: 10px 24px;
    border: 2px solid #D4AF37;
    background: transparent;
    color: #D4AF37;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Jost', sans-serif;
}

.trabajo-filter-new:hover {
    background: #D4AF37;
    color: var(--white);
}

.trabajo-filter-new.active {
    background: #D4AF37;
    color: var(--white);
}

/* TAGS DE CATEGORÍAS */
.trabajo-tags {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.trabajo-tag {
    font-size: 0.75rem;
    color: #D4AF37;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Jost', sans-serif;
}

/* GRID 4 COLUMNAS */
.trabajo-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ITEMS CON LOGO NC */
.trabajo-item-new {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1;
    background: var(--white);
}

.trabajo-item-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trabajo-item-new:hover img {
    transform: scale(1.08);
}

/* LOGO NC EN LA ESQUINA */
.trabajo-logo-nc {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: #D4AF37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10;
    font-family: 'Jost', sans-serif;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .trabajo-grid-new { grid-template-columns: repeat(3, 1fr); }
}

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

@media (max-width: 480px) {
    .trabajo-grid-new { grid-template-columns: 1fr; }
}
.trabajo-overlay-simple { position: absolute; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; z-index: 5; }
.trabajo-item-simple:hover .trabajo-overlay-simple { opacity: 1; }
.trabajo-overlay-simple span { color: var(--white); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: 0.95rem; }

/* ARTICULOS - CARRUSEL */
.section-articulos { background: var(--white); }
.articulos-carousel { position: relative; margin-bottom: 3rem; }
.articulos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    transition: all 0.4s ease;
}

.articulo-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateX(0);
}

.articulo-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.articulo-thumbnail {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--light);
}

.articulo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.articulo-card:hover .articulo-thumbnail img {
    transform: scale(1.05);
}

.articulo-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.articulo-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.articulo-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    flex: 1;
    line-height: 1.3;
}

.articulo-title a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400;
}

.articulo-title a:hover {
    color: var(--accent);
}

.articulo-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-text {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
    display: inline-block;
    letter-spacing: 0.5px;
}

.btn-text:hover {
    color: var(--accent);
}

/* Paginación con puntitos */
.carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    font-size: 0;
}

.pagination-dot:hover {
    background: var(--primary);
    transform: scale(1.2);
}

.pagination-dot.active {
    background: var(--primary);
    width: 12px;
    height: 12px;
}

/* OPINIONES */
.section-opiniones { background: var(--light); }
.opiniones-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.opinion-card { background: var(--white); padding: 2rem; border-radius: 8px; text-align: center; box-shadow: var(--shadow); transition: 0.3s; }
.opinion-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opinion-avatar { width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; overflow: hidden; font-size: 1.1rem; }
.opinion-avatar img { width: 100%; height: 100%; object-fit: cover; }
.opinion-name { font-weight: 600; font-size: 1rem; margin-bottom: 0.5rem; }
.opinion-stars { display: block; color: var(--primary); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.opinion-text { font-size: 0.95rem; color: #666; line-height: 1.6; font-style: italic; }

/* PRENSA - CARRUSEL CON GRID */
.section-prensa {
    background: var(--white);
    padding: 6rem 2rem;
}

.prensa-carousel {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
}

.prensa-carousel-inner {
    position: relative;
    overflow: hidden;
}

/* SLIDES */
.prensa-slide {
    display: none;
    position: relative;
    animation: fadeIn 0.5s ease;
}

.prensa-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* GRID DE 4 ARTÍCULOS POR PÁGINA */
.prensa-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* TARJETAS DE PRENSA */
.prensa-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.prensa-card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.prensa-card-link {
    display: block;
    text-decoration: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* IMAGEN DE LA TARJETA */
.prensa-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.prensa-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* TÍTULO DE LA TARJETA */
.prensa-card-title {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--dark);
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.prensa-card-link:hover .prensa-card-title {
    color: var(--primary);
}

/* PAGINACIÓN - DOTS */
.prensa-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.prensa-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.prensa-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.prensa-dot:hover {
    background: rgba(212, 175, 55, 0.5);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .prensa-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .prensa-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .prensa-card-image {
        height: 150px;
    }

    .prensa-card-title {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

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

    .prensa-card-image {
        height: 180px;
    }
}

/* CONTACTO */
.section-contacto { background: var(--light); text-align: center; }
.contacto-subtitle { font-size: 1.1rem; margin-bottom: 3rem; color: var(--text); font-weight: 300; }
.nc-contact-form { max-width: 700px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.form-row.single { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; }
.form-field label { font-weight: 500; margin-bottom: 0.5rem; font-size: 0.95rem; color: var(--dark); text-align: left; }
.nc-input { padding: 12px 1rem; border: 2px solid var(--border); border-radius: 4px; font-size: 1rem; font-family: inherit; transition: 0.3s; width: 100%; }
.nc-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(212,175,55,0.1); }
.form-legal { margin: 2rem 0; text-align: left; padding: 1.5rem; background: rgba(212,175,55,0.08); border-radius: 4px; }
.form-check { display: flex; gap: 1rem; margin-bottom: 1rem; font-size: 0.85rem; }
.form-check input[type='checkbox'] { flex-shrink: 0; margin-top: 3px; cursor: pointer; }
.form-check label { cursor: pointer; line-height: 1.5; }
.btn-submit { background: var(--primary); color: var(--dark); width: 100%; padding: 14px 32px; border: none; border-radius: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: 0.3s; margin-top: 2rem; font-size: 0.95rem; }
.btn-submit:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,0.2); }

/* FOOTER */
.site-footer { position: relative; background: var(--dark); color: var(--white); padding: 0; margin-top: 4rem; }
.section-bg-img { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; opacity: 0.2; }
.section-bg-overlay { position: absolute; inset: 0; background: rgba(26,20,16,.92); z-index: 1; }
.footer-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 6rem 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4rem; }

.footer-logo-wrap { text-align: center; }
.footer-logo-mark { width: 60px; height: 60px; margin: 0 auto 1.5rem; background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--white); display: flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 700; font-size: 1.3rem; }
.footer-logo-name { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 300; margin-bottom: 1.5rem; letter-spacing: 0.5px; }
.footer-divider { width: 50px; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); margin: 1.5rem auto; }

.footer-info-group { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-info-title { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 400; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.footer-info-item { font-size: 0.9rem; line-height: 1.8; }
.footer-info-item a { color: var(--primary); text-decoration: none; transition: 0.3s; }
.footer-info-item a:hover { color: var(--accent); }

.footer-nav { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav li { margin: 0; }
.footer-nav a { color: var(--white); text-decoration: none; font-size: 0.85rem; transition: 0.3s; display: inline-block; }
.footer-nav a:hover { color: var(--primary); text-decoration: underline; }

.footer-social { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; }
.footer-social a { display: inline-flex; width: 36px; height: 36px; color: var(--primary); background: rgba(212,175,55,0.1); border-radius: 50%; align-items: center; justify-content: center; transition: 0.3s; }
.footer-social a:hover { background: var(--primary); color: var(--dark); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-separator { position: absolute; bottom: 4.5rem; left: 2rem; right: 2rem; height: 1px; background: linear-gradient(90deg, transparent, var(--primary), transparent); }
.footer-gold-bar { position: absolute; bottom: 4rem; left: 0; right: 0; height: 3px; background: var(--primary); }
.footer-copy { position: relative; z-index: 3; text-align: center; font-size: 0.85rem; padding: 1.5rem 2rem; margin: 0; color: rgba(255,255,255,0.7); border-top: 1px solid rgba(212,175,55,0.2); }

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 2rem; }
    .footer-logo-wrap { margin-bottom: 1rem; }
    .footer-social { justify-content: center; }
}

/* MENU ACCORDION */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s ease;
}

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

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

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

/* Submenus */
.main-navigation li ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    border-radius: 4px;
    gap: 0;
    min-width: 200px;
}

.main-navigation li:hover > ul {
    display: flex;
}

.main-navigation li ul li a {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
    display: block;
    width: 100%;
}

.submenu-toggler {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    color: var(--primary);
}

.submenu-toggler .icon {
    font-size: 1.2rem;
    display: block;
}

.submenu-toggler.active .icon {
    transform: rotate(45deg);
}

/* RESPONSIVE */
/* RESPONSIVE - TABLET */
@media (max-width: 1024px) {
    .site-header {
        padding: 0.6rem 1.5rem;
    }

    .header-inner {
        gap: 2rem;
    }

    .main-navigation ul {
        gap: 2rem;
    }

    .main-navigation a {
        font-size: 0.7rem;
        letter-spacing: 0.8px;
    }

    .header-actions {
        gap: 1.2rem;
    }

    .social-link {
        width: 18px;
        height: 18px;
    }

    .btn-pedir-cita {
        padding: 8px 22px;
        font-size: 0.7rem;
    }
}

/* RESPONSIVE - MOBILE */
@media (max-width: 900px) {
    /* FRANJA SUPERIOR - REDES SOCIALES (SIN MÁRGENES) */
    .header-top {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        padding: 0 2rem;
        height: 1cm;
    }

    /* HEADER RESPONSIVE */
    .header-inner {
        gap: 1rem;
    }

    /* LOGO RESPONSIVO */
    .site-logo {
        flex: 0 0 auto;
    }

    .logo-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .logo-text {
        font-size: 0.65rem;
        line-height: 1.2;
    }

    .logo-text strong {
        font-size: 0.65rem;
    }

    /* MENÚ OCULTO EN MÓVIL */
    .main-navigation {
        display: none !important;
        position: fixed;
        top: 121px;
        left: 0;
        right: 0;
        width: 100vw;
        background-color: #f2eede;
        flex-direction: column;
        z-index: 999;
        padding: 2rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        max-height: calc(100vh - 121px);
        overflow-y: auto;
        border-top: 1px solid #e8dfd3;
    }

    .main-navigation.open {
        display: flex !important;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1.5rem;
        white-space: normal;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .main-navigation li {
        margin: 0;
        padding: 0;
    }

    .main-navigation a {
        font-size: 0.9rem;
        padding: 0.8rem 0;
        display: block;
        color: #333;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: color 0.3s ease;
    }

    .main-navigation a:hover {
        color: #D4AF37;
    }

    /* HAMBURGER VISIBLE EN MÓVIL */
    .hamburger {
        display: flex !important;
        position: relative;
        z-index: 1001;
    }

    .hamburger span {
        background-color: #333;
    }

    /* ACCIONES EN MÓVIL */
    .header-actions {
        display: flex;
        gap: 1rem;
        align-items: center;
        flex-shrink: 0;
        margin-left: auto;
    }

    .btn-pedir-cita {
        padding: 8px 16px;
        font-size: 0.65rem;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.6rem 1rem;
    }

    .header-inner {
        gap: 1.2rem;
    }

    .logo-circle {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }

    .logo-text {
        font-size: 0.65rem;
    }

    .main-navigation {
        padding: 1.2rem 1.5rem;
        top: 60px;
    }

    .header-actions {
        gap: 0.8rem;
    }

    .social-link {
        width: 16px;
        height: 16px;
    }

    .btn-pedir-cita {
        padding: 7px 18px;
        font-size: 0.65rem;
    }

    .hamburger span {
        width: 20px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0.5rem 0.8rem;
    }

    .header-inner {
        gap: 0.8rem;
    }

    .logo-circle {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .logo-text {
        font-size: 0.6rem;
    }

    .main-navigation {
        padding: 1rem 1.2rem;
        top: 55px;
    }

    .main-navigation a {
        font-size: 0.75rem;
    }

    .header-actions {
        gap: 0.6rem;
    }

    .social-link {
        width: 15px;
        height: 15px;
    }

    .btn-pedir-cita {
        padding: 6px 16px;
        font-size: 0.6rem;
    }

    .hamburger {
        padding: 4px;
    }

    .hamburger span {
        width: 18px;
    }
}

/* Hero Responsive */
@media (max-width: 1024px) {
    .hero {
        background-attachment: scroll;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        justify-content: center;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    }

    .hero-inner {
        padding: 0 1.5rem;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-eyebrow {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 400px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .hero-eyebrow {
        font-size: 0.7rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .hero-cta {
        margin-top: 2rem;
    }
}

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .main-navigation {
        display: none;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: white;
        z-index: 999;
        padding: 2rem;
        overflow-y: auto;
        gap: 1rem;
        align-items: stretch;
    }

    .main-navigation.open {
        display: flex;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        position: relative;
    }

    .main-navigation a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid #E0E0E0;
        font-size: 0.9rem;
    }

    .main-navigation li:last-child a {
        border-bottom: none;
    }

    .main-navigation li ul {
        display: none;
        position: static;
        background: #f5f5f5;
        box-shadow: none;
        padding: 0;
        margin-top: 0.5rem;
        border-radius: 0;
        min-width: auto;
    }

    .main-navigation li ul.open {
        display: flex;
    }

    .main-navigation li ul li a {
        padding: 0.75rem 0 0.75rem 1rem;
        border-bottom: 1px solid #E8E4DC;
        font-size: 0.85rem;
        margin-left: 0;
    }

    .submenu-toggler {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        padding: 8px 12px;
        margin: 0;
    }

    .menu-cta {
        margin-top: auto;
    }

    .menu-cta a {
        background: var(--primary);
        color: var(--dark) !important;
        padding: 12px 24px;
        border-radius: 4px;
        text-align: center;
        border: none;
        font-weight: 600;
    }

    .menu-cta a:hover {
        background: var(--accent);
        color: white !important;
    }

    /* Prevenir scroll cuando menú está abierto */
    body.menu-open {
        overflow: hidden;
    }

    html.menu-open {
        overflow: hidden;
    }

    .site-header {
        transition: transform 0.3s ease;
    }

    .site-header.scrolled-down {
        transform: translateY(-100%);
    }

    .site-header.scrolled-up {
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .trabajo-grid { grid-template-columns: repeat(3, 1fr); }
    .trabajo-grid-simple { grid-template-columns: repeat(3, 1fr); }
    .articulos-grid { grid-template-columns: repeat(2, 1fr); }
    .opiniones-grid { grid-template-columns: repeat(2, 1fr); }
    .prensa-grid { grid-template-columns: repeat(2, 1fr); }

    .carousel-pagination {
        gap: 8px;
    }

    .pagination-dot {
        width: 10px;
        height: 10px;
        border-width: 1.5px;
    }
}

@media (max-width: 768px) {
    .presentation-grid { grid-template-columns: 1fr; gap: 2rem; }
    .trabajo-grid { grid-template-columns: repeat(2, 1fr); }
    .trabajo-grid-simple { grid-template-columns: repeat(2, 1fr); }
    .articulos-grid { grid-template-columns: 1fr; }
    .opiniones-grid { grid-template-columns: 1fr; }
    .prensa-grid { grid-template-columns: 1fr; }

    .articulo-title {
        font-size: 1.1rem;
    }

    .carousel-pagination {
        gap: 6px;
        margin-top: 2rem;
    }

    .pagination-dot {
        width: 9px;
        height: 9px;
        border-width: 1.5px;
    }
}

@media (max-width: 480px) {
    section { padding: 3rem 1rem; }
    .trabajo-filter { padding: 6px 12px; font-size: 0.75rem; }

    .articulo-body {
        padding: 1.5rem;
    }

    .articulo-title {
        font-size: 1rem;
    }

    .articulo-excerpt {
        font-size: 0.9rem;
    }

    .carousel-pagination {
        gap: 6px;
        margin-top: 1.5rem;
    }

    .pagination-dot {
        width: 8px;
        height: 8px;
        border-width: 1px;
    }
}
