/* --- CSS Variables: Minimalismo Moderno --- */
:root {
    /* Colores */
    --bg-white: #ffffff;
    --bg-light: #ffffff;
    --bg-card: #ffffff;
    --text-dark: var(--primary);
    --text-muted: #333333;

    /* Marca */
    --primary: #071939;
    --primary-hover: #38A57A;
    --primary-hover-dark: #2b5c49;
    --secondary: #e5e5ea;

    /* Tipografía */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Borders */
    --radius-lg: 12px;
    --radius-sm: 6px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Base Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.header-container {
    width: 100%;
    max-width: 1280px;
    padding: 0 5%;
    margin: 0 auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-dark);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); margin-bottom: 24px; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 20px; font-weight: 700; }
h3 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 700; }
h4 { font-size: 0.95rem; margin-bottom: 8px; font-weight: 600; }
p { font-size: 0.95rem; }

/* --- Buttons --- */
.btn {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.btn-secondary:hover {
    background-color: var(--primary-hover-dark);
    border-color: var(--primary-hover-dark);
    color: #ffffff;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-hover);
    color: var(--primary-hover);
}

.btn-outline:hover {
    background-color: var(--primary-hover-dark);
    border-color: var(--primary-hover-dark);
    color: #ffffff;
}

/* Banner specific buttons (dark bg) */
.hero .btn-primary, .page-header .btn-primary {
    background-color: #38A57A !important;
    border-color: #38A57A !important;
    color: #ffffff !important;
}
.hero .btn-primary:hover, .page-header .btn-primary:hover {
    background-color: #2C5C49 !important;
    border-color: #2C5C49 !important;
    color: #ffffff !important;
}
.hero .btn-secondary, .page-header .btn-secondary { border-color: #ffffff; color: #ffffff; }
.hero .btn-secondary:hover, .page-header .btn-secondary:hover { background-color: #ffffff; color: var(--primary); }

.btn-large { padding: 16px 32px; font-size: 0.95rem; }
.btn-full { width: 100%; }

/* --- Navbar --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; }
.header-logo { max-height: 70px; width: auto; }

/* Menu agrupado a la derecha */
.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: auto;
}

.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-menu a { font-weight: 600; color: #ffffff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.nav-menu a:hover, .nav-menu a.active { opacity: 0.8; }
.header.scrolled .nav-menu a:hover, .header.scrolled .nav-menu a.active { color: var(--primary); opacity: 1; }
.nav-cta { padding: 12px 24px; font-size: 0.8rem; }

@media (min-width: 769px) {
    .header:not(.scrolled) .nav-cta {
        background-color: #ffffff;
        color: var(--primary);
    }
    .header:not(.scrolled) .nav-cta:hover {
        background-color: #f0f0f0;
    }
    .header.scrolled .nav-cta {
        background-color: var(--primary);
        color: #ffffff;
    }
    .header.scrolled .nav-cta:hover {
        background-color: var(--primary-hover);
    }
}

/* --- Dropdown --- */
.dropdown { position: relative; display: inline-block; padding: 10px 0; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff; /* FONDO BLANCO ARREGLADO */
    min-width: 240px;
    border: 1px solid var(--secondary);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    z-index: 10;
    top: 100%;
    left: -20px;
    overflow: hidden;
}
.dropdown-content a {
    color: var(--primary);
    padding: 16px 24px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid var(--secondary);
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: #f5f5f7; color: var(--primary); }
.dropdown:hover .dropdown-content { display: block; }

/* --- Page Header --- */
.page-header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 0;
    background-color: #f5f5f7;
    text-align: center;
}
.page-header h1 { font-size: 2.2rem; margin-bottom: 24px; color: #ffffff !important; }
.page-header p { font-size: 0.95rem; color: #ffffff !important; max-width: 700px; margin: 0 auto; }
.page-header-actions { margin-top: 50px; display: flex; gap: 20px; justify-content: center; }

/* --- Hero Section --- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 0; background-color: #071939; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; align-items: center; }
.hero-text h1 { font-size: 2.2rem; margin-bottom: 30px; letter-spacing: -0.02em; line-height: 1.05; color: #ffffff !important; }
.hero-text p { font-size: 0.95rem; color: #ffffff !important; margin-bottom: 50px; max-width: 550px; }
.hero-actions { display: flex; gap: 20px; margin-bottom: 40px; }
.hero-image img { border-radius: var(--radius-lg); width: 100%; height: 100%; object-fit: cover; }

/* --- Sections --- */
.section { padding: 130px 20px !important; }
.section-header { text-align: center !important; margin-left: auto !important; margin-right: auto !important;  max-width: 800px; margin-bottom: 80px; }
.section-header h2 { text-align: center !important;  font-size: 2.2rem; margin-bottom: 24px; }
.section-header p { text-align: center !important;  font-size: 0.95rem; color: var(--text-muted); }

/* --- Cards Grid Layout --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    align-items: stretch; /* Fija alturas iguales */
}

.card {
    background: var(--bg-card);
    padding: 60px 50px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card > span {
    margin-top: auto; /* Empuja el "Saber más" al fondo */
}
.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
    background: var(--bg-white);
    border: 1px solid var(--secondary);
}
.card h3 { font-size: 0.95rem; margin-bottom: 20px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Plan Block Layout --- */
.plan-block {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    color: var(--text-dark);
    padding: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(7, 25, 57, 0.02);
    transition: var(--transition);
}
.plan-block:hover {
    box-shadow: 0 15px 40px rgba(7, 25, 57, 0.08);
}
.plan-block > div:last-child {
    margin-top: auto; /* Empuja el botón CTA al fondo */
}

.plan-header {
    text-align: center;
    margin: -40px -40px 30px -40px;
    padding: 24px 30px;
    background: var(--primary);
    color: #ffffff;
    border-bottom: none;
}
.plan-header h3 {
    font-size: 1.15rem;
    margin: 0 0 10px 0;
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.plan-price {
    font-size: 1.35rem;
    font-family: var(--font-body);
    font-weight: 800;
    color: #ffffff !important;
    margin: 0;
}
.plan-price span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: normal;
    display: block;
    margin-top: 4px;
}
.plan-desc {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-top: 20px;
    line-height: 1.6;
}

.plan-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
    flex-grow: 1;
}
.plan-item {
    margin-bottom: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5ea;
}
.plan-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}
.plan-item h4 {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 4px;
    font-weight: 700;
    text-transform: uppercase;
}
.plan-item p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* --- 50/50 Layouts --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; align-items: center; }
.profile-img { width: 100%; height: auto; border-radius: var(--radius-lg); object-fit: cover; }
.about-intro { font-size: 0.95rem; margin-bottom: 20px; }

/* --- Footer Minimalista --- */
.footer { padding: 100px 0 40px; background: var(--primary); color: #ffffff; border-top: none; }
.footer-content { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; margin-bottom: 80px; }
.footer-brand p { color: #aaaaaa; font-size: 0.95rem; margin-top: 20px; max-width: 350px; }
.footer-logo { max-height: 40px; filter: invert(1); }

.footer-col h4 { font-size: 1rem; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 1px; color: #ffffff; }
.footer-col a { display: block; color: #aaaaaa; margin-bottom: 16px; font-size: 1rem; }
.footer-col a:hover { color: #ffffff; }

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #aaaaaa;
}
.footer-legal a { color: #aaaaaa; margin-left: 30px; }
.footer-legal a:hover { color: #ffffff; }

/* Minimalist Form Footer */
.minimal-form { max-width: 100%; }
.minimal-form .form-group { margin-bottom: 20px; }
.minimal-form input[type="text"], .minimal-form input[type="email"], .minimal-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #444444;
    padding: 10px 0;
    font-size: 0.85rem;
    color: #ffffff;
    font-family: var(--font-body);
    transition: var(--transition);
    border-radius: 0;
}
.minimal-form input[type="text"]:focus, .minimal-form input[type="email"]:focus, .minimal-form textarea:focus {
    outline: none;
    border-bottom-color: #ffffff;
    box-shadow: none;
}
.minimal-form .btn {
    padding: 12px 0;
    width: 100%;
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    margin-top: 10px;
}
.minimal-form .btn:hover {
    background: #ffffff;
    color: #1a1a1a;
}

/* --- SVG Icons --- */
.icon-svg { max-width: 32px; max-height: 32px; margin-bottom: 20px; display: block; stroke-width: 1.5; color: var(--text-dark); }
.card img, .card svg { max-width: 32px; max-height: 32px; margin-bottom: 20px; }

/* --- Mobile Responsiveness --- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}
.mobile-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #ffffff; /* Default is white for dark banners */
    transition: var(--transition);
}

@media (max-width: 768px) {

    /* Mobile Typography Adjustments */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }

    /* 100vh Mobile Banners */
    .page-header {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px 20px;
    }

    /* Smaller buttons on mobile */
    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    /* Disable hover for dropdown on mobile */
    .dropdown:hover .dropdown-content { display: none; }
    .mobile-toggle { display: flex; }

    .nav-right {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--primary); /* FONDO AZUL CORPORATIVO */
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 30px;
        padding: 100px 30px 40px;
        overflow-y: auto;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 999;
    }

    .nav-right.mobile-active { transform: translateY(0); }
    .nav-right.mobile-active + .mobile-toggle span { background-color: #ffffff !important; }

    .nav-menu { width: 100%; flex-direction: column; text-align: center; gap: 25px; }
    .nav-menu a { font-size: 1.15rem; color: #ffffff !important; font-weight: 700; letter-spacing: 0.05em; }
    .nav-cta {
        margin-top: 10px;
        width: 100%;
        max-width: 280px;
        text-align: center;
        background: #ffffff !important; /* BOTÓN BLANCO */
        border: 1px solid #ffffff !important;
        color: var(--primary) !important; /* TEXTO AZUL */
        padding: 14px 28px !important;
        font-size: 0.9rem !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
        text-transform: uppercase;
        font-weight: 700;
        border-radius: var(--radius-sm);
    }

    .dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dropdown-content {
        display: flex;
        flex-direction: column;
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.04);
        border-radius: var(--radius-sm);
        padding: 0;
        width: 100%;
        max-width: 280px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
        opacity: 0;
    }

    .dropdown.open .dropdown-content {
        display: flex !important;
        max-height: 250px;
        opacity: 1;
        padding: 6px 0;
        margin-top: 10px;
    }

    .dropdown-content a {
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        padding: 12px 20px !important;
        text-align: center;
        border: none !important;
        color: rgba(255, 255, 255, 0.8) !important;
        transition: background 0.2s ease, color 0.2s ease;
        margin: 0;
    }

    .dropdown-content a:hover,
    .dropdown-content a:focus {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.08);
    }
    .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .cards-grid, .cards-grid-2 { grid-template-columns: 1fr !important; gap: 30px !important; }
    .plan-details { grid-template-columns: 1fr !important; gap: 15px; }
    .plan-block, .card { padding: 30px; transform: none !important; margin: 0 !important; }
    .footer-content { grid-template-columns: 1fr !important; gap: 40px !important; }

    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }

    .section { padding: 130px 20px !important; }
}
.header.scrolled .nav-menu a {
    color: var(--text-dark);
}
.header.scrolled .mobile-toggle span {
    background-color: var(--text-dark);
}


/* --- MOBILE OPTIMIZATIONS (ADDED) --- */
html, body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
    }
    h2 {
        font-size: 1.8rem !important;
    }
    .hero-text h1 {
        font-size: 2.2rem !important;
    }
    .section, .hero, .page-header {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    /* Reducir gaps en grids de servicios y metodologia en movil */
    div[style*="gap: 30px"] {
        gap: 15px !important;
    }
    .cta-gratis h2 {
        font-size: 2rem !important;
    }
    .cta-gratis p {
        font-size: 1rem !important;
    }
    /* Ajustes generales a grids en contenedor móvil */
    .cards-grid {
        gap: 15px !important;
    }
}


/* --- NEW PLAN STYLES --- */
.plan-block.premium {
    border: 2px solid var(--primary-hover);
    box-shadow: 0 15px 40px rgba(56, 165, 122, 0.08);
    position: relative;
    z-index: 10;
}
.plan-block.premium:hover {
    box-shadow: 0 20px 50px rgba(56, 165, 122, 0.15);
}
.plan-block .ribbon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-hover);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
    white-space: nowrap;
}

