/* ========================================
   THEME V2 - Dark liquid glass + aurora
   Loaded after style.css; overrides it.
   ======================================== */
:root {
    --v2-bg: #04121c;
    --v2-surface: rgba(255, 255, 255, 0.05);
    --v2-surface-strong: rgba(15, 35, 50, 0.72);
    --v2-border: rgba(165, 243, 252, 0.14);
    --v2-text: #e2f1f7;
    --v2-muted: #9fb8c6;
    --v2-cyan: #22d3ee;
    --v2-emerald: #34d399;
    --v2-grad: linear-gradient(120deg, #22d3ee 0%, #34d399 100%);
    --v2-btn: linear-gradient(120deg, #0e7490 0%, #047857 100%);
    --v2-glow: 0 0 40px rgba(34, 211, 238, 0.18);
    --v2-ease: cubic-bezier(.2, .8, .2, 1);
}

html {
    scroll-behavior: smooth;
}

body.theme-v2 {
    background-color: var(--v2-bg) !important;
    color: var(--v2-text);
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
    line-height: 1.7;
    letter-spacing: 0;
}

/* Aurora light field behind content */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(circle at 20% 10%, rgba(14, 116, 144, 0.35), transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(4, 120, 87, 0.28), transparent 45%),
        radial-gradient(circle at 50% 95%, rgba(34, 211, 238, 0.18), transparent 50%);
}

.aurora::before,
.aurora::after {
    content: '';
    position: absolute;
    width: 46vmax;
    height: 46vmax;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    will-change: transform;
}

.aurora::before {
    background: #22d3ee;
    top: -15vmax;
    left: -10vmax;
    animation: v2-float 18s ease-in-out infinite alternate;
}

.aurora::after {
    background: #34d399;
    bottom: -18vmax;
    right: -12vmax;
    animation: v2-float 22s ease-in-out infinite alternate-reverse;
}

@keyframes v2-float {
    to {
        transform: translate3d(8vw, 6vh, 0) scale(1.12);
    }
}

/* Typography */
body.theme-v2 h1,
body.theme-v2 h2,
body.theme-v2 h3,
body.theme-v2 h4,
body.theme-v2 h5,
body.theme-v2 h6 {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
    color: #f8fdff;
    text-shadow: none;
    letter-spacing: -0.02em;
}

body.theme-v2 h2.center {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--v2-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.theme-v2 h2.center::after {
    background: var(--v2-grad);
    width: 90px;
}

body.theme-v2 p,
body.theme-v2 li {
    color: var(--v2-muted);
}

body.theme-v2 strong {
    color: #f8fdff;
}

/* Glass containers */
body.theme-v2 header,
body.theme-v2 nav,
body.theme-v2 footer {
    background: var(--v2-surface-strong) !important;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--v2-border) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    border-radius: 24px;
}

body.theme-v2 header:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), var(--v2-glow) !important;
}

body.theme-v2 header h1 {
    background: var(--v2-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.theme-v2 .header .span,
body.theme-v2 .header small,
body.theme-v2 .header i {
    color: var(--v2-muted);
}

body.theme-v2 .header-icons a {
    color: #e2f1f7;
}

body.theme-v2 .header-icons a:hover {
    color: var(--v2-emerald);
}

/* Sticky floating nav: single compact row */
body.theme-v2 nav.navbar {
    position: sticky;
    top: 8px;
    z-index: 1000;
    margin: 0.5rem auto 1rem;
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
}

body.theme-v2 nav.navbar ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

body.theme-v2 nav.navbar li {
    flex: 0 0 auto;
    margin: 0;
}

body.theme-v2 nav.navbar .nav-link {
    color: #cdeaf3 !important;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    white-space: nowrap;
    border-radius: 999px;
    transition: background 0.3s var(--v2-ease), color 0.3s var(--v2-ease), transform 0.3s var(--v2-ease);
}

body.theme-v2 nav.navbar .nav-link:hover,
body.theme-v2 nav.navbar .nav-link:focus-visible {
    background: var(--v2-btn);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(4, 120, 87, 0.35);
}

body.theme-v2 .navbar-toggler {
    border-color: var(--v2-border);
}

body.theme-v2 .navbar-toggler-icon {
    filter: invert(1);
}

/* Cards: glass with luminous border on hover */
body.theme-v2 .card,
body.theme-v2 .plan {
    background: var(--v2-surface) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--v2-border) !important;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.5s var(--v2-ease), box-shadow 0.5s var(--v2-ease), border-color 0.5s var(--v2-ease);
}

body.theme-v2 .card:hover,
body.theme-v2 .plan:hover {
    transform: translateY(-6px);
    border-color: rgba(52, 211, 153, 0.55) !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), var(--v2-glow);
}

