/* Reset y fuente */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e0e7ff, #fef9f9);
    color: #334155;
}

/* Precio IVA pequeño */
.price .iva {
    font-size: 12px;
    vertical-align: super;
    margin-right: 3px;
    color: #666;
}

/* Contenedor principal */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}


/* Branding en la esquina */
.branding {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: default;
    z-index: 9999;
    transition: left 0.3s ease, top 0.3s ease;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: width 0.3s ease, height 0.3s ease;
}

.company-name {
    font-weight: 800;
    font-size: 1rem;
    color: #1e3aee;
    background: linear-gradient(90deg, #1e3aee, #4f60f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideIn 2s ease forwards;
    user-select: none;
    transition: font-size 0.3s ease;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px;
}

.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header img {
    width: 15%;
    height: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
    transition: transform 0.3s ease, filter 0.3s ease;
}

header img:hover {
    transform: scale(1.07);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2.4rem;
    letter-spacing: 0.02em;
    color: #4f46e5;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #6b7280;
    margin: 1px 0 0;
}

/* Toggle mensual/anual */
.toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #475569;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    background: linear-gradient(90deg, #9ca3af, #cbd5e1);
    border-radius: 34px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.4s;
}

.slider::before {
    content: "";
    position: absolute;
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 50%;
    transition: 0.4s;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.6);
}

input:checked+.slider {
    background: linear-gradient(90deg, #4f46e5, #6366f1);
}

input:checked+.slider::before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    box-shadow: 0 6px 10px rgba(99, 102, 241, 0.8);
}

/* Grid cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 50px;
}

/* Card estilo */
.card {
    background: linear-gradient(135deg, #f8fafc, #e0e7ff);
    border-radius: 20px;
    box-shadow:
        0 10px 25px rgba(99, 102, 241, 0.15),
        0 4px 8px rgba(99, 102, 241, 0.1);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 40px rgba(99, 102, 241, 0.35),
        0 10px 15px rgba(79, 70, 229, 0.25);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #334155;
    margin-bottom: 0.5rem;
    text-align: center;
    /* centrado horizontal */
}

.price {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(45deg, #6366f1, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-align: center;
    /* centrado horizontal */
    width: 100%;
    display: block;
}

ul.features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    flex-grow: 1;
    color: #475569;
    font-weight: 600;
    line-height: 1.4;
}

ul.features li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 26px;
}

ul.features li i {
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: 900;
    font-size: 1rem;
    top: 0;
}

ul.features li {
    margin-bottom: 0;
    position: relative;
    padding: 10px 0 10px 26px;
    /* espacio arriba y abajo, icono a la izquierda */
    border-bottom: 1px solid #d1d5db;
    /* línea tenue entre filas */
}

ul.features li:last-child {
    border-bottom: none;
    /* elimina línea del último elemento */
}

ul.features li i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #6366f1;
    font-weight: 900;
    font-size: 1rem;
}

/* Ocultar features extra */
ul.features li.extra-feature {
    display: none;
}

/* Botón ver detalles centrado */
.btn-toggle-details {
    background: linear-gradient(45deg, #4f46e5, #6366f1);
    color: white;
    font-weight: 700;
    padding: 8px 16px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    margin-top: 10px;

    display: flex;
    /* permite centrar contenido interno */
    align-items: center;
    /* centra verticalmente el texto y icono */
    justify-content: center;
    /* centra horizontalmente */
    gap: 6px;
    /* espacio entre icono y texto si hay */

    align-self: center;
    /* centra el botón dentro de la card */
}

.btn-toggle-details:hover {
    background: linear-gradient(45deg, #6366f1, #4f46e5);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.6);
    transform: translateY(-2px);
}

/* Mostrar features extra */
ul.features.show-details li.extra-feature {
    display: list-item;
    animation: fadeInFeature 0.4s ease forwards;
}

/* Animación aparición features */
@keyframes fadeInFeature {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Layout formulario y términos */
/* Terminos y condiciones abajo del formulario */
.form-terms-wrapper {
    flex-direction: column;
    /* Pone formulario y términos en columna */
    gap: 20px;
}

form#planForm {
    flex: 1 1 480px;
    background: white;
    border-radius: 25px;
    padding: 40px 35px;
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.15);
    min-width: 300px;
}


.terms-container {
    flex: 1 1 100%;
    /* Ocupa todo el ancho */
    max-width: 100%;
    border-radius: 15px;
    padding: 25px 30px;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.07);
    overflow: auto;
    margin-top: 20px;
    /* Separación del formulario */
}

/* Lista numerada */
.terms-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 900;
    color: #334155;
    font-size: 1.8rem;
    letter-spacing: 0.03em;
}

.terms-list {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.terms-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #475569;
}

.terms-list li::before {
    counter-increment: item;
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    font-weight: 900;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 3px 8px rgba(79, 70, 229, 0.3);
    user-select: none;
}

.features .extra-feature {
    display: none;
}

.features.show-details .extra-feature {
    display: list-item;
}

/* Responsive */
@media (max-width: 900px) {
    .form-terms-wrapper {
        flex-direction: column;
    }

    form#planForm,
    .terms-container {
        max-width: 100%;
        flex-basis: auto;
    }
}

@media (max-width: 600px) {
    .card {
        padding: 20px 15px;
    }

    .price {
        font-size: 1.6rem;
    }

    form#planForm {
        padding: 30px 25px;
    }

    form#planForm h2 {
        font-size: 2rem;
    }
}

@media (max-width: 750px) {
    .toggle-container {
        margin-top: 40px;
        margin-bottom: 30px;
    }
}

/* Branding animaciones */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(30, 58, 238, 0.5));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 6px 12px rgba(79, 96, 245, 0.8));
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 600px) {
    .branding {
        left: 10px;
        top: 10px;
        gap: 8px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .company-name {
        font-size: 1.2rem;
        animation: none;
    }
}


.footer {
    background: #1f1f1f;
    color: #f1f1f1;
    padding: 40px 20px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-section {
    flex: 1 1 250px;
    margin: 15px;
}

.footer-section h4 {
    color: rgba(79, 96, 245, 0.8);
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 2px solid #6c63ff;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    transition: transform 0.2s;
}

.footer-section ul li img {
    width: 30px;
    height: 30px;
    margin-right: 12px;
}

.footer-section ul li:hover {
    transform: translateX(5px);
}

.footer-section a {
    color: #8882f9;
    text-decoration: none;
    font-weight: 500;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-copy {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9em;
    color: #b5b5b5;
}