/* ====== ESTILOS GENERALES ====== */

html {
	scroll-behavior:smooth;
	font-size:120%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	
}

body {
    font-family: "Poppins", sans-serif;
    background: #0d0d0d;
    color: #e6e6e6;
    line-height: 1.6;
}

/* ====== EFECTO CRT ====== */
.retro {
    font-family: "VT323", monospace;
    color: #00ff55;
    text-shadow: 0 0 8px #00ff55;
}

/* ====== HERO ====== */
.hero {
    background: linear-gradient(135deg, #4a90e2, #0072ff);
    color: white;
    padding: 80px 20px;
    text-align: center;
    animation: fadeDown 1s ease-out;
}

.hero h1 {
    font-size: 4rem;   /* antes era más pequeño */
    line-height: 1.1;
}


@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

.parrafo {
    margin-bottom: 25px; 
    line-height: 1.8;    
}


.contenido p {
    margin-bottom: 28px;
}


/* ====== MENÚ ANIMADO ====== */
.menu {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.25);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 100%;
    top: 0;
    left: 0;
    background: white;
    opacity: 0.2;
    transition: 0.3s;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    color: #0072ff;
}

/* ====== SECCIONES ====== */
.intro,
.contenido {
    max-width: 900px;
    margin: 10px auto;
    padding: 40px;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* ====== ANIMACIÓN DE APARICIÓN ====== */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ====== LOGOS ====== */
.logo {
    width: 160px;
    display: block;
    margin: 20px auto 30px auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

/* ====== BOTÓN VOLVER ====== */
.volver {
    display: block;
    margin: 30px auto 0 auto; /* centrado horizontal */
    text-align: center;
    background: #0072ff;
    width: fit-content; /* mantiene el tamaño del botón */
}

.volver:hover {
    background: #005bd1;
    color: white;
}

/* Ocultar todo el contenido excepto la intro */
.contenido {
    display: none;
}

/* Cuando se muestre una sección, que quede centrada */
.contenido.activa {
    display: block;
    margin: 20px auto;   /* margen arriba y abajo */
    padding: 40px;
}



/* ============================
   ADAPTACIÓN PARA MÓVILES
   ============================ */
@media (max-width: 768px) {

    /* HERO */
    .hero {
        padding: 50px 15px;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    /* MENÚ RESPONSIVE */
    .menu {
        flex-wrap: wrap;
        gap: 10px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    /* SECCIONES */
    .intro,
    .contenido {
        margin: 30px 15px;
        padding: 25px;
    }

    .contenido h2 {
        font-size: 1.8rem;
        text-align: center;
		 margin: 30px 15px;
    }

    .parrafo {
        font-size: 1rem;
        text-align: justify;
    }

    /* LOGOS */
    .logo {
        width: 110px;
        margin: 15px auto 25px auto;
    }

    /* BOTÓN VOLVER */
    .volver {
    display: block;
    margin: 30px auto 0 auto; /* centrado horizontal */
    text-align: center;
    background: #0072ff;
    width: fit-content; /* mantiene el tamaño del botón */
	}
	
}
