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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    background: #02142b;
}

/* ===== NAV ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(2, 115, 129, 0.9); /* Verde institucional */
    backdrop-filter: blur(10px);
    z-index: 1000;
}

nav h1 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 30px;
    transition: 0.3s;
}

nav a:hover {
    color: #fc525c; /* Coral */
}

/* ===== SECCIONES ===== */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 10%;
    position: relative;
    overflow: hidden;
}

/* ===== FONDOS POR SECCIÓN ===== */

/* INICIO - Enseñanza */
#inicio::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(2,115,129,0.85), rgba(3,173,163,0.75)),
        url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* QUIENES SOMOS - Equipo profesores */
#quienes-somos::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(3,173,163,0.85), rgba(2,115,129,0.8)),
        url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* SINTESIS - Enseñanza biología */
#sintesis::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(2,115,129,0.85), rgba(2,20,43,0.85)),
        url("https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* INTERVENCIONES - Materias escolares */
#intervenciones::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(3,173,163,0.85), rgba(252,82,92,0.75)),
        url("https://images.unsplash.com/photo-1588072432836-e10032774350?auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* EVALUACIONES - Evaluación escolar */
#evaluaciones::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(243,56,41,0.85), rgba(2,115,129,0.8)),
        url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* ENLACES - Conectividad web */
#enlaces::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(2,115,129,0.85), rgba(3,173,163,0.8)),
        url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* ===== TARJETA GLASS ===== */
.glass {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 60px;
    backdrop-filter: blur(18px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    max-width: 1100px;
    width: 100%;
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s ease;
}

.glass.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== TITULOS ===== */
h2 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    margin-bottom: 30px;
}

h3 {
    font-family: 'Playfair Display', serif;
    margin-top: 25px;
    color: #fc525c; /* Coral */
}

/* ===== TEXTO ===== */
p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ===== BOTONES ===== */
button {
    padding: 12px 30px;
    background: #fc525c; /* Coral */
    border: none;
    border-radius: 30px;
    color: #ffffff;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #03ada3; /* Turquesa */
}

/* ===== CARDS ===== */
.card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    justify-content: center;
}

.card-list li {
    flex: 1 1 280px;
    max-width: 400px;
}

.card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-decoration: none;
    color: #ffffff;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    background: #03ada3;
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px) {
    .glass {
        padding: 30px;
    }

    h2 {
        font-size: 28px;
    }
}
