/* ============================================
   Viajes Coorp - Luxury travel palette
   Primary: Deep Ocean Blue | Secondary: Royal Blue | Accent: Gold
   Fuentes: Playfair Display (títulos), Poppins (texto)
   ============================================ */

:root {
    --primary: #0B3C5D;
    --primary-dark: #072536;
    --secondary: #1D4ED8;
    --accent: #D4AF37;
    --accent-light: #e5c65c;
    --white: #ffffff;
    --bg-light: #F5F7FA;
    --text: #0F172A;
    --gray-200: #e2e8f0;
    --gray-600: #64748b;
    --shadow: 0 4px 20px rgba(11, 60, 93, 0.12);
    --shadow-lg: 0 10px 40px rgba(11, 60, 93, 0.18);
    --radius: 8px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--primary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    display: inline-block;
}

/* Logo imagen en el menú: altura fija para alineación con la barra de navegación */
.logo img {
    height: 50px;
    width: auto;
    display: block;
    vertical-align: middle;
}

.header .logo {
    display: flex;
    align-items: center;
}

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

.header .logo:hover img {
    opacity: 0.9;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    aria-label: Menú;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

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

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

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

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--white);
    position: relative;
    opacity: 0.95;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    opacity: 1;
}

/* ========== HERO ========== */
/* No background-image on .hero so slider is the only source of hero images (avoids old static image showing during transitions) */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
}

.hero-small {
    min-height: 45vh;
    padding: 8rem 1.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 60, 93, 0.75) 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-weight: 400;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45);
}

.btn-hero {
    padding: 1.125rem 2.5rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* ========== HERO SLIDER (homepage) – Premium cinematic ========== */
/* Full-width slider; backgrounds via CSS; Ken Burns + crossfade + text sequence */

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    padding: 0;
    display: block;
    background: #000;
}

.hero-slider .hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Each slide: stacked with absolute positioning, crossfade 1s; only slides render hero images */
.hero-slider .hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease, transform 1s ease-in-out;
    will-change: opacity, transform;
    z-index: 0;
}

/* Active slide on top for smooth overlap; zoom resets when becoming active */
.hero-slider .hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Outgoing slide stays on top of others (under incoming) during 1s crossfade */
.hero-slider .hero-slide.prev {
    z-index: 1;
}

/* Ken Burns: scale(1) translateY(0) → scale(1.12) translateY(-10px), 4s, cinematic easing */
.hero-slider .hero-slide::before {
    content: '';
    position: absolute;
    inset: -8%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1) translateY(0);
    transition: none;
    z-index: -1;
    will-change: transform;
}

.hero-slider .hero-slide.active::before {
    transform: scale(1.12) translateY(-10px);
    transition: transform 4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Background images per slide (preloaded in JS before slider starts) */
.hero-slide-1 { background-image: url('../images/01.webp'); }
.hero-slide-1::before { background-image: url('../images/01.webp'); }
.hero-slide-2 { background-image: url('../images/02.webp'); }
.hero-slide-2::before { background-image: url('../images/02.webp'); }
.hero-slide-3 { background-image: url('../images/03.webp'); }
.hero-slide-3::before { background-image: url('../images/03.webp'); }
.hero-slide-4 { background-image: url('../images/04.webp'); }
.hero-slide-4::before { background-image: url('../images/04.webp'); }
.hero-slide-5 { background-image: url('../images/05.webp'); }
.hero-slide-5::before { background-image: url('../images/05.webp'); }
.hero-slide-6 { background-image: url('../images/06.webp'); }
.hero-slide-6::before { background-image: url('../images/06.webp'); }
.hero-slide-7 { background-image: url('../images/07.webp'); }
.hero-slide-7::before { background-image: url('../images/07.webp'); }
.hero-slide-8 { background-image: url('../images/08.webp'); }
.hero-slide-8::before { background-image: url('../images/08.webp'); }

/* Soft gradient overlay for readability */
.hero-slider .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
    pointer-events: none;
}

.hero-slider .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

/* Text sequence: subtitle → title → button (opacity + translateY, ease-out) */
.hero-slider .hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.hero-slider .hero-slide.active .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.hero-slider .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 60px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out 0.3s, transform 0.4s ease-out 0.3s;
}

.hero-slider .hero-slide.active .hero-title {
    opacity: 1;
    transform: translateY(0);
}

.hero-slider .btn-hero-cta {
    display: inline-block;
    background: #D4AF37;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.4s ease-out 0.6s, transform 0.4s ease-out 0.6s, background 0.3s ease, box-shadow 0.3s ease;
}

