/* =========================================================
   BASE
========================================================= */

body{
margin:0;
font-family:"Inter", Arial, sans-serif;
background:#000;
color:#fff;
line-height:1.7;

background-image:url("../img/fondo.jpg");
background-repeat:no-repeat;
background-position:left top;
background-size:auto 100%;
}


/* =========================================================
   ENLACES
========================================================= */

a{
color:#ff2a2a;
text-decoration:none;
transition:0.2s;
}

a:hover{
color:#ff5555;
}


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

header{
border-bottom:1px solid #222;
background:#000;
position:relative;
}

.header{
max-width:1200px;
margin:auto;
padding:20px;
display:flex;
align-items:center;
justify-content:space-between;
position:relative;
}

.logo img{
height:85px;
}


/* =========================================================
   BOTON HAMBURGUESA
========================================================= */

.menu-toggle{
display:none;
flex-direction:column;
cursor:pointer;
z-index:1100;
}

.menu-toggle span{
width:26px;
height:3px;
background:#fff;
margin:4px 0;
display:block;
transition:0.3s;
}


/* =========================================================
   MENU DESKTOP
========================================================= */

nav{
display:flex;
align-items:center;
justify-content:flex-end;
}

nav a{
margin-left:35px;
font-weight:600;
font-size:14px;
letter-spacing:1px;
color:#fff;
text-transform:uppercase;
white-space:nowrap;
}

nav a:hover{
color:#ff2a2a;
}


/* =========================================================
   CONTENIDO
========================================================= */

main{
max-width:900px;
margin:auto;
padding:40px 20px;
}


/* =========================================================
   TITULO PRINCIPAL
========================================================= */

h1{
font-family:"Space Grotesk", sans-serif;
text-align:center;
font-size:clamp(24px,6vw,46px);
font-weight:700;
letter-spacing:2px;
margin-bottom:8px;
position:relative;
}

h1::after{
content:"";
display:block;
width:60px;
height:3px;
background:#ff2a2a;
margin:10px auto 0 auto;
border-radius:2px;
}

.subtitle{
font-family:"Space Grotesk", sans-serif;
text-align:center;
color:#aaa;
font-size:18px;
font-weight:300;
letter-spacing:1px;
margin-top:15px;
margin-bottom:60px;
}


/* =========================================================
   BLOQUES CONTENIDO
========================================================= */

section{
margin-bottom:45px;
border-left:2px solid #ff2a2a;
padding-left:20px;
}

section h2{
font-size:22px;
margin-bottom:10px;
color:#fff;
}

section p{
color:#bbb;
}


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

footer{
background:#1c1c1c;
text-align:center;
padding:30px;
margin-top:80px;
font-size:14px;
color:#aaa;
}


/* =========================================================
   TABLET / MOVIL (MENU HAMBURGUESA)
========================================================= */

@media (max-width:800px){

.header{
flex-direction:row;
align-items:center;
}

/* mostrar hamburguesa */

.menu-toggle{
display:flex;
margin-left:auto;
}

/* menú adaptable */

nav{
position:absolute;
top:50%;
left:220px;
right:90px;

display:flex;
flex-wrap:wrap;
justify-content:flex-end;
align-items:center;

gap:12px 28px;

transform:translateY(-50%);

opacity:0;
pointer-events:none;
transition:0.25s ease;
}

/* menú visible */

nav.active{
opacity:1;
pointer-events:auto;
}

nav a{
margin:0;
text-align:right;
white-space:nowrap;
}

}


/* =========================================================
   MOVIL PEQUEÑO
========================================================= */

@media (max-width:440px){

nav{
position:absolute;
top:80px;
right:20px;

display:flex;
flex-direction:column;
align-items:flex-end;

gap:10px;
padding:10px 0;

max-width:75%;
transform:none;

z-index:1000;
}

nav a{
margin:6px 0;
text-align:right;
white-space:nowrap;

text-shadow:0 1px 3px rgba(0,0,0,0.7);
}

/* panel flotante cuando se abre el menú */

nav.active{
background:rgba(0,0,0,0.65);
backdrop-filter:blur(6px);
-webkit-backdrop-filter:blur(6px);
padding:15px 20px;
border-radius:10px;
box-shadow:0 8px 25px rgba(0,0,0,0.4);
}

/* quitar línea del header */

header.menu-open{
border-bottom:none;
}

}

/* =========================================================
   CORRECCIÓN LAYOUT MOVILES PEQUEÑOS
========================================================= */

@media (max-width:380px){

nav{
left:auto;
right:20px;
}

}


/* =========================================================
   MOVILES MUY PEQUEÑOS
========================================================= */

@media (max-width:350px){

.logo img{
height:65px;
}

}


/* =========================================================
   MOVILES EXTRA PEQUEÑOS
========================================================= */

@media (max-width:260px){

nav a{
font-size:13px;
letter-spacing:0.5px;
}

}


/* =========================================================
   MOVILES ULTRA PEQUEÑOS
========================================================= */

@media (max-width:220px){

.logo img{
height:55px;
}

nav a{
font-size:12px;
}

main{
padding:30px 10px;
}

section{
padding-left:10px;
}

nav{
right:10px;
max-width:95%;
}

}