body.theme-v2 .card h4,
body.theme-v2 .card h1,
body.theme-v2 .card h5 {
    color: #f8fdff;
}

body.theme-v2 .card h4 i,
body.theme-v2 .card i.fa,
body.theme-v2 .card i.fa-phone-alt,
body.theme-v2 .card i.fa-envelope-open {
    color: var(--v2-cyan) !important;
}

/* Bento-style pricing */
body.theme-v2 .paquetes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

body.theme-v2 .plan {
    padding: 2rem 1.6rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

body.theme-v2 .plan::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--v2-grad);
}

body.theme-v2 .plan h2 {
    font-size: 1.35rem;
    -webkit-text-fill-color: #f8fdff;
    background: none;
}

body.theme-v2 .plan h2::after {
    display: none;
}

body.theme-v2 .plan .precio {
    font-size: 1.9rem;
    font-weight: 800;
    background: var(--v2-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0.5rem 0 1rem;
}

body.theme-v2 .plan ul li {
    color: var(--v2-muted);
}

body.theme-v2 .plan ul li::before {
    color: var(--v2-emerald);
}

body.theme-v2 .plan a {
    margin-top: auto;
}

/* Services: carousel cards */
body.theme-v2 .servicios-text .card p {
    color: var(--v2-muted);
}

body.theme-v2 .carousel-servicios .card img,
body.theme-v2 .portada img,
body.theme-v2 .about-content img,
body.theme-v2 .valores img {
    border-radius: 24px;
    border: 1px solid var(--v2-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

body.theme-v2 .portada img:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--v2-glow);
}

/* Sections: style.css gives them white backgrounds; use the same dark glass panel everywhere */
body.theme-v2 section {
    background: var(--v2-surface-strong) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--v2-border);
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    color: var(--v2-text);
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
}

body.theme-v2 section h1,
body.theme-v2 section h2,
body.theme-v2 section h3,
body.theme-v2 section h4 {
    color: #f8fdff;
}

