/* ============================================================
   RESET Y BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: #1a1a2e;
    line-height: 1.6;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.85), rgba(180, 215, 255, 0.85)),
        url('/img/fondo.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}



/* ============================================================
   HEADER
   ============================================================ */
header {
    background: linear-gradient(135deg, #0983ce, #0a6fb0);
    color: #fff;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(9, 131, 206, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 0.5rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1 1 auto;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(to right, #f8ef22, #f5d900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    font-size: 0.8rem;
    opacity: 0.8;
    display: block;
    margin-top: -0.2rem;
    color: #e0f0ff;
}

/* Checkbox para menú hamburguesa (oculto) */
#menu-toggle {
    display: none;
}

/* Botón hamburguesa */
.menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: border-color 0.3s;
    background: transparent;
    user-select: none;
}

.menu-btn:hover {
    border-color: #f8ef22;
}

/* Menú de navegación */
nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.4rem 0.2rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

nav ul li a:hover {
    border-bottom-color: #f8ef22;
    color: #f8ef22;
}

/* ============================================================
   MAIN Y SECCIONES
   ============================================================ */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

section {
    background: #fff;
    padding: 2rem 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

section:hover {
    transform: translateY(-2px);
}

h2 {
    color: #0a1a3a;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(to right, #f8ef22, #f5d900);
    border-radius: 2px;
}

h3 {
    color: #1a3a6a;
    font-size: 1.4rem;
    margin: 1.8rem 0 0.8rem;
}

/* ============================================================
   COMUNICADO
   ============================================================ */
.comunicado {
    background: linear-gradient(145deg, #fef9e7, #fff8e1);
    border-left: 6px solid #f8ef22;
    padding: 2rem 2.5rem;
}

.comunicado h2 {
    color: #b8860b;
}

.comunicado ul,
.comunicado ol {
    margin: 1rem 0 1rem 1.8rem;
}

.comunicado li {
    margin-bottom: 0.5rem;
}

.comunicado img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   PLANES
   ============================================================ */


.planes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 16px;
    z-index: 0;
}

.planes > * {
    position: relative;
    z-index: 1;
}

.planes h2 {
    color: #fff;
    border-bottom-color: #f8ef22;
}



.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

/* Clase base con todo lo compartido */
.plan-card {
    background: #fafbfc;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 8px solid; /* el color se define después */
    transition: all 0.3s ease;
}

/* Cada variante solo cambia el color del borde */
.plan-1 { border-color: #eaeef2; }
.plan-2 { border-color: #c29436; }
.plan-3 { border-color: #8a9597; }
.plan-4 { border-color: #b08d57; }


.plan-header {
    margin: -1.5rem -1.5rem 1.2rem -1.5rem;
    padding: 1rem;
    border-radius: 16px 16px 0 0;
    font-size: 1.3rem;
    letter-spacing: 1px;
    font-weight: 700;
} 
.plan-card h3 {
    background: linear-gradient(135deg, #0983ce, #0a6fb0);
    color: #fff;
    margin: -2rem -1.5rem 1.2rem -1.5rem;
    padding: 1rem;
    border-radius: 16px 16px 0 0;
    font-size: 1.3rem;
    letter-spacing: 1px;
}



.plan-card .precio {
    font-size: 2.4rem;
    font-weight: 700;
    color: #0a1a3a;
    margin: 0.5rem 0;
}


.plan-card .bs {
    font-size: 1.2rem;
    color: #555;
    background: #eef2f7;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    display: inline-block;
}




.plan-card p {
    margin: 0.6rem 0;
    font-size: 0.95rem;
    color: #3d3d5c;
}


/* ============================================================
   VERSIONES
   ============================================================ */
.versiones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.version {
    background: #f8faff;
    padding: 1.8rem;
    border-radius: 16px;
    border: 1px solid #e0e8f0;
}

.version h3 {
    background: linear-gradient(135deg, #0983ce, #0a6fb0);
    color: #fff;
    display: inline-block;
    padding: 0.2rem 1.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    margin-top: 0;
}

.version ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.version ul li {
    padding: 0.4rem 0 0.4rem 1.8rem;
    position: relative;
    border-bottom: 1px dashed #e8ecf0;
}

.version ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #f8ef22;
    font-weight: bold;
}



/* Formularios */
.formulario form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.formulario label {
    font-weight: bold;
}

.formulario input,
.formulario select,
.formulario textarea {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    max-width: 500px;
}

.formulario button {
    background: #003366;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    width: fit-content;
    transition: background 0.3s;
}

.formulario button:hover {
    background: #002244;
}

.error {
    color: #d00;
    background: #ffe0e0;
    padding: 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.success {
    color: #0a0;
    background: #e0ffe0;
    padding: 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 0.6rem;
    text-align: left;
}

table th {
    background: #003366;
    color: white;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

.admin-table {
    font-size: 0.9rem;
}

.admin-table a {
    margin: 0 0.25rem;
    color: #003366;
    font-weight: bold;
}

/* Dashboard */
.dashboard .perfil {
    background: #f0f4f8;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.dashboard .suscripcion {
    background: #e6f2ff;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contacto label {
    font-weight: 600;
    color: #1a3a6a;
}

.contacto input,
.contacto textarea {
    padding: 0.8rem 1rem;
    border: 2px solid #dce2ea;
    border-radius: 10px;
    font-size: 1rem;
    transition: border 0.3s, box-shadow 0.3s;
    width: 100%;
}

.contacto input:focus,
.contacto textarea:focus {
    outline: none;
    border-color: #f8ef22;
    box-shadow: 0 0 0 4px rgba(248, 239, 34, 0.15);
}

.contacto button {
    background: linear-gradient(135deg, #0983ce, #0a6fb0);
    color: #fff;
    border: none;
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(9, 131, 206, 0.3);
}

.contacto button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(9, 131, 206, 0.4);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: linear-gradient(135deg, #0983ce, #0a6fb0);
    color: #ccc;
    text-align: center;
    padding: 1.8rem;
    margin-top: 3rem;
    font-size: 0.95rem;
}

footer p {
    opacity: 0.8;
}

/* ============================================================
   RESPONSIVE (Menú hamburguesa y otros ajustes)
   ============================================================ */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        padding: 0.6rem 1rem;
    }

    .logo {
        flex: 1 1 auto;
    }

    .logo-img {
        height: 35px;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .logo span {
        font-size: 0.7rem;
    }

    .menu-btn {
        display: block;
    }

    nav {
        flex: 0 0 100%;
        justify-content: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        background: rgba(9, 131, 206, 0.95);
        border-radius: 0 0 12px 12px;
        margin-top: 0.5rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.5rem 0;
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 0.6rem 1rem;
        text-align: center;
        font-size: 1rem;
        border-bottom: none;
        border-radius: 6px;
    }

    nav ul li a:hover {
        background: rgba(255, 255, 255, 0.15);
        border-bottom: none;
        color: #f8ef22;
    }

    /* Mostrar menú cuando checkbox está marcado */
    #menu-toggle:checked ~ nav {
        max-height: 400px;
    }

    /* Ajustes de secciones */
    section {
        padding: 1.2rem;
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }

    .versiones {
        grid-template-columns: 1fr;
    }

    .contacto form {
        max-width: 100%;
    }
}