/* =========================================================
   ÓPTICA INNOVA - Hoja de estilos principal
   Paleta: Blanco roto #FAF8F5 | Naranja #E87722 | Marrón #3D1F0A
   Tipografías: Poppins (titulares) + Lato (texto)
   Mobile-first - Responsive
   ========================================================= */

/* ============== VARIABLES ============== */
:root {
    --color-bg: #FAF8F5;
    --color-bg-alt: #F2EDE5;
    --color-primary: #E87722;
    --color-primary-dark: #C45F12;
    --color-primary-light: #FBE7D4;
    --color-text: #3D1F0A;
    --color-text-soft: #6B4A33;
    --color-muted: #8C7361;
    --color-white: #FFFFFF;
    --color-border: #E6DED2;
    --color-dark: #2A1505;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 2px 8px rgba(61, 31, 10, 0.06);
    --shadow: 0 8px 24px rgba(61, 31, 10, 0.08);
    --shadow-lg: 0 20px 40px rgba(61, 31, 10, 0.12);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --container: 1200px;
    --header-height: 80px;
}

/* ============== RESET ============== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--color-primary-dark);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ============== UTILS ============== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============== TIPOGRAFÍA ============== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

h4 {
    font-size: 1.05rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-soft);
}

.eyebrow,
.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

/* ============== BUTTONS ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all var(--transition);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(232, 119, 34, 0.35);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 119, 34, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-text);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    background: #1da851;
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    transition: gap var(--transition);
}

.btn-link:hover {
    gap: 0.85rem;
    color: var(--color-primary-dark);
}

/* ============== HEADER ============== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.logo i {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.logo strong {
    color: var(--color-primary);
    font-weight: 800;
}

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

.logo-img {
    display: block;
    height: 72px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* Menú principal */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.95rem;
    position: relative;
    padding: 0.3rem 0;
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition);
}

.main-nav a:not(.btn):hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active {
    color: var(--color-primary);
}

.main-nav a.btn {
    color: var(--color-white);
}

/* Toggle móvil */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    height: 32px;
    justify-content: center;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--color-text);
    border-radius: 3px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============== HERO ============== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(61, 31, 10, 0.82) 0%, rgba(61, 31, 10, 0.48) 100%),
                url('../img/hero.webp') center center / cover no-repeat;
    z-index: -1;
}

/* Patrón decorativo opcional */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(232, 119, 34, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(232, 119, 34, 0.15) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    color: var(--color-white);
}

.hero-eyebrow {
    color: var(--color-primary);
    background: rgba(232, 119, 34, 0.18);
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 1.25rem;
}

.hero-text {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.hero .btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-text);
    border-color: var(--color-white);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
}

.hero-badges li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-badges i {
    color: var(--color-primary);
}

/* ============== PAGE HERO (sub-páginas) ============== */
.page-hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(232, 119, 34, 0.08), transparent 60%);
    pointer-events: none;
}

.page-hero h1 {
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ============== SECTIONS ============== */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-dark {
    background: var(--color-text);
    color: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}

.section-header p {
    font-size: 1.05rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-2.reverse > div:first-child {
    order: 2;
}

/* ============== INTRO SECTION ============== */
.intro-image {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.intro-image::before,
.intro-image::after {
    content: none;
}

/* ============== SERVICES GRID ============== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--color-white);
    padding: 2.25rem 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--color-border);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.05);
}

.service-card h3 {
    margin-bottom: 0.75rem;
}

.service-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.center-cta {
    text-align: center;
    margin-top: 1rem;
}

/* ============== SERVICIOS DETALLE ============== */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.service-item.reverse .service-image {
    order: 2;
}

.service-image {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-bg-alt));
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.service-image::before {
    content: '\f06e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    color: var(--color-primary);
    opacity: 0.3;
}

.service-image.has-photo::before {
    content: none;
}

.service-icon-lg {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 16px rgba(232, 119, 34, 0.35);
}

.service-info h2 {
    margin-bottom: 1rem;
}

.check-list {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--color-text-soft);
}

.check-list i {
    color: var(--color-primary);
    margin-top: 0.35rem;
    font-size: 0.85rem;
    background: var(--color-primary-light);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.benefit {
    text-align: center;
    padding: 1.5rem 1rem;
}

.benefit i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    display: inline-block;
}

.benefit h3 {
    margin-bottom: 0.6rem;
}

.benefit p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============== TESTIMONIALS ============== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.testimonial {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.testimonial:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.stars {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1.25rem;
}

.testimonial footer {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.testimonial footer strong {
    color: var(--color-text);
    font-family: var(--font-heading);
}

/* ============== CTA BANNER ============== */
.cta-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 4rem 0;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
}

.cta-banner h2 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 1.05rem;
}

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

.cta-banner .btn-primary:hover {
    background: var(--color-text);
    color: var(--color-white);
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-actions.center {
    justify-content: center;
}

/* ============== GALLERY ============== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--color-primary-light), #fff);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    cursor: pointer;
    transform: translateZ(0);
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--color-text);
    color: var(--color-white);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 500;
}

/* ============== ABOUT ============== */
.about-photo {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-photo-wide {
    aspect-ratio: 4 / 3;
}

.gallery-photo-graduadas,
.gallery-photo-sol,
.gallery-photo-infantiles,
.gallery-photo-montura {
    /* background cargado vía data-bg (lazy) */
}


/* ============== VALUES ============== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
}

.value-card {
    background: var(--color-white);
    padding: 2.25rem 1.75rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    margin-bottom: 1.25rem;
    transition: all var(--transition);
}

.value-card:hover .value-icon {
    background: var(--color-primary);
    color: var(--color-white);
}

.value-card h3 {
    margin-bottom: 0.6rem;
}

.value-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ============== STATS ============== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.3rem;
}

.stat span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

/* ============== BLOG ============== */
.blog-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.75rem;
}

.blog-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.blog-card-img {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-bg-alt));
    position: relative;
    overflow: hidden;
}

