﻿﻿/* Estilos para la pÃ¡gina de Planes Vanguardia */

:root {
    /* Color scheme */
    --primary: #2563eb;
    --primary-light: #93c5fd;
    --primary-dark: #1d4ed8;
    --color-bg: #ffffff;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-border: #e5e7eb;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.planes-body {
    background: linear-gradient(180deg, #f7f9ff 0%, #eef3ff 35%, #e9f4ff 100%);
    min-height: 100vh;
}

/* ===== Header & Navigation ===== */
.header {
    background-color: var(--color-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease-in-out;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: var(--primary);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a:focus::after {
    width: 100%;
}

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

.main-navigation a.active::after {
    width: 100%;
}

/* ===== Hero & Pricing Layout ===== */
.pricing-hero {
    padding: 3.5rem 0 1rem;
}

.pricing-hero h1 {
    margin-bottom: 0.75rem;
}

.pricing-hero p {
    margin-bottom: 0;
}

.pricing-calculator.section-padding {
    padding-top: 1.25rem;
}

@media (max-width: 768px) {
    .pricing-hero {
        padding: 2.5rem 0 0.75rem;
    }

    .pricing-hero h1 {
        margin-bottom: 0.5rem;
    }

    .pricing-calculator.section-padding {
        padding-top: 1rem;
    }
}
/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .main-navigation.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    .main-navigation li {
        text-align: center;
    }

    .main-navigation a {
        display: block;
        padding: 0.75rem 1rem;
    }
}

/* Estilos generales */
.section-padding {
    padding: 6rem 0;
}

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

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

/* Tarjetas de mÃ³dulos */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.module-card {
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 1rem;
    background: white;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.module-card:hover::before {
    transform: scaleY(1);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.module-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--gray-800);
    font-weight: 600;
}

.badge {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.best-value {
    background: var(--warning);
    animation: pulse 2s infinite;
    margin-left: 0.5rem;
}

.module-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0;
}

.module-price .period {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

.module-description {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.module-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.module-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.module-features li::before {
    content: '\2713';
    color: var(--success);
    margin-right: 0.5rem;
    font-weight: bold;
}

.module-toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 3.5rem;
    height: 2rem;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 2rem;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 1.5rem;
    width: 1.5rem;
    left: 0.25rem;
    bottom: 0.25rem;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #3b82f6;
}

input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

input:checked + .toggle-slider:before {
    transform: translateX(1.5rem);
}

/* Selector de perÃ­odo */
.period-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.period-option {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
}

.period-option input[type="radio"] {
    display: none;
}

.period-option label {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.period-option input[type="radio"]:checked + label {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.period-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.period-discount {
    display: block;
    color: #10b981;
    font-size: 0.875rem;
}

.period-best-value {
    display: inline-block;
    background-color: #3b82f6;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
}

/* Estilos para la cuadrÃ­cula de mÃ³dulos */
#modulesGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Estilos para las tarjetas de mÃ³dulos */
.module-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Resumen de compra */
.pricing-summary {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 1rem;
    height: fit-content;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.125rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid #e5e7eb;
}

.summary-label {
    color: var(--gray-700);
}

.summary-value {
    font-weight: 600;
}

.text-success {
    color: #10b981;
}

/* Botones */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.btn--primary2 {
    background-color:#3b82f6 ;
    color: white;
    border-color: #3b82f6  var(--primary-dark);;
}


.btn--primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--primary:disabled {
    background-color: var(--gray-200);
    border-color: var(--gray-400);
    color: var(--gray-800);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn--primary:disabled .btn-amount,
.btn--primary:disabled .btn-period,
.btn--primary:disabled .currency-symbol {
    color: inherit;
}

/* Alertas */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.alert p {
    margin: 0;
}

/* Animaciones */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes highlight {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        color: #1e40af;
    }
    100% {
        transform: scale(1);
    }
}

.highlight {
    animation: highlight 1s ease;
}

/* Responsive */
@media (max-width: 1200px) {
    #modulesGrid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .module-card {
        padding: 1.25rem;
    }
}

@media (max-width: 992px) {
    #modulesGrid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .period-option {
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    #modulesGrid {
        grid-template-columns: 1fr;
    }
    
    .period-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .period-option {
        width: 100%;
        max-width: 300px;
    }
    
    .pricing-summary {
        position: static;
        margin-top: 2rem;
    }
}

/* Utilidades */
.w-full {
    width: 100%;
}

.text-sm {
    font-size: 0.875rem;
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

/* Estilos para el encabezado y navegaciÃ³n */
.header {
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.main-navigation a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: var(--primary);
}

.main-navigation a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Estilos para el pie de pÃ¡gina */
.footer {
    background: var(--gray-50);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--gray-200);
}

.footer p {
    text-align: center;
    color: var(--gray-600);
    margin: 0;
}

/* Mejoras de accesibilidad */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Estilos para mÃ³viles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .main-navigation.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .main-navigation a {
        display: block;
        padding: 0.75rem 0;
    }
}




#checkout-button {
    background-color:#3b82f6 ;
    color: white;
    border-color: #3b82f6 ;
}

#checkout-button[disabled] {
    background-color: var(--gray-200);
    border-color: var(--gray-400);
    color: var(--gray-800);
}

#checkout-button .btn-amount,
#checkout-button .btn-period {
    display: block;
    color: inherit;
}

#checkout-button .btn-amount {
    font-weight: 700;
}

#checkout-button .btn-period {
    font-size: 0.875rem;
}
