/*=========================================
PITÁGORAS SCHOOL
Autor: ChatGPT
Versión: 2.0
=========================================*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

html{

scroll-behavior:smooth;

}

body{

background:#f6f7fb;
overflow-x:hidden;
color:#444;

}

img{

max-width:100%;
display:block;

}

a{

text-decoration:none;

}

ul{

list-style:none;

}

section{

padding:100px 8%;

}

/*======================================
VARIABLES
======================================*/

:root{

--guinda:#760b1d;
--guinda2:#5d0817;
--amarillo:#f1c232;
--gris:#f6f7fb;
--gris2:#ececec;
--texto:#444;
--blanco:#fff;

--shadow:

0 15px 35px rgba(0,0,0,.08);

}

/*======================================
CONTENEDOR
======================================*/

.container{

width:100%;
max-width:1300px;

margin:auto;

}

/*======================================
HEADER
======================================*/

header{

position:fixed;

top:0;
left:0;

width:100%;

padding:18px 8%;

z-index:1000;

transition:.35s;

background:rgba(118,11,29,.95);

backdrop-filter:blur(15px);

box-shadow:

0 8px 25px rgba(0,0,0,.15);

}

header .container{

display:flex;

justify-content:space-between;

align-items:center;

}

/*======================================
LOGO
======================================*/

.logo{

display:flex;

align-items:center;

gap:18px;

}

.logo img{

width:75px;

transition:.4s;

}

.logo h1{

font-size:30px;

color:white;

font-weight:800;

letter-spacing:1px;

}

.logo p{

color:var(--amarillo);

font-size:14px;

font-weight:500;

}

/*======================================
MENU
======================================*/

nav{

display:flex;

gap:35px;

}

nav a{

color:white;

font-weight:600;

position:relative;

transition:.3s;

}

nav a::after{

content:"";

position:absolute;

left:0;
bottom:-8px;

width:0;

height:3px;

background:var(--amarillo);

transition:.35s;

border-radius:20px;

}

nav a:hover{

color:var(--amarillo);

}

nav a:hover::after{

width:100%;

}

/*======================================
BOTON MENU MOVIL
======================================*/

.menu{

display:none;

font-size:28px;

color:white;

cursor:pointer;

}

/*======================================
HERO
======================================*/

.hero{

position:relative;

height:100vh;

display:flex;

justify-content:center;

align-items:center;

text-align:center;

overflow:hidden;

background:

linear-gradient(

rgba(20,20,20,.55),

rgba(118,11,29,.65)

),

url("../img/colegio.jpg");

background-size:cover;

background-position:center;

background-attachment:fixed;

}

/*======================================
OVERLAY
======================================*/

.overlay{

position:absolute;

width:100%;

height:100%;

background:

linear-gradient(

180deg,

rgba(0,0,0,.15),

rgba(118,11,29,.25)

);

}

/*======================================
CONTENIDO HERO
======================================*/

.hero-content{

position:relative;

z-index:20;

max-width:900px;

padding:20px;

margin-top:80px;

}

.hero-logo{

width:260px;

margin:auto;

margin-bottom:35px;

filter:

drop-shadow(0 15px 30px rgba(0,0,0,.35));

animation:flotar 4s ease-in-out infinite;

}

@keyframes flotar{

0%{

transform:translateY(0px);

}

50%{

transform:translateY(-10px);

}

100%{

transform:translateY(0px);

}

}

.hero h2{

color:#fff;

font-size:28px;

font-weight:400;

letter-spacing:3px;

text-transform:uppercase;

margin-bottom:10px;

}

.hero h1{

font-size:74px;

font-weight:800;

color:white;

line-height:1.1;

margin-bottom:25px;

}

.linea{

width:120px;

height:5px;

background:var(--amarillo);

margin:30px auto;

border-radius:50px;

}

.hero p{

font-size:22px;

line-height:2;

color:white;

max-width:850px;

margin:auto;

}

/*======================================
BOTON
======================================*/

.btn-principal{

display:inline-flex;

align-items:center;

gap:12px;

margin-top:45px;

background:var(--amarillo);

padding:18px 42px;

border-radius:50px;

font-weight:700;

color:#222;

font-size:18px;

transition:.35s;

box-shadow:

0 15px 30px rgba(0,0,0,.2);

}

.btn-principal:hover{

transform:translateY(-5px);

background:white;

}