/* Pair grids for side-by-side plan comparison */
.plan-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
    align-items: stretch;
}
@media (max-width: 900px) {
    .plan-pair { grid-template-columns: 1fr; gap: 40px; }
    .plan-block.premium { transform: scale(1); }
    
}

/* Add-ons & Maintenance Lists */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.addons-grid-2-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}
@media (min-width: 768px) {
    .addons-grid-2-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}
.addons-grid-5-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}
@media (min-width: 640px) {
    .addons-grid-5-items {
        grid-template-columns: repeat(2, 1fr);
    }
    .addons-grid-5-items > :nth-child(5) {
        grid-column: span 2;
        width: 100%;
        max-width: 480px;
        justify-self: center;
    }
}
@media (min-width: 992px) {
    .addons-grid-5-items {
        grid-template-columns: repeat(6, 1fr);
    }
    .addons-grid-5-items > :nth-child(1),
    .addons-grid-5-items > :nth-child(2),
    .addons-grid-5-items > :nth-child(3) {
        grid-column: span 2;
    }
    .addons-grid-5-items > :nth-child(4) {
        grid-column: 2 / span 2;
    }
    .addons-grid-5-items > :nth-child(5) {
        grid-column: 4 / span 2;
        max-width: none;
    }
}
.addons-grid-4-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}
@media (min-width: 600px) {
    .addons-grid-4-items {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .addons-grid-4-items {
        grid-template-columns: repeat(4, 1fr);
    }
}
.addons-grid-6-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}
@media (min-width: 640px) {
    .addons-grid-6-items {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .addons-grid-6-items {
        grid-template-columns: repeat(3, 1fr);
    }
}
.addon-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.addon-header h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.addon-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}
.addon-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.addon-desc ul {
    margin-top: 10px;
    list-style: none;
    padding: 0;
}
.addon-desc ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.4;
}
.addon-desc ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}
.addon-desc ul li.no-check {
    color: #888888;
}
.addon-desc ul li.no-check::before {
    content: '×';
    color: #aaaaaa;
    font-weight: bold;
}