.blog-card-img::before {
    content: '\f06e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.35;
}

.blog-card-img.bg-2 { background: linear-gradient(135deg, #FBE7D4, #F8D7B8); }
.blog-card-img.bg-2::before { content: '\f06e'; }
.blog-card-img.bg-3 { background: linear-gradient(135deg, #F2EDE5, #E6DED2); }
.blog-card-img.bg-3::before { content: '\f2a2'; }
.blog-card-img.bg-4 { background: linear-gradient(135deg, #FBE7D4, #FAF8F5); }
.blog-card-img.bg-4::before { content: '\f109'; }
.blog-card-img.bg-5 { background: linear-gradient(135deg, #F8D7B8, #FBE7D4); }
.blog-card-img.bg-5::before { content: '\f185'; }
.blog-card-img.bg-6 { background: linear-gradient(135deg, #FAF8F5, #F2EDE5); }
.blog-card-img.bg-6::before { content: '\f002'; }

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-tag {
    display: inline-block;
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.85rem;
    align-self: flex-start;
}

.blog-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
}

.blog-card p {
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 1rem;
}

.blog-soon {
    color: var(--color-muted);
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.notify-box {
    background: var(--color-white);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}

.notify-box h2 {
    margin-bottom: 0.75rem;
}

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

.contact-card {
    background: var(--color-white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
    color: var(--color-text);
    display: block;
}

.contact-card:hover:not(.no-link) {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
    border-color: var(--color-primary-light);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    transition: all var(--transition);
}

.contact-card:hover:not(.no-link) .contact-icon {
    background: var(--color-primary);
    color: var(--color-white);
}

.contact-card h3 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.contact-card p {
    color: var(--color-text-soft);
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.contact-action {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.contact-card.no-link {
    cursor: default;
}

/* Layout formulario + mapa */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.contact-layout-single {
    grid-template-columns: 1fr;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-wrap {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}

.contact-form-wrap h2 {
    margin-bottom: 0.5rem;
}

.contact-form {
    margin-top: 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-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(232, 119, 34, 0.12);
}

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

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 0.2rem;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-check label {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--color-text-soft);
    font-weight: 400;
    font-family: var(--font-body);
    cursor: pointer;
}

.form-feedback {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: none;
}

.form-feedback.success {
    display: block;
    background: #DFF3E1;
    color: #1B6A2A;
    border: 1px solid #B7DDBC;
}

.form-feedback.error {
    display: block;
    background: #FCE3E3;
    color: #8E1B1B;
    border: 1px solid #F2BCBC;
}

/* Lado del mapa */
.contact-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-map {
    min-height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}

.contact-side-info {
    background: var(--color-white);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.contact-side-info h2,
.contact-side-info h3 {
    margin-bottom: 0.6rem;
}

.contact-side-info .footer-contact li {
    color: var(--color-text-soft);
}

.contact-side-info .footer-list a {
    color: var(--color-text-soft);
}

.contact-side-info .footer-list a:hover {
    color: var(--color-primary);
}

/* ============== FOOTER ============== */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.75);
    padding-top: 4rem;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

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

.footer-grid h4 {
    color: var(--color-white);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logo-footer {
    color: var(--color-white);
    margin-bottom: 1rem;
    display: inline-flex;
}

.logo-footer:hover {
    color: var(--color-white);
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.footer-list a:hover {
    color: var(--color-primary);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--color-primary);
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom p {
    text-align: center;
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

/* ============== WHATSAPP FLOTANTE ============== */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: all var(--transition);
    animation: pulse 2.5s infinite;
}

.whatsapp-float:hover {
    background: #1da851;
    color: var(--color-white);
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    50% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0);
    }
}

/* ============== ANIMACIONES SCROLL ============== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item.reveal {
    transform: none;
    transition: opacity 0.7s ease-out, box-shadow var(--transition), transform var(--transition);
}

.gallery-item.reveal.visible {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .whatsapp-float {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ============== RESPONSIVE ============== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .grid-2,
    .service-item,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .grid-2.reverse > div:first-child {
        order: 0;
    }
    .service-item .service-image {
        order: 2;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3.5rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: var(--color-white);
        padding: calc(var(--header-height) + 1.5rem) 2rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right var(--transition);
        overflow-y: auto;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 0.85rem 0;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--color-border);
    }

    .main-nav a:not(.btn)::after {
        display: none;
    }

    .main-nav a.btn {
        margin-top: 1rem;
        text-align: center;
        border-bottom: none;
    }

    .hero {
        min-height: 80vh;
        text-align: left;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-badges {
        flex-direction: column;
        gap: 0.6rem;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

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

    .contact-form-wrap {
        padding: 1.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 1.7rem;
        bottom: 1.2rem;
        right: 1.2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    .section {
        padding: 3rem 0;
    }
    .btn {
        padding: 0.85rem 1.4rem;
        font-size: 0.95rem;
    }
    .contact-form-wrap {
        padding: 1.5rem 1.25rem;
    }
    .logo-img {
        height: 58px;
        max-width: 170px;
    }
}

/* Overlay para menú móvil */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.no-scroll {
    overflow: hidden;
}