/*======================================
WAVE
======================================*/

.wave{

position:absolute;

bottom:-5px;

left:0;

width:100%;

line-height:0;

}

.wave svg{

display:block;

width:100%;

height:120px;

}

/*======================================
TITULOS
======================================*/

.titulo{

text-align:center;

margin-bottom:60px;

}

.titulo h2{

font-size:48px;

color:var(--guinda);

margin-bottom:15px;

font-weight:800;

}

.titulo p{

font-size:20px;

color:#666;

max-width:800px;

margin:auto;

line-height:1.8;

}

/*======================================
RESPONSIVE
======================================*/

@media(max-width:991px){

nav{

display:none;

}

.menu{

display:block;

}

.hero-logo{

width:180px;

}

.hero h1{

font-size:48px;

}

.hero p{

font-size:18px;

}

.logo h1{

font-size:22px;

}

.logo img{

width:60px;

}

}
/*==================================================
COMUNICADO
==================================================*/

.comunicado{

background:var(--gris);

position:relative;

}

.comunicado-box{

max-width:1100px;

margin:auto;

background:rgba(255,255,255,.95);

padding:60px;

border-radius:30px;

box-shadow:var(--shadow);

display:grid;

grid-template-columns:120px 1fr;

gap:40px;

align-items:center;

transition:.4s;

}

.comunicado-box:hover{

transform:translateY(-8px);

box-shadow:0 25px 45px rgba(0,0,0,.12);

}

.comunicado .icono{

width:100px;

height:100px;

border-radius:50%;

background:linear-gradient(135deg,var(--guinda),var(--guinda2));

display:flex;

justify-content:center;

align-items:center;

margin:auto;

}

.comunicado .icono i{

font-size:42px;

color:white;

}

.comunicado .texto p{

font-size:18px;

line-height:2;

margin-bottom:18px;

color:#555;

}

.comunicado strong{

color:var(--guinda);

font-weight:700;

}

/*==================================================
PORTAL
==================================================*/

.portal{

background:white;

}

.cards{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

gap:35px;

margin-top:60px;

}

.card{

background:white;

padding:45px 35px;

border-radius:25px;

text-align:center;

box-shadow:var(--shadow);

transition:.35s;

position:relative;

overflow:hidden;

border:1px solid rgba(118,11,29,.08);

}

.card::before{

content:"";

position:absolute;

top:0;

left:0;

width:100%;

height:6px;

background:linear-gradient(90deg,var(--guinda),var(--amarillo));

}

.card:hover{

transform:translateY(-12px);

box-shadow:0 25px 45px rgba(0,0,0,.12);

}