/* UNIFIED PLAN PAIR CSS */
.plan-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px !important; 
    margin-bottom: 50px;
    align-items: stretch;
    background: transparent;
    border: none;
    box-shadow: none;
}
/* Ficha Cuadrada 1: Pago Único */
.plan-pair > .plan-block:first-child {
    background: #ffffff;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(7, 25, 57, 0.02);
    padding: 40px;
}
/* Ficha Cuadrada 2: Suscripción (Premium) */
.plan-pair > .plan-block {
    background: #ffffff;
    color: var(--text-dark);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(7, 25, 57, 0.04);
    padding: 40px;
}
/* Ajustes de color para texto interno Premium */
.plan-pair > .plan-block h3,
.plan-pair > .plan-block h4,
.plan-pair > .plan-block .plan-price {
    /* Mantenidos por el nuevo plan-header */
}
.plan-pair > .plan-block p {
    color: var(--text-dark) !important;
}
.plan-pair > .plan-block .plan-item {
    border-bottom: 1px solid #e5e5ea;
}
.plan-pair > .plan-block .plan-price span {
    /* Mantenidos por el nuevo plan-header */
}
.plan-pair > .plan-block .btn {
    width: 100%;
}
.plan-block .btn.btn-primary {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #ffffff !important;
}
.plan-block .btn.btn-primary:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}
.plan-block .btn.btn-outline {
    border: 2px solid var(--primary-hover) !important;
    color: var(--primary-hover) !important;
    background: transparent !important;
}
.plan-block .btn.btn-outline:hover {
    background: var(--primary-hover) !important;
    color: #ffffff !important;
}
@media (max-width: 900px) {
    .plan-pair {
        grid-template-columns: 1fr;
        gap: 30px !important;
    }
    .plan-pair > .plan-block {
        transform: scale(1);
    }
}