body.theme-v2 section h2.center,
body.theme-v2 .servicios h1 {
    background: var(--v2-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Owl carousel: lay items out in one row and stop them from overlapping */
body.theme-v2 .owl-carousel .owl-stage {
    display: flex;
}

body.theme-v2 .owl-carousel .owl-item {
    float: none;
    min-width: 0;
    overflow: hidden;
}

body.theme-v2 .owl-carousel .owl-item .card {
    width: 100%;
    margin: 0 auto;
}

/* Carousels: text sits in a band under the image instead of overlapping it */
body.theme-v2 .header-carousel .card {
    position: relative;
    overflow: hidden;
    padding-bottom: 0.5rem;
}

body.theme-v2 .header-carousel .owl-carousel-text {
    position: static !important;
    background: none !important;
    color: var(--v2-text) !important;
    padding: 0.9rem 1rem 0.4rem;
    text-shadow: none;
    font-size: 1rem;
}

body.theme-v2 .header-carousel .owl-carousel-text h1,
body.theme-v2 .header-carousel .owl-carousel-text h4 {
    font-size: 1.35rem;
    line-height: 1.25;
    margin: 0 0 0.35rem;
    color: #f8fdff;
    background: none;
    -webkit-text-fill-color: #f8fdff;
}

body.theme-v2 .header-carousel .owl-carousel-text p {
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0;
    color: var(--v2-muted);
}

body.theme-v2 .header-carousel .card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

body.theme-v2 .owl-item .card:hover {
    transform: none;
}

body.theme-v2 .about-content,
body.theme-v2 .about-content p,
body.theme-v2 .about-content h2,
body.theme-v2 .about-content h3 {
    color: var(--v2-text) !important;
}

body.theme-v2 .about-content {
    background: var(--v2-surface-strong);
    border: 1px solid var(--v2-border);
    border-radius: 28px;
    backdrop-filter: blur(16px);
    padding: 24px;
}

body.theme-v2 .about-content p {
    color: var(--v2-muted) !important;
}

body.theme-v2 .about-content h2 {
    color: #fff !important;
}

/* Buttons: gradient pill with AA contrast */
body.theme-v2 .btn-primary,
body.theme-v2 .boton-info,
body.theme-v2 .btn-lg-square {
    background: var(--v2-btn) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    min-height: 46px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(4, 120, 87, 0.35);
    transition: transform 0.3s var(--v2-ease), box-shadow 0.3s var(--v2-ease);
}

body.theme-v2 .btn-primary:hover,
body.theme-v2 .boton-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(4, 120, 87, 0.5);
}

body.theme-v2 .btn-social {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--v2-border) !important;
    color: #e2f1f7 !important;
}

body.theme-v2 .btn-social:hover {
    background: var(--v2-btn) !important;
    border-color: transparent !important;
}

body.theme-v2 .btn-social::before {
    display: none;
}

/* Floating actions */
body.theme-v2 .btn-wsp,
body.theme-v2 .btn-call {
    min-width: 54px;
    min-height: 54px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(52, 211, 153, 0.5);
    animation: v2-pulse 2.6s ease-out infinite;
}

@keyframes v2-pulse {
    0% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(52, 211, 153, 0.45);
    }

    70%,
    100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 16px rgba(52, 211, 153, 0);
    }
}

/* Promo banners */
body.theme-v2 .promo-hot-sale {
    border-radius: 24px;
    border: 1px solid var(--v2-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Links & focus */
body.theme-v2 a {
    color: var(--v2-cyan);
}

body.theme-v2 a:hover {
    color: var(--v2-emerald);
}

body.theme-v2 a:focus-visible,
body.theme-v2 button:focus-visible,
body.theme-v2 .btn:focus-visible {
    outline: 3px solid var(--v2-cyan);
    outline-offset: 3px;
    border-radius: 8px;
}

/* Owl carousel controls */
body.theme-v2 .owl-nav button {
    background: rgba(4, 18, 28, 0.7) !important;
    color: #e2f1f7 !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: 999px !important;
    width: 44px;
    height: 44px;
}

body.theme-v2 .owl-dots .owl-dot span {
    background: rgba(165, 243, 252, 0.3) !important;
}

body.theme-v2 .owl-dots .owl-dot.active span {
    background: var(--v2-emerald) !important;
}

/* Scrollbar */
body.theme-v2 ::-webkit-scrollbar {
    background: var(--v2-bg);
}

body.theme-v2 ::-webkit-scrollbar-thumb {
    background: #0e7490;
}

/* Mobile */
@media (max-width: 768px) {
    body.theme-v2 header,
    body.theme-v2 nav,
    body.theme-v2 footer,
    body.theme-v2 main {
        max-width: 94%;
    }

    body.theme-v2 header,
    body.theme-v2 footer {
        padding: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body.theme-v2 *,
    body.theme-v2 *::before,
    body.theme-v2 *::after,
    .aurora::before,
    .aurora::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    body.theme-v2 .wow {
        visibility: visible !important;
    }
}
