/*====================================================
ETR PORTAL
style.css
Versión 1.0
====================================================*/

/*==========================
RESET
==========================*/

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

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;
    background:#111;
    color:#fff;
    overflow-x:hidden;

}

/*==========================
VARIABLES
==========================*/

:root{

    --rojo:#d60000;
    --rojo-hover:#ff1b1b;
    --negro:#090909;
    --gris:#1b1b1b;
    --gris-claro:#cfcfcf;
    --blanco:#ffffff;

}

/*==========================
HEADER
==========================*/

header{

    position:fixed;
    top:0;
    left:0;

    width:100%;

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

    padding:18px 60px;

    background:rgba(0,0,0,.55);

    backdrop-filter:blur(10px);

    z-index:1000;

}

.logo{

    display:flex;
    align-items:center;
    gap:12px;

    font-size:32px;
    font-weight:700;

}

.logo img{

    width:55px;

}

.logo i{

    color:var(--rojo);
    font-size:40px;

}

.logo span{

    color:white;

}

nav{

    display:flex;
    align-items:center;
    gap:35px;

}

nav a{

    color:white;

    text-decoration:none;

    font-size:18px;

    font-weight:500;

    transition:.3s;

}

nav a:hover{

    color:var(--rojo);

}

.btn-login{

    background:var(--rojo);

    padding:14px 30px;

    border-radius:10px;

    font-weight:600;

}

.btn-login:hover{

    background:var(--rojo-hover);

    color:white;

}

/*==========================
HERO
==========================*/

.hero{

    min-height:100vh;

    background:url("../img/equipo.jpeg") no-repeat;

    background-size:cover;

    background-position:center;

    position:relative;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

}

.hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
        to bottom,
        rgba(0,0,0,.75),
        rgba(0,0,0,.45),
        rgba(0,0,0,.70)
    );

    z-index:1;

}
.hero-overlay{

    position:relative;

    z-index:2;

    width:90%;

    max-width:1100px;

}

.hero-content{

    position:relative;

    z-index:2;

    max-width:950px;

    margin:auto;

    text-align:center;

    background:rgba(0,0,0,.40);

    backdrop-filter:blur(8px);

    -webkit-backdrop-filter:blur(8px);

    padding:65px 55px 55px;

    border-radius:25px;

    border:1px solid rgba(255,255,255,.12);

    box-shadow:0 20px 50px rgba(0,0,0,.35);

}

.hero-etiqueta{

    display:inline-block;

    margin-bottom:25px;

    padding:10px 22px;

    background:rgba(214,0,0,.18);

    border:1px solid rgba(214,0,0,.45);

    border-radius:50px;

    color:#ffffff;

    font-size:14px;

    font-weight:700;

    letter-spacing:3px;

    text-transform:uppercase;

}

.hero-content h1{

    font-size:72px;

    font-weight:800;

    line-height:1.1;

    margin-bottom:20px;

    text-shadow:0 6px 20px rgba(0,0,0,.95);

}

.hero-content h2{

    font-size:34px;

    color:#dddddd;

    margin-bottom:30px;

    text-shadow:0 4px 12px rgba(0,0,0,.95);

}

.hero-content p{

    max-width:850px;

    margin:auto;

    font-size:22px;

    line-height:1.7;

    color:#efefef;

    text-shadow:0 3px 10px rgba(0,0,0,.95);

}

/*==========================
BOTONES
==========================*/