.hero-slider .hero-slide.active .btn-hero-cta {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-slider .btn-hero-cta:hover {
    background: var(--accent-light);
    transform: translateY(-3px) scale(1);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45);
}

/* Arrows – smooth hover */
.hero-slider .hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-slider .hero-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

/* Dots – active expands slightly */
.hero-slider .hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-slider .hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
}

.hero-slider .hero-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.15);
}

.hero-slider .hero-dot.active {
    background: var(--white);
    border-color: var(--white);
    transform: scale(1.2);
    width: 14px;
    height: 14px;
}

/* Tablet */
@media (max-width: 992px) {
    .hero-slider {
        height: 80vh;
        min-height: 80vh;
    }
    .hero-slider .hero-title { font-size: 48px; }
    .hero-slider .hero-subtitle { font-size: 18px; }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-slider {
        height: 70vh;
        min-height: 70vh;
    }
    .hero-slider .hero-title { font-size: 32px; }
    .hero-slider .hero-subtitle { font-size: 16px; }
    .hero-slider .hero-content { padding: 0 1rem; }
    .hero-arrow-prev { left: 12px; }
    .hero-arrow-next { right: 12px; }
    .hero-slider .hero-arrow { width: 44px; height: 44px; }
}

/* ========== HERO SLIDER NOSOTROS (page hero – fixed height) ========== */
.hero-slider-nosotros {
    position: relative;
    width: 100%;
    height: 450px;
    min-height: 450px;
    overflow: hidden;
    padding: 0;
    display: block;
    margin-top: 72px; /* clear fixed header */
}

.hero-slider-nosotros .hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider-nosotros .hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    will-change: opacity, transform;
    z-index: 0;
}

.hero-slider-nosotros .hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slider-nosotros .hero-slide.prev {
    z-index: 1;
}

/* Ken Burns: scale(1) → scale(1.08), 4s, smooth easing */
.hero-slider-nosotros .hero-slide::before {
    content: '';
    position: absolute;
    inset: -5%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: none;
    z-index: -1;
    will-change: transform;
}

.hero-slider-nosotros .hero-slide.active::before {
    transform: scale(1.08);
    transition: transform 4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide-n-1 { background-image: url('../images/N-01.webp'); }
.hero-slide-n-1::before { background-image: url('../images/N-01.webp'); }
.hero-slide-n-2 { background-image: url('../images/N-02.webp'); }
.hero-slide-n-2::before { background-image: url('../images/N-02.webp'); }
.hero-slide-n-3 { background-image: url('../images/N-03.webp'); }
.hero-slide-n-3::before { background-image: url('../images/N-03.webp'); }

.hero-slider-nosotros .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
    pointer-events: none;
}

.hero-slider-nosotros .hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-slider-nosotros .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-slider-nosotros .hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.hero-slider-nosotros .hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-slider-nosotros .hero-arrow:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: translateY(-50%) scale(1.08);
}

.hero-slider-nosotros .hero-arrow-prev { left: 16px; }
.hero-slider-nosotros .hero-arrow-next { right: 16px; }

.hero-slider-nosotros .hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.hero-slider-nosotros .hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-slider-nosotros .hero-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-slider-nosotros .hero-dot.active {
    background: var(--white);
    border-color: var(--white);
}

@media (max-width: 992px) {
    .hero-slider-nosotros {
        height: 350px;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-slider-nosotros {
        height: 280px;
        min-height: 280px;
    }
    .hero-slider-nosotros .hero-arrow-prev { left: 10px; }
    .hero-slider-nosotros .hero-arrow-next { right: 10px; }
    .hero-slider-nosotros .hero-arrow { width: 38px; height: 38px; }
}

/* ========== HERO SLIDER COTIZAR (cotizar.html – parallax slide, 3 slides) ========== */
.hero-slider-cotizar {
    position: relative;
    width: 100%;
    height: 450px;
    min-height: 450px;
    overflow: hidden;
    padding: 0;
    display: block;
    margin-top: 72px;
}

.hero-slider-cotizar .hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Parallax slide: horizontal move + fade, 1s transition */
.hero-slider-cotizar .hero-slide-cotizar {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    opacity: 0;
    transform: translateX(40px);
    visibility: hidden;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out, visibility 1s ease-in-out;
    will-change: transform, opacity;
    z-index: 0;
}

.hero-slider-cotizar .hero-slide-cotizar.active {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    z-index: 2;
}

/* Exit to left when leaving */
.hero-slider-cotizar .hero-slide-cotizar.leaving {
    opacity: 0;
    transform: translateX(-40px);
    z-index: 1;
}

.hero-slide-c-1 { background-image: url('../images/C-01.webp'); }
.hero-slide-c-2 { background-image: url('../images/C-02.webp'); }
.hero-slide-c-3 { background-image: url('../images/C-03.webp'); }

.hero-slider-cotizar .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
    pointer-events: none;
}