/* Global overrides to make all grid plans match the new design system */
.cards-grid > .plan-block {
    background: #ffffff !important;
    color: var(--text-dark) !important;
    border: 2px solid var(--primary) !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
}
.cards-grid > .plan-block.premium {
    border: 2px solid var(--primary) !important;
}
.cards-grid > .plan-block h3, 
.cards-grid > .plan-block h4,
.cards-grid > .plan-block .plan-price {
    /* Mantenidos por el nuevo plan-header */
}
.cards-grid > .plan-block p,
.cards-grid > .plan-block .plan-price span {
    /* Mantenidos por el nuevo plan-header */
}
.cards-grid > .plan-block .plan-item {
    border-bottom: 1px solid #e5e5ea;
}
.cards-grid > .plan-block .btn {
    background: var(--primary-hover) !important;
    color: #ffffff !important;
    border: 1px solid var(--primary-hover) !important;
}
.cards-grid > .plan-block .btn:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

@media (max-width: 768px) {
    .section h2, .section-header h2 { text-align: center !important; 
        font-size: 1.35rem !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.3;
        padding: 0 10px;
    }
}

/* Ocultar el badge de reCAPTCHA por completo */
.grecaptcha-badge {
    display: none !important;
}

/* Evitar zoom automático en iOS al hacer clic en los inputs */
@media screen and (max-width: 768px) {
    .minimal-form input[type="text"], 
    .minimal-form input[type="email"], 
    .minimal-form select,
    .minimal-form textarea {
        font-size: 16px !important;
    }
}

