/* --- CSS Variables & Reset --- */
:root {
    /* Palette */
    --dark-grey: #545454;
    --lavender-vibrant: #bf63dd;
    --magenta: #ce6bab;
    --lavender-mid: #9e4fc5;
    --primary-purple: #6a4595;
    --light-lavender: #d6c8e0;
    --dull-lavender: #845db0;
    --bg-lavender: #f8f3fb;
    --white: #FFFFFF;

    /* Gradients & Shadows */
    --gradient-primary: linear-gradient(135deg, var(--primary-purple), var(--lavender-mid));
    --gradient-text: linear-gradient(90deg, var(--primary-purple), var(--magenta));
    --shadow-soft: 0 10px 30px rgba(106, 69, 149, 0.15);
    --shadow-glow: 0 0 40px rgba(191, 99, 221, 0.3);

    /* Dimensions */
    --header-height: 80px;
    --container-width: 1200px;
    --border-radius: 16px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-lavender);
    color: var(--dark-grey);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Custom UI Components --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    font-size: 1rem;
    border: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(106, 69, 149, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 69, 149, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: var(--primary-purple);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-purple);
    font-weight: 700;
}

.btn-white:hover,
.btn-white:focus-visible {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.btn:focus-visible {
    outline: 3px solid var(--lavender-vibrant);
    outline-offset: 2px;
}

/* --- Header & Navigation --- */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(248, 243, 251, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--light-lavender);
    transition: all 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* --- LOGO FIX COMPLETO --- */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
    height: 100%;
    position: relative;
    /* IMPORTANTE: Damos un ancho fijo en Desktop para que no colapse a 0px */
    width: 180px; 
}

.logo img {
    /* TAMAÑO GIGANTE PARA DESKTOP */
    height: 160px; /* Ajustado para que no sea excesivo */
    width: auto;
    
    /* EL TRUCO: Posición absoluta para flotar */
    position: absolute;
    top: -15px;  /* Sube el logo para centrarlo verticalmente respecto a la barra */
    left: 0;
    
/* --- CAMBIOS PARA CENTRAR --- */
    top: -30px;   /* Subimos más el logo para que su centro coincida con la barra */
    left: 30%;    /* Lo movemos a la mitad del contenedor */
    transform: translateX(-50%); /* Lo retrocedemos el 50% de su ancho para centrarlo exacto */
    
    pointer-events: auto; 
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: var(--dark-grey);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--lavender-vibrant);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Language Switcher Styling */
.language-switch {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--light-lavender);
    color: var(--dark-grey);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-btn:hover {
    border-color: var(--primary-purple);
}

/* Mobile Hamburger */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

.hamburger-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--primary-purple);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-lavender);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-grey);
}

/* --- Sections & Typography --- */
section {
    padding: 100px 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -1.5px;
    color: var(--dark-grey);
}