.hero-slider-cotizar .hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-slider-cotizar .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-slider-cotizar .hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.25rem;
}

.hero-slider-cotizar .btn-hero-cta-cotizar {
    display: inline-block;
    background: #D4AF37;
    color: var(--white);
    padding: 12px 28px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-slider-cotizar .btn-hero-cta-cotizar:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.hero-slider-cotizar .hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-slider-cotizar .hero-arrow:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: translateY(-50%) scale(1.08);
}

.hero-slider-cotizar .hero-arrow-prev { left: 16px; }
.hero-slider-cotizar .hero-arrow-next { right: 16px; }

.hero-slider-cotizar .hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.hero-slider-cotizar .hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-slider-cotizar .hero-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-slider-cotizar .hero-dot.active {
    background: var(--white);
    border-color: var(--white);
}

@media (max-width: 992px) {
    .hero-slider-cotizar {
        height: 350px;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-slider-cotizar {
        height: 280px;
        min-height: 280px;
    }
    .hero-slider-cotizar .hero-arrow-prev { left: 10px; }
    .hero-slider-cotizar .hero-arrow-next { right: 10px; }
    .hero-slider-cotizar .hero-arrow { width: 38px; height: 38px; }
}

/* ========== HERO VIDEO (cotizar.html – video de fondo cinematográfico) ========== */
.hero-video {
    position: relative;
    width: 100%;
    height: 450px;
    min-height: 450px;
    overflow: hidden;
    margin-top: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video .video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-video .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
    z-index: 2;
    pointer-events: none;
}

.hero-video .hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero-video .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-video .hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.25rem;
}

.hero-video .btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.hero-video .btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Transición suave: degradado en la base del hero hacia el fondo de la página */
/* Degradado oscuro en la base del hero para fundir con la sección del formulario */
.hero-video::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, #2f343a 0%, rgba(47, 52, 58, 0.6) 50%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

@media (max-width: 992px) {
    .hero-video {
        height: 350px;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-video {
        height: 280px;
        min-height: 280px;
    }
}

/* ========== HERO SLIDER GALERÍA (galeria.html – crossfade + depth / floating) ========== */
.hero-slider-galeria {
    position: relative;
    width: 100%;
    height: 450px;
    min-height: 450px;
    overflow: hidden;
    padding: 0;
    display: block;
    margin-top: 72px;
}

.hero-slider-galeria .hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Crossfade + depth: opacity 0→1, translateY(20px)→0 (incoming); leaving moves up and fades */
.hero-slider-galeria .hero-slide-galeria {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out, visibility 1s ease-in-out;
    will-change: transform, opacity;
    z-index: 0;
}

.hero-slider-galeria .hero-slide-galeria.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    z-index: 2;
}

.hero-slider-galeria .hero-slide-galeria.leaving {
    opacity: 0;
    transform: translateY(-20px);
    z-index: 1;
}

.hero-slide-g-1 { background-image: url('../images/G-01.webp'); }
.hero-slide-g-2 { background-image: url('../images/G-02.webp'); }
.hero-slide-g-3 { background-image: url('../images/G-03.webp'); }

.hero-slider-galeria .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
    pointer-events: none;
}

.hero-slider-galeria .hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-slider-galeria .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-slider-galeria .hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.hero-slider-galeria .hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-slider-galeria .hero-arrow:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: translateY(-50%) scale(1.08);
}

.hero-slider-galeria .hero-arrow-prev { left: 16px; }
.hero-slider-galeria .hero-arrow-next { right: 16px; }

.hero-slider-galeria .hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.hero-slider-galeria .hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-slider-galeria .hero-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-slider-galeria .hero-dot.active {
    background: var(--white);
    border-color: var(--white);
}