.hero-buttons{

    margin-top:40px;

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

.btn-principal{

    background:var(--rojo);

    color:white;

    text-decoration:none;

    padding:18px 42px;

    border-radius:12px;

    font-size:20px;

    font-weight:600;

    transition:.3s;

}

.btn-principal:hover{

    transform:translateY(-5px);

    background:var(--rojo-hover);

}

.btn-secundario{

    border:2px solid white;

    color:white;

    text-decoration:none;

    padding:18px 42px;

    border-radius:12px;

    font-size:20px;

    font-weight:600;

    transition:.3s;

}

.btn-secundario:hover{

    background:white;

    color:#111;

}

/*==========================
SECCIONES
==========================*/

section{

    padding:100px 8%;

}

section h2{

    text-align:center;

    font-size:45px;

    margin-bottom:20px;

}

section p{

    text-align:center;

    color:#d9d9d9;

    font-size:20px;

}
/*==========================
ESTADÍSTICAS
==========================*/

.estadisticas{

    background:#141414;

}

.contenedor{

    max-width:1300px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

}

.card{

    background:rgba(255,255,255,.05);

    backdrop-filter:blur(10px);

    border:1px solid rgba(255,255,255,.08);

    border-radius:20px;

    padding:45px 30px;

    text-align:center;

    transition:.35s;

    cursor:pointer;

}

.card:hover{

    transform:translateY(-10px);

    border-color:#d60000;

    box-shadow:0 20px 40px rgba(214,0,0,.30);

}

.card i{

    font-size:60px;

    color:#d60000;

    margin-bottom:25px;

}

.card h3{

    font-size:52px;

    font-weight:700;

    margin-bottom:12px;

}

.card p{

    font-size:18px;

    color:#cfcfcf;

    letter-spacing:1px;

}

/*==================================
NOTICIAS
==================================*/

.noticias{

    padding:120px 8%;

    background:#101010;

}

.noticias-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

.noticia-card{

    background:#1d1d1d;

    border-radius:18px;

    overflow:hidden;

    transition:.35s;

}

.noticia-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 40px rgba(214,0,0,.25);

}

.noticia-imagen{

    height:220px;

    overflow:hidden;

}

.noticia-imagen img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.4s;

}

.noticia-card:hover .noticia-imagen img{

    transform:scale(1.05);

}

.noticia-info{

    padding:25px;

}

.noticia-info h3{

    margin-bottom:15px;

    font-size:24px;

}

.noticia-info p{

    color:#d0d0d0;

    line-height:1.8;

}

@media(max-width:1000px){

    .noticias-grid{

        grid-template-columns:1fr;

    }

}

/*==================================
INSTAGRAM
==================================*/

.instagram{

    padding:120px 8%;

    background:#101010;

}

.instagram-grid{

    max-width:1200px;

    margin:60px auto;

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

}

.instagram-grid img{

    width:100%;

    aspect-ratio:1/1;

    object-fit:cover;

    border-radius:15px;

    transition:.35s;

    cursor:pointer;

}

.instagram-grid img:hover{

    transform:scale(1.03);

}

.instagram-boton{

    text-align:center;

}

@media(max-width:768px){

.instagram-grid{

    grid-template-columns:repeat(2,1fr);

}

}

/*==================================
MAPA METEOROLÓGICO
==================================*/

.clima{

    padding:120px 8%;

    background:#151515;

}

.clima-mapa{

    max-width:1300px;

    margin:60px auto 0;

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 20px 50px rgba(0,0,0,.35);

}

.clima-mapa iframe{

    width:100%;

    height:600px;

    border:none;

}

/*==========================
CALENDARIO
==========================*/

.calendario{

    background:#181818;

}

/*==================================
FOOTER
==================================*/

footer{

    background:#080808;

    padding:70px 8% 40px;

}

.footer-contenedor{

    display:grid;

    grid-template-columns:2fr 1fr 1fr;

    gap:60px;

    max-width:1300px;

    margin:auto;

}

.footer-logo{

    width:90px;

    margin-bottom:20px;

}

.footer-columna h3{

    margin-bottom:20px;

}

.footer-columna h4{

    margin-bottom:20px;

    color:#d60000;

}

.footer-columna p{

    text-align:left;

    color:#cfcfcf;

    line-height:1.8;

    margin-bottom:10px;

}

.footer-columna ul{

    list-style:none;

}

.footer-columna li{

    margin-bottom:12px;

}

.footer-columna a{

    color:#cfcfcf;

    text-decoration:none;

    transition:.3s;

}

.footer-columna a:hover{

    color:#d60000;

}

footer hr{

    margin:50px auto 30px;

    border:none;

    height:1px;

    background:#333;

}

.footer-copy{

    text-align:center;

}