h1 span.highlight {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

@supports not (background-clip: text) {
    h1 span.highlight {
        background: none;
        color: var(--primary-purple);
    }
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 20px;
}

p {
    color: var(--dark-grey);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* --- Hero Section --- */
.hero {
    padding-top: calc(100px + 60px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 120vw;
    height: 120vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(206, 107, 171, 0.15) 0%, rgba(248, 243, 251, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero .subheadline {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 20px auto 40px;
    color: var(--dark-grey);
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

/* Video Container */
.video-container {
    margin-top: 60px;
    position: relative;
    max-width: 1000px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    
    /* Mantenemos bordes redondeados para estética moderna */
    border-radius: var(--border-radius);
    
    /* --- CAMBIOS PRINCIPALES --- */
    background: transparent;     /* Quitamos el fondo blanco */
    border: none;                /* Quitamos el borde gris */
    
    /* Sombra suave para que destaque del fondo (puedes borrarlo si lo quieres 100% plano) */
    box-shadow: 0 20px 50px rgba(0,0,0,0.15); 
    
    overflow: hidden;
}


.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-control {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* --- Anti-Pitch Section --- */
.anti-pitch {
    background: var(--white);
    border-top: 1px solid var(--light-lavender);
    border-bottom: 1px solid var(--light-lavender);
}

.anti-pitch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    align-items: center;
}

.pain-point h2 {
    text-align: left;
    font-size: 2rem;
}

.pain-point h2 span {
    color: var(--magenta);
    text-decoration: none;
    text-decoration-color: var(--light-lavender);
}

.solution-highlight {
    background: var(--bg-lavender);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-purple);
}

.solution-highlight p {
    margin: 0;
    font-weight: 500;
    color: var(--primary-purple);
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-lavender);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--lavender-vibrant);
    box-shadow: var(--shadow-soft);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-img {
    height: 100px;
    width: auto;
    margin-bottom: 20px;
    display: block;
}

/* --- Pricing --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: flex-start;
    margin-top: 50px;
}

.plan-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--light-lavender);
    text-align: center;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plan-card.popular {
    border: 2px solid var(--primary-purple);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
    z-index: 2;
}

.badge-popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-purple);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    color: var(--dark-grey);
    font-weight: 400;
}

.features-list {
    text-align: left;
    margin: 30px 0;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: start;
    gap: 10px;
    color: var(--dark-grey);
    font-size: 0.95rem;
}

.features-list li svg {
    color: var(--magenta);
    flex-shrink: 0;
    margin-top: 3px;
}

/* --- CTA Final --- */
.cta-section {
    background: var(--gradient-primary);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* --- Footer --- */
footer {
    background: var(--white);
    padding: 20px 0 20px;
    border-top: 1px solid var(--light-lavender);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 20px;
    height: auto;
    display: inline-flex;
    /* Reset de seguridad para el logo del footer */
    width: auto; 
    position: static;
}

.footer-brand .logo img {
    /* CORREGIDO: Logo del footer a tamaño normal */
    height: 70px;
    margin-top: 10px;
    /* Reset de seguridad */
    position: static;
}

.footer-desc {
    margin-top: 50px;
    max-width: 300px;
    color: var(--primary-purple);
    font-weight: 600;
}

.footer-col h4 {
    color: var(--primary-purple);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--dark-grey);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--magenta);
}

.copyright {
    text-align: center;
    color: var(--dull-lavender);
    font-size: 0.8rem;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.isthmus-logo {
    height: 30px;
    width: auto;
    display: inline-block;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.isthmus-logo:hover {
    filter: none;
    opacity: 1;
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- ESTILO NUEVO: Imagen con efecto Glassmorphism (Sección Anti-Pitch) --- */
.anti-pitch-img {
    max-width: 100%;  /* Asegura que no se salga en pantallas pequeñas */
    height: auto;     /* Mantiene la proporción */
    max-height: 500px; /* Limita la altura para que no sea excesivamente grande en pantallas gigantes */
    
    /* Forma */
    border-radius: 24px; /* Esquinas redondeadas suaves */

    /* Efecto Glassmorphism (El marco de vidrio) */
    padding: 15px; /* Esto define el grosor del marco de vidrio alrededor de la imagen */
    background-color: rgba(255, 255, 255, 0.08); /* Fondo blanco al 8% de opacidad */
    border: 1px solid rgba(255, 255, 255, 0.2);  /* Borde blanco sutil para definir el límite */
    
    /* El desenfoque "detrás" del marco */
    backdrop-filter: blur(8px);          /* Desenfoque de 8px */
    -webkit-backdrop-filter: blur(8px);  /* Soporte para Safari */
    
    /* Sombra para darle profundidad (flotante) */
    box-shadow: var(--shadow-soft);
    
    /* Transición suave por si agregas efectos hover en el futuro */
    transition: all 0.3s ease;
}

/* --- Responsive Styles (Móvil) --- */
/* Bloque consolidado y corregido */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .plan-card.popular { transform: none; }
}

@media (max-width: 768px) {
    :root {
        --header-height: 50px;
    }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    /* Ocultar menú desktop */
    .main-nav, .nav-actions { display: none; }
    
    /* Mostrar botón hamburguesa */
    .hamburger-btn { display: flex; }

    /* --- CORRECCIÓN DEL LOGO EN MÓVIL --- */
    /* Reseteamos el comportamiento del contenedor */
    .logo {
        width: auto; /* IMPORTANTE: Quitar el ancho fijo de desktop */
    }

    /* Aquí desactivamos el modo "gigante" y lo ponemos normal para celular */
.logo img {
    height: 100px !important;  /* <--- AUMENTADO (antes era 50px) */
    position: static;
    margin-top: 20px;          /* Un poquito de margen para que no toque el borde */
    top: auto;
    transform: none;          /* Importante: reseteamos el centrado de desktop */
}
    
    /* Ajustes generales móvil */
    .hero { padding-top: 120px; }
    .hero-actions { flex-direction: column; padding: 0 20px; }
    .hero-actions .btn { width: 100%; }
    .anti-pitch-grid, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .cta-section { padding: 50px 20px; }
}

.copyright {
        /* Reducimos la letra para que quepa en una línea */
        font-size: 0.65rem; 
        
        /* Ajustamos espaciado */
        gap: 5px;
        padding-left: 5px;
        padding-right: 5px;
        
        /* Aseguramos que se mantenga horizontal */
        flex-direction: row;
        flex-wrap: nowrap; 
        width: 100%;
    }

    /* Ajustamos el logo de Isthmus Link para que no rompa la línea */
    .isthmus-logo {
        height: 18px !important; /* Más pequeño para armonizar con el texto */
        width: auto;
    }