/* --- STATIC SECTIONS FOR ADS PAGE --- */
.ads-section-container {
    max-width: 100%;
    margin: 40px auto 60px;
}

.ads-section-card {
    border: 2px solid var(--primary);
    background-color: #ffffff;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(7, 25, 57, 0.02);
}

.ads-section-header {
    background-color: var(--primary);
    color: #ffffff;
    padding: 22px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ads-section-header h3 {
    margin: 0;
    color: #ffffff !important;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ads-section-header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ads-section-header-info .budget-badge {
    background: var(--primary-hover);
    color: #ffffff;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
}

.ads-section-content {
    padding: 40px 30px;
    color: var(--text-dark);
}

/* Partidas (Sequential Rows) */
.partidas-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.partida-row {
    background: #ffffff;
    border: 1px solid #e5e5ea;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.partida-row:hover {
    border-color: rgba(7, 25, 57, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.partida-row-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f2;
    padding-bottom: 15px;
}

.partida-number {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--primary-hover);
    text-transform: uppercase;
}

.partida-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary) !important;
    text-transform: uppercase;
    margin-top: 5px;
}

.partida-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    text-align: right;
}

.partida-price span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.partida-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.partida-feature {
    display: flex;
    flex-direction: column;
}

.partida-feature h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.partida-feature p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Sub-plans table list for management fee */
.plans-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.plans-table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #f8f9fa;
    border: 1px solid #e5e5ea;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 10px;
}

.plans-table-row.featured {
    border-color: var(--primary-hover);
    background: rgba(56, 165, 122, 0.03);
}

.plans-table-name {
    font-weight: 700;
    color: var(--primary);
    flex: 1 1 150px;
}

.plans-table-limits {
    color: var(--text-muted);
    flex: 2 1 200px;
}

.plans-table-price {
    font-weight: 800;
    color: var(--primary-hover);
    text-align: right;
    flex: 1 1 100px;
}