.card i{

width:90px;

height:90px;

border-radius:50%;

background:linear-gradient(135deg,var(--guinda),#8b1027);

display:flex;

justify-content:center;

align-items:center;

margin:0 auto 25px;

font-size:38px;

color:white;

transition:.35s;

}

.card:hover i{

transform:rotate(8deg) scale(1.08);

background:linear-gradient(135deg,var(--amarillo),#e0b020);

color:#222;

}

.card h3{

font-size:28px;

margin-bottom:18px;

color:var(--guinda);

font-weight:700;

}

.card p{

font-size:17px;

line-height:1.9;

color:#666;

}

/*==================================================
EFECTO GLASS
==================================================*/

.glass{

background:rgba(255,255,255,.15);

backdrop-filter:blur(20px);

border:1px solid rgba(255,255,255,.25);

}

/*==================================================
SEPARADOR
==================================================*/

.separador{

width:120px;

height:5px;

background:linear-gradient(90deg,var(--guinda),var(--amarillo));

margin:25px auto;

border-radius:50px;

}

/*==================================================
ANIMACIONES
==================================================*/

.card{

opacity:0;

transform:translateY(40px);

animation:subir .8s forwards;

}

.card:nth-child(1){animation-delay:.10s;}
.card:nth-child(2){animation-delay:.20s;}
.card:nth-child(3){animation-delay:.30s;}
.card:nth-child(4){animation-delay:.40s;}
.card:nth-child(5){animation-delay:.50s;}
.card:nth-child(6){animation-delay:.60s;}

@keyframes subir{

to{

opacity:1;

transform:translateY(0);

}

}

/*==================================================
BOTONES SECUNDARIOS
==================================================*/

.btn{

display:inline-block;

padding:15px 35px;

border-radius:40px;

background:var(--guinda);

color:white;

font-weight:600;

transition:.35s;

}

.btn:hover{

background:var(--amarillo);

color:#222;

}

/*==================================================
RESPONSIVE
==================================================*/

@media(max-width:900px){

.comunicado-box{

grid-template-columns:1fr;

padding:35px;

text-align:center;

}

.comunicado .icono{

margin-bottom:15px;

}

.cards{

grid-template-columns:1fr;

}

.card{

padding:35px;

}

}
/*==================================================
NUESTROS PROYECTOS
==================================================*/

.proyectos{

background:linear-gradient(135deg,#760b1d,#4f0814);

position:relative;

overflow:hidden;

color:white;

}

.proyectos::before{

content:"";

position:absolute;

width:500px;

height:500px;

background:rgba(255,255,255,.05);

border-radius:50%;

top:-220px;

right:-180px;

}

.proyectos::after{

content:"";

position:absolute;

width:350px;

height:350px;

background:rgba(255,255,255,.03);

border-radius:50%;

bottom:-180px;

left:-120px;

}

.proyectos .titulo h2{

color:white;

}

.proyectos .titulo p{

color:#f2f2f2;

}

.cards-proyectos{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

gap:35px;

margin-top:60px;

position:relative;

z-index:10;

}

.proyecto{

background:rgba(255,255,255,.08);

backdrop-filter:blur(15px);

padding:40px 30px;

border-radius:25px;

text-align:center;

border:1px solid rgba(255,255,255,.15);

transition:.35s;

}

.proyecto:hover{

transform:translateY(-10px);

background:rgba(255,255,255,.14);

}

.proyecto i{

font-size:55px;

margin-bottom:25px;

color:var(--amarillo);

}

.proyecto h3{

font-size:28px;

margin-bottom:18px;

font-weight:700;

}

.proyecto p{

line-height:1.9;

font-size:17px;

color:#f3f3f3;

}

/*==================================================
ESTADÍSTICAS
==================================================*/

.estadisticas{

background:white;

padding:90px 8%;

}

.stats{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:30px;

margin-top:50px;

}

.stat{

background:white;

padding:40px;

border-radius:25px;

text-align:center;

box-shadow:var(--shadow);

transition:.35s;

}

.stat:hover{

transform:translateY(-8px);

}

.stat h2{

font-size:48px;

color:var(--guinda);

margin-bottom:10px;

font-weight:800;

}

.stat p{

font-size:18px;

color:#666;

}

/*==================================================
BARRA DE PROGRESO
==================================================*/

.avance{

background:var(--gris);

}

.progress-card{

max-width:900px;

margin:auto;

background:white;

padding:55px;

border-radius:25px;

box-shadow:var(--shadow);

text-align:center;

}

.progress-card h3{

font-size:34px;

color:var(--guinda);

margin-bottom:20px;

}

.progress-card p{

color:#666;

line-height:1.8;

font-size:18px;

margin-bottom:35px;

}

.progress{

width:100%;

height:22px;

background:#e6e6e6;

border-radius:30px;

overflow:hidden;

}

.progress span{

display:flex;

justify-content:center;

align-items:center;

height:100%;

width:75%;

background:linear-gradient(90deg,#760b1d,#f1c232);

color:white;

font-weight:700;

animation:barra 2.5s ease;

}

@keyframes barra{

from{

width:0;

}

to{

width:75%;

}

}

/*==================================================
BOTÓN AMARILLO
==================================================*/

.btn-yellow{

display:inline-block;

margin-top:35px;

padding:18px 42px;

border-radius:50px;

background:var(--amarillo);

color:#222;

font-weight:700;

transition:.35s;

}

.btn-yellow:hover{

background:white;

transform:translateY(-5px);

}

/*==================================================
RESPONSIVE
==================================================*/

@media(max-width:900px){

.cards-proyectos{

grid-template-columns:1fr;

}

.stats{

grid-template-columns:1fr;

}

.progress-card{

padding:35px;

}

.progress-card h3{

font-size:28px;

}

}
/*==================================================
CONTACTO
==================================================*/

.contacto{

background:white;

}

.contacto-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

gap:35px;

margin-top:60px;

}

.contacto-card{

background:#fff;

padding:45px;

border-radius:25px;

text-align:center;

box-shadow:var(--shadow);

transition:.35s;

}

.contacto-card:hover{

transform:translateY(-10px);

}

.contacto-card i{

width:90px;

height:90px;

border-radius:50%;

background:linear-gradient(135deg,var(--guinda),var(--guinda2));

display:flex;

justify-content:center;

align-items:center;

margin:auto;

font-size:38px;

color:white;

margin-bottom:25px;

}

.contacto-card h3{

color:var(--guinda);

font-size:28px;

margin-bottom:15px;

}

.contacto-card p{

line-height:1.8;

color:#666;

}

/*==================================================
FOOTER
==================================================*/

footer{

background:#111;

padding:80px 8% 30px;

color:white;

}

.footer-grid{

display:grid;

grid-template-columns:2fr 1fr 1fr;

gap:50px;

}

.footer-logo img{

width:130px;

margin-bottom:20px;

}

.footer-logo h2{

color:var(--amarillo);

font-size:34px;

margin-bottom:15px;

}

.footer-logo p{

line-height:1.8;

color:#d0d0d0;

}

.footer-links h3,

.footer-social h3{

margin-bottom:20px;

color:var(--amarillo);

}

.footer-links a{

display:block;

margin-bottom:12px;

color:#ddd;

transition:.3s;

}

.footer-links a:hover{

padding-left:8px;

color:var(--amarillo);

}

.social-icons{

display:flex;

gap:15px;

margin-top:20px;

}

.social-icons a{

width:50px;

height:50px;

border-radius:50%;

background:#760b1d;

display:flex;

justify-content:center;

align-items:center;

color:white;

font-size:20px;

transition:.35s;

}

.social-icons a:hover{

background:var(--amarillo);

color:#222;

transform:translateY(-6px);

}

.footer-copy{

margin-top:60px;

padding-top:25px;

border-top:1px solid rgba(255,255,255,.15);

text-align:center;

color:#aaa;

line-height:1.8;

}

/*==================================================
BOTÓN WHATSAPP
==================================================*/

.whatsapp{

position:fixed;

bottom:25px;

right:25px;

width:65px;

height:65px;

border-radius:50%;

background:#25D366;

display:flex;

justify-content:center;

align-items:center;

color:white;

font-size:34px;

box-shadow:0 12px 25px rgba(0,0,0,.25);

z-index:999;

transition:.35s;

}

.whatsapp:hover{

transform:scale(1.12);

}

/*==================================================
BOTÓN SUBIR
==================================================*/

.top{

position:fixed;

bottom:105px;

right:25px;

width:55px;

height:55px;

background:var(--guinda);

border-radius:50%;

display:flex;

justify-content:center;

align-items:center;

color:white;

font-size:22px;

cursor:pointer;

opacity:0;

visibility:hidden;

transition:.35s;

z-index:998;

}

.top.show{

opacity:1;

visibility:visible;

}

.top:hover{

background:var(--amarillo);

color:#222;

}

/*==================================================
ANIMACIONES
==================================================*/

.fade{

opacity:0;

transform:translateY(60px);

transition:1s;

}

.fade.show{

opacity:1;

transform:translateY(0);

}

/*==================================================
SCROLLBAR
==================================================*/

::-webkit-scrollbar{

width:10px;

}

::-webkit-scrollbar-track{

background:#f2f2f2;

}

::-webkit-scrollbar-thumb{

background:#760b1d;

border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

background:#5d0817;

}

/*==================================================
RESPONSIVE
==================================================*/

@media(max-width:991px){

.footer-grid{

grid-template-columns:1fr;

text-align:center;

}

.social-icons{

justify-content:center;

}

.contacto-grid{

grid-template-columns:1fr;

}

.hero{

background-attachment:scroll;

}

section{

padding:80px 6%;

}

}

@media(max-width:600px){

.hero h1{

font-size:38px;

}

.hero h2{

font-size:20px;

}

.hero p{

font-size:17px;

line-height:1.8;

}

.btn-principal{

padding:15px 28px;

font-size:16px;

}

.logo img{

width:55px;

}

.logo h1{

font-size:20px;

}

.titulo h2{

font-size:34px;

}

.card,

.proyecto,

.contacto-card{

padding:30px;

}

.footer-logo img{

width:100px;

}

.footer-logo h2{

font-size:26px;

}

}