@media (max-width: 992px) {
    .hero-slider-galeria {
        height: 350px;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-slider-galeria {
        height: 280px;
        min-height: 280px;
    }
    .hero-slider-galeria .hero-arrow-prev { left: 10px; }
    .hero-slider-galeria .hero-arrow-next { right: 10px; }
    .hero-slider-galeria .hero-arrow { width: 38px; height: 38px; }
}

/* ========== HERO VIDEO GALERÍA (galeria.html – video de fondo cinematográfico) ========== */
.hero-video-galeria {
    position: relative;
    width: 100%;
    height: 450px;
    min-height: 450px;
    overflow: hidden;
    margin-top: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-galeria .video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-video-galeria .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
    pointer-events: none;
}

.hero-video-galeria .hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero-video-galeria .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-video-galeria .hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.95);
}

/* Transición suave del video a la galería */
.hero-video-galeria::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 220px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(25, 28, 32, 0.6) 40%,
        #2f343a 100%
    );
    z-index: 3;
    pointer-events: none;
}

@media (max-width: 992px) {
    .hero-video-galeria {
        height: 350px;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-video-galeria {
        height: 280px;
        min-height: 280px;
    }
}

/* ========== HERO SLIDER CONTACTO (contacto.html – cinematic layer reveal) ========== */
.hero-slider-contacto {
    position: relative;
    width: 100%;
    height: 450px;
    min-height: 450px;
    overflow: hidden;
    padding: 0;
    display: block;
    margin-top: 72px;
}

.hero-slider-contacto .hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Layer reveal: image blur(6px)→0, scale(1.05)→1; slide opacity 0→1. Background on ::before */
.hero-slider-contacto .hero-slide-contacto {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    will-change: transform, opacity, filter;
    z-index: 0;
}

.hero-slider-contacto .hero-slide-contacto::before {
    content: '';
    position: absolute;
    inset: -5%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(6px);
    transform: scale(1.05);
    transition: filter 1.2s ease-in-out, transform 1.2s ease-in-out;
    z-index: -1;
    will-change: transform, filter;
}

.hero-slider-contacto .hero-slide-contacto.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slider-contacto .hero-slide-contacto.active::before {
    filter: blur(0);
    transform: scale(1);
}

.hero-slide-con-1::before { background-image: url('../images/CON-01.webp'); }
.hero-slide-con-2::before { background-image: url('../images/CON-02.webp'); }
.hero-slide-con-3::before { background-image: url('../images/CON-03.webp'); }

.hero-slider-contacto .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
    pointer-events: none;
}

.hero-slider-contacto .hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-slider-contacto .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-slider-contacto .hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.25rem;
}

.hero-slider-contacto .btn-hero-cta-contacto {
    display: inline-block;
    background: #D4AF37;
    color: var(--white);
    padding: 12px 28px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-slider-contacto .btn-hero-cta-contacto:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.hero-slider-contacto .hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-slider-contacto .hero-arrow:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: translateY(-50%) scale(1.08);
}

.hero-slider-contacto .hero-arrow-prev { left: 16px; }
.hero-slider-contacto .hero-arrow-next { right: 16px; }

.hero-slider-contacto .hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.hero-slider-contacto .hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-slider-contacto .hero-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-slider-contacto .hero-dot.active {
    background: var(--white);
    border-color: var(--white);
}

@media (max-width: 992px) {
    .hero-slider-contacto {
        height: 350px;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-slider-contacto {
        height: 280px;
        min-height: 280px;
    }
    .hero-slider-contacto .hero-arrow-prev { left: 10px; }
    .hero-slider-contacto .hero-arrow-next { right: 10px; }
    .hero-slider-contacto .hero-arrow { width: 38px; height: 38px; }
}

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

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Sección galería: gradiente para transición suave desde el hero video */
.gallery-section {
    background: #2f343a;
    padding-top: 120px;
    padding-bottom: 80px;
}

.gallery-section .section-title,
.gallery-section .section-subtitle {
    color: #fff;
}

/* ========== ABOUT / SERVICES ========== */
.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--gray-600);
    font-size: 1.05rem;
}

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(29, 78, 216, 0.2);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--white);
    margin-bottom: 0.5rem;
}

.cta-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.cta-section .btn-primary {
    background: var(--accent);
    color: var(--primary);
}

/* ========== FORM ========== */
.form-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.container-form {
    max-width: 900px;
    width: 100%;
    overflow: hidden;
}

/* Section titles: outside grid, full container width */
.form-section-title {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid #D4AF37;
    padding-bottom: 10px;
    color: #0B3C5D;
    font-family: 'Playfair Display', serif;
}

.form-section-title:first-of-type {
    margin-top: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
}

.form-group {
    min-width: 0;
    overflow: hidden;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    height: 52px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
    color: var(--text);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.25);
}

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