/* Responsive adjustment for accordion */
@media (max-width: 768px) {
    .ads-accordion-header {
        padding: 18px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ads-accordion-header-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .partida-row-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .partida-price {
        text-align: left;
    }
    
    .budget-callout {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .budget-callout-amount {
        align-self: stretch;
        text-align: center;
    }
}

/* --- FLOATING WHATSAPP BUTTON (Dermoestetica Style) --- */
.whatsapp-float {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
    z-index: 99999;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.05);
}
.whatsapp-icon-svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
    display: block;
}
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    .whatsapp-icon-svg {
        width: 26px;
        height: 26px;
    }
}

/* --- THREE COLUMN GRID FOR PACK PERMANENCES --- */
.plan-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px !important;
    margin-bottom: 60px;
    align-items: stretch;
}
@media (max-width: 991px) {
    .plan-three {
        grid-template-columns: 1fr;
        gap: 30px !important;
    }
}

/* --- POPUP MODAL SOLICITUD WHATSAPP --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 25, 57, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-container {
    background: #ffffff;
    width: 90%;
    max-width: 460px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary);
    box-shadow: 0 20px 50px rgba(7, 25, 57, 0.15);
    padding: 35px 30px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-hover);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.4;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-input, .modal-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(7, 25, 57, 0.2);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--primary);
    background: #f8f9fa;
    transition: var(--transition);
}

.modal-input:focus, .modal-select:focus {
    outline: none;
    border-color: var(--primary-hover);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(56, 165, 122, 0.1);
}

.modal-btn {
    margin-top: 10px;
    background: var(--primary-hover);
    color: #ffffff;
    border: 1px solid var(--primary-hover);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(7, 25, 57, 0.1);
}

.modal-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* --- CTA Gratis Section (Verde Corporativo + Botón Azul) --- */
.cta-gratis {
    background-color: var(--primary-hover) !important;
    color: #ffffff !important;
}

.cta-gratis h2,
.cta-gratis h3,
.cta-gratis p,
.cta-gratis span,
.cta-gratis div {
    color: #ffffff !important;
}

.cta-gratis .btn {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--primary) !important;
    box-shadow: 0 4px 15px rgba(7, 25, 57, 0.25) !important;
}

.cta-gratis .btn:hover {
    background-color: #0b224e !important;
    border-color: #0b224e !important;
    transform: translateY(-2px);
}

/* --- Mobile Menu Scroll Lock --- */
body.menu-active {
    overflow: hidden !important;
    height: 100vh !important;
}

/* --- Desktop Header Alignment: Logo Left, Menu Centered, Button Right --- */
@media (min-width: 769px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .nav-right {
        flex: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-left: 60px;
    }
    .nav-menu {
        margin: 0 auto !important;
    }
    .nav-cta {
        margin-left: 0 !important;
    }
}

@media (min-width: 769px) and (max-width: 1080px) {
    .nav-right {
        gap: 15px !important;
        margin-left: 20px !important;
    }
    .nav-menu {
        gap: 15px !important;
    }
    .nav-menu a {
        font-size: 0.75rem !important;
    }
    .header-logo {
        max-height: 48px !important;
    }
    .nav-cta {
        padding: 8px 16px !important;
        font-size: 0.75rem !important;
    }
}

/* --- FAQ Accordion --- */
details {
    transition: all 0.3s ease;
}
details[open] .faq-arrow {
    transform: rotate(180deg);
}
details[open] {
    background: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 10px 30px rgba(7, 25, 57, 0.05);
}
summary::-webkit-details-marker {
    display: none;
}

/* --- CTA VER PLANES HOVER --- */
.btn-ver-planes {
    background-color: #38A57A !important;
    color: #ffffff !important;
    border: 2px solid #38A57A !important;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
}
.btn-ver-planes:hover {
    background-color: #2C5C49 !important;
    color: #ffffff !important;
    border-color: #2C5C49 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

/* --- CTA WEB GRATIS HOVER (LIGHT GREY) --- */
.btn-web-gratis {
    background-color: #ffffff !important;
    color: var(--primary) !important;
    border: 2px solid #ffffff !important;
    font-weight: 700 !important;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
}
.btn-web-gratis:hover {
    background-color: #F8F9FA !important;
    color: var(--primary) !important;
    border-color: #F8F9FA !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}


