/* ============================
   BASE GLOBAL
   ============================ */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6fc;
    color: #1e293b;
    scroll-behavior: smooth;

    /* Mejoras visuales */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

/* ============================
   HEADER
   ============================ */
header {
    background: #1e40af;
    color: white;
    padding: 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: sticky;
    top: 0;
    z-index: 999;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    margin: 0;
}

/* NAV */
nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

nav a:hover {
    text-decoration: underline;
}

/* ============================
   HERO
   ============================ */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: #3b82f6;
    color: white;
}

.btn {
    padding: 14px 30px;
    background: white;
    color: #1e40af;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    cursor: pointer;
}

/* ============================
   SECCIONES GENERALES
   ============================ */
.section {
    padding: 60px 20px;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* ============================
   GRID GENERAL
   ============================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

/* ============================
   CARDS DE FUNCIONES
   ============================ */
.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.15);
}

/* ============================
   PRICING
   ============================ */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.price-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 260px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.price-card.featured {
    border: 3px solid #1e40af;
}

.price {
    font-size: 28px;
    margin: 10px 0;
    font-weight: bold;
}

/* ============================
   FOOTER
   ============================ */
footer {
    text-align: center;
    padding: 25px;
    background: #1e40af;
    color: white;
    margin-top: 40px;
}

footer a {
    color: #c7d7ff;
    text-decoration: none;
}

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

/* ============================
   MODO OSCURO AUTOMÁTICO
   ============================ */
@media (prefers-color-scheme: dark) {
    body {
        background: #0f172a;
        color: white;
    }

    header, footer {
        background: #0f172a;
    }

    .card {
        background: #1e293b;
        color: white;
        box-shadow: 0 3px 12px rgba(255,255,255,0.05);
    }

    .price-card {
        background: #1e293b;
        color: white;
        box-shadow: 0 3px 12px rgba(255,255,255,0.05);
    }

    .price-card.featured {
        border-color: #3b82f6;
    }

    .hero {
        background: #1e40af;
        color: white;
    }

    .btn {
        background: #3b82f6;
        color: white;
    }
}