.footer-copy p{

    color:#bdbdbd;

    margin:8px 0;

}

@media(max-width:900px){

.footer-contenedor{

    grid-template-columns:1fr;

    text-align:center;

}

.footer-columna p{

    text-align:center;

}

}

/*==========================
RESPONSIVE
==========================*/

@media(max-width:1100px){

header{

    padding:20px;

}

nav{

    gap:20px;

}

.hero-content h1{

    font-size:60px;

}

.hero-content h2{

    font-size:30px;

}

.contenedor{

    grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:768px){

header{

    flex-direction:column;

    gap:20px;

}

nav{

    flex-wrap:wrap;

    justify-content:center;

}

.hero-content h1{

    font-size:48px;

}

.hero-content h2{

    font-size:24px;

}

.hero-content p{

    font-size:20px;

}

.hero-buttons{

    flex-direction:column;

}

.btn-principal,
.btn-secundario{

    width:100%;

}

.contenedor{

    grid-template-columns:1fr;

}

section{

    padding:80px 30px;

}

}

@media(max-width:500px){

.hero-content h1{

    font-size:38px;

}

.hero-content h2{

    font-size:20px;

}

.hero-content p{

    font-size:18px;

}

.logo{

    font-size:24px;

}

.logo img{

    width:42px;

}

}
/*==========================
NOSOTROS
==========================*/

.nosotros{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:70px;

    align-items:center;

    background:#111;

}

.nosotros-img img{

    width:100%;

    border-radius:20px;

    box-shadow:0 20px 50px rgba(0,0,0,.45);

}

.nosotros-info h2{

    text-align:left;

    margin-bottom:25px;

    font-size:50px;

}

.nosotros-info p{

    text-align:left;

    margin-bottom:25px;

    line-height:1.9;

    font-size:20px;

    color:#d5d5d5;

}

.nosotros-info .btn-principal{

    display:inline-block;

}
/*==========================
ESPECIALIDADES
==========================*/

.especialidades{

    background:#0c0c0c;

}

.especialidades-grid{

    max-width:1300px;

    margin:60px auto 0;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

}

.especialidad{

    background:#181818;

    padding:40px 25px;

    border-radius:20px;

    text-align:center;

    transition:.35s;

    border:1px solid rgba(255,255,255,.08);

}

.especialidad:hover{

    transform:translateY(-10px);

    border-color:#d60000;

    box-shadow:0 15px 40px rgba(214,0,0,.25);

}

.especialidad i{

    font-size:55px;

    color:#d60000;

    margin-bottom:25px;

}

.especialidad h3{

    margin-bottom:20px;

    font-size:28px;

}

.especialidad p{

    font-size:18px;

    color:#d0d0d0;

    line-height:1.7;

}

@media(max-width:1100px){

.especialidades-grid{

    grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:700px){

.especialidades-grid{

    grid-template-columns:1fr;

}

}
.subtitulo{

    color:#d60000;

    font-size:15px;

    font-weight:700;

    letter-spacing:4px;

    display:block;

    margin-bottom:20px;

}

.nosotros{

    padding:120px 8%;

}.subtitulo{

    color:#d60000;

    font-size:15px;

    font-weight:700;

    letter-spacing:4px;

    display:block;

    margin-bottom:20px;

}

.nosotros{

    padding:120px 8%;

}

.btn-noticia{

    display:inline-block;

    margin-top:20px;

    color:#fff;

    text-decoration:none;

    background:#d60000;

    padding:10px 20px;

    border-radius:8px;

    transition:.3s;

    font-weight:600;

}

.btn-noticia:hover{

    background:#b30000;

}

/*==================================
PRÓXIMAS ACTIVIDADES
==================================*/

.actividades{

    padding:120px 8%;

    background:#151515;

}

.actividad-vacia{

    max-width:800px;

    margin:auto;

    text-align:center;

    background:#1d1d1d;

    padding:60px;

    border-radius:20px;

    border:1px solid rgba(255,255,255,.08);

}

.actividad-vacia i{

    font-size:70px;

    color:#d60000;

    margin-bottom:25px;

}

.actividad-vacia h3{

    font-size:34px;

    margin-bottom:20px;

}

.actividad-vacia p{

    color:#cfcfcf;

    line-height:1.8;

    font-size:18px;

}

/*==================================
ETIQUETA SUPERIOR DEL HERO
==================================*/

.hero-fijo{

    position:absolute;

    top:110px;

    left:50%;

    transform:translateX(-50%);

    z-index:5;

}

.hero-etiqueta{

    display:inline-block;

    padding:12px 28px;

    background:rgba(214,0,0,.90);

    color:#fff;

    border-radius:50px;

    font-size:14px;

    font-weight:700;

    letter-spacing:3px;

    text-transform:uppercase;

    box-shadow:0 10px 30px rgba(214,0,0,.35);

}

/*==================================
BANNER INSTITUCIONAL HERO
==================================*/

.hero-banner{

    position:absolute;

    top:90px;

    left:50%;

    transform:translateX(-50%);

    z-index:10;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:18px;

    padding:12px 28px;

    background:rgba(170,0,0,.90);

    border-radius:60px;

    border:1px solid rgba(255,255,255,.20);

    backdrop-filter:blur(8px);

    -webkit-backdrop-filter:blur(8px);

    box-shadow:0 15px 35px rgba(0,0,0,.40);

}

.hero-banner img{

    width:42px;

    height:42px;

    object-fit:contain;

}

.hero-banner span{

    color:#fff;

    font-size:16px;

    font-weight:700;

    letter-spacing:2px;

    text-transform:uppercase;

    white-space:nowrap;

}

@media(max-width:768px){

.hero-banner{

    width:90%;

    padding:10px 20px;

    gap:12px;

}

.hero-banner img{

    width:32px;

    height:32px;

}

.hero-banner span{

    font-size:12px;

    letter-spacing:1px;

}

}

/*==================================
DESARROLLADOR
==================================*/

.footer-desarrollador{

    margin:30px 0;

}

.footer-desarrollador span{

    display:block;

    color:#9a9a9a;

    font-size:14px;

    letter-spacing:2px;

    text-transform:uppercase;

    margin-bottom:10px;

}

.footer-desarrollador h4{

    color:#ffffff;

    font-size:24px;

    font-weight:700;

    margin-bottom:6px;

}

.footer-desarrollador p{

    color:#d60000;

    font-size:18px;

    font-weight:600;

}

/*==================================
PÁGINA NOTICIAS
==================================*/

.pagina-titulo{

    padding:170px 8% 80px;

    background:#111;

    text-align:center;

}

.pagina-titulo h1{

    font-size:60px;

    margin-bottom:20px;

}

.pagina-titulo p{

    max-width:800px;

    margin:auto;

    color:#cfcfcf;

    font-size:20px;

}

.noticia-seccion{

    max-width:1300px;

    margin:50px auto;

    background:#181818;

    border-radius:20px;

    overflow:hidden;

    border:1px solid rgba(255,255,255,.08);

}

.noticia-header{

    background:#d60000;

    padding:25px 35px;

}

.noticia-header h2{

    color:white;

    margin-bottom:10px;

    font-size:30px;

}

.noticia-header p{

    color:#f5f5f5;

    text-align:left;

}

.noticia-contenido{

    padding:40px;

}

.noticia-contenido p{

    text-align:left;

    color:#d2d2d2;

    line-height:1.8;

}

/*==================================
ESTADOS DE NOTICIAS
==================================*/

.estado{

    display:inline-block;

    padding:10px 18px;

    border-radius:30px;

    font-weight:700;

    font-size:15px;

    margin:15px 0 25px;

}

.estado-verde{

    background:#0f8a2d;

    color:#fff;

}

.estado-amarillo{

    background:#d8b100;

    color:#111;

}

.estado-naranja{

    background:#ff7a00;

    color:#fff;

}

.estado-rojo{

    background:#d60000;

    color:#fff;

}

.noticia-contenido small{

    display:block;

    margin-top:20px;

    color:#9f9f9f;

    font-size:15px;

}