.form-actions {
    margin-top: 0.5rem;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.form-actions .btn,
.btn-submit {
    min-width: 280px;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    height: 56px;
    border-radius: 8px;
}

.form-section h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-section .section-subtitle {
    margin-bottom: 2.5rem;
}

/* ========== FORM COTIZACIÓN – card y sección premium ========== */
.form-section-cotizar {
    background: linear-gradient(to bottom, #2f343a 0%, #4a5057 35%, #f5f7fa 100%);
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
    z-index: 10;
    margin-top: -80px;
}

.form-section-cotizar .form-section-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.form-section-cotizar .form-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-section-cotizar .form-header {
    margin-bottom: 30px;
}

.form-section-cotizar .form-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
}

.form-section-cotizar .form-card-subtitle {
    font-size: 1rem;
    color: var(--text);
    margin: 0;
    opacity: 0.9;
}

.form-section-cotizar .form-grid {
    gap: 20px;
}

.form-section-cotizar .form-group input,
.form-section-cotizar .form-group select,
.form-section-cotizar .form-group textarea {
    height: 52px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 12px;
    font-size: 15px;
}

.form-section-cotizar .form-group input:focus,
.form-section-cotizar .form-group select:focus,
.form-section-cotizar .form-group textarea:focus {
    border-color: #1D4ED8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.form-section-cotizar .form-group textarea {
    height: 120px;
    min-height: 120px;
}

.form-section-cotizar .form-actions .btn,
.form-section-cotizar .btn-submit {
    background: #D4AF37;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    min-width: auto;
    height: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-section-cotizar .form-actions .btn:hover,
.form-section-cotizar .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.form-section-cotizar #formMessage {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-section-cotizar .form-card {
        padding: 24px 20px;
    }
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ========== GALLERY ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    transform: scale(0.92);
    transition: transform 1.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

/* ========== CONTACT ========== */
.contact-section {
    padding: 5rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: var(--gray-600);
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--secondary);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25d366;
    color: var(--white);
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    margin-top: 0.5rem;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background: #20bd5a;
    transform: translateY(-2px);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding-top: 3rem;
}

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

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

.footer-brand .logo img {
    display: block;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.footer-links h4,
.footer-contact p:first-child,
.footer-social h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-contact p {
    margin: 0 0 0.5rem 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
}

.footer-contact a:hover {
    color: var(--accent-light);
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--primary);
}

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

.footer-bottom p {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Botón flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.2s ease;
    color: #fff;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

.whatsapp-float:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

/* ========== ADMIN ========== */
.admin-page {
    min-height: 100vh;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.admin-card h1 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.admin-dashboard {
    min-height: 100vh;
    background: var(--bg-light);
}

.admin-header {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.admin-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.admin-header .logo {
    color: var(--white);
}

.admin-header a.logout {
    color: var(--white);
    opacity: 0.9;
}

.admin-header a.logout:hover {
    color: var(--accent);
}

.table-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.admin-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.admin-table tr:hover td {
    background: var(--bg-light);
}

.btn-delete {
    background: #dc2626;
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.btn-delete:hover {
    background: #b91c1c;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.admin-container h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-600);
}

/* Estado cotización: badges y selector */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-right: 8px;
}

.badge.pendiente {
    background: #facc15;
    color: #000;
}

.badge.cotizado {
    background: #3b82f6;
    color: #fff;
}

.badge.vendido {
    background: #22c55e;
    color: #fff;
}

.estado-cell {
    white-space: nowrap;
}

.estado-select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    font-size: 0.875rem;
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    cursor: pointer;
    min-width: 120px;
}

.estado-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ========== FADE-IN ANIMATIONS ========== */
.fade-in-section {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
/* Form: 1 column on mobile */
@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .nav-link {
        display: block;
        padding: 1rem;
        color: var(--white);
    }

    .nav.open .nav-link.active {
        color: var(--accent);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .social-icons {
        justify-content: center;
    }

    .admin-table {
        font-size: 0.875rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .admin-table {
        display: block;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius);
        padding: 1rem;
        background: var(--white);
    }

    .admin-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: none;
        padding: 0.5rem 0;
    }

    .admin-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary);
        margin-right: 0.5rem;
    }

    .admin-table td:last-child {
        border-top: 1px solid var(--gray-200);
        margin-top: 0.5rem;
        padding-top: 0.75rem;
    }

    .estado-cell {
        white-space: normal;
    }

    .estado-select {
        margin-top: 6px;
        display: block;
        width: 100%;
        max-width: 140px;
    }
}
