/*
Theme Name: Astreo Digital
Description: Tema personalizado y dinámico para la web de Astreo Digital.
Author: Astreo Digital
Version: 1.1
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ========================================
RESET Y ESTILOS BASE
======================================== */

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Outfit', sans-serif;
}

html{
scroll-behavior:smooth;
}

body{
display:flex;
flex-direction:column;
min-height:100vh;
font-size:17px;
line-height:1.7;
color:#111;
overflow-x:hidden;
}

main{
flex:1;
display:block;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
BARRA DE NAVEGACIÓN
======================================== */

.barra-menu{
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 40px;
background:rgba(255,255,255,.9);
backdrop-filter:blur(4px);
position:sticky;
top:0;
z-index:9999;
}

.nombre-pagina{
display:flex;
align-items:center;
gap:10px;
font-size:20px;
font-weight:600;
}

#logo{
width:45px;
height:auto;
display:block;
}

.navegacion ul{
display:flex;
list-style:none;
gap:35px;
}

.navegacion a{
text-decoration:none;
color:black;
font-weight:500;
font-size:17px;
position:relative;
}

.navegacion a::after{
content:"";
position:absolute;
left:0;
bottom:-4px;
width:0;
height:2px;
background:black;
transition:.3s;
}

.navegacion a:hover::after{
width:100%;
}

.home-icon img{
width:20px;
height:20px;
vertical-align:middle;
transition:transform .2s;
}

.home-icon:hover img{
transform:scale(1.15);
}

.hamburguesa{
display:none;
flex-direction:column;
gap:6px;
cursor:pointer;
}

.hamburguesa span{
width:25px;
height:3px;
background:black;
}

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

section{
scroll-margin-top:90px;
position:relative;
z-index:1;
}

.hero{
text-align:center;
padding:120px 20px;
background:linear-gradient(120deg,#f5f5f5,#eaeaea);
}

.hero h1{
font-size:42px;
margin-bottom:20px;
font-weight:600;
letter-spacing:-0.5px;
}

.hero p{
font-size:18px;
max-width:600px;
margin:auto;
margin-bottom:30px;
}

.hero-btn{
padding:12px 25px;
background:rgb(8,4,79);
color:white;
text-decoration:none;
border-radius:6px;
transition:.3s;
}

.hero-btn:hover{
opacity:.8;
}

.container{
max-width:900px;
margin:auto;
padding:60px 20px;
}

h2{
font-size:30px;
margin-bottom:15px;
font-weight:600;
letter-spacing:-0.4px;
}

.portfolio-section{
padding:60px 20px;
text-align:center;
}

.portfolio{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:20px;
max-width:1100px;
margin:auto;
position:relative;
}

.card{
position:relative;
aspect-ratio:16/9;
overflow:hidden;
border-radius:12px;
cursor:pointer;
transition:transform .3s;
z-index:1;
}

.card img{
width:100%;
height:100%;
object-fit:cover;
}

.card:hover{
transform:scale(1.05);
z-index:5;
}

.card-info{
position:absolute;
bottom:0;
left:0;
width:100%;
padding:15px;
color:white;
background:linear-gradient(transparent,rgba(0,0,0,.8));
opacity:0;
transition:.3s;
}

.card:hover .card-info{
opacity:1;
}

.viewer {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 99999; 
}

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

.viewer-content{
background:white;
padding:25px;
border-radius:10px;
max-width:800px;
width:90%;
display:flex;
gap:25px;
align-items:flex-start;
}

.viewer-content img{
width:60%;
min-width:300px;
border-radius:10px;
flex-shrink:0;
}

#viewer-text{
flex:1;
}

.footer{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
text-align:center;
padding:25px 20px;
background:rgb(8,4,79);
color:white;
font-size:13px;
line-height:1.5;
margin-top:60px;
}

@media(max-width:768px){
.barra-menu{padding:15px 20px;}
.hamburguesa{display:flex;}
.navegacion{position:absolute;top:70px;left:0;width:100%;background:white;display:none;}
.navegacion.active{display:block;}
.navegacion ul{flex-direction:column;padding:20px;gap:20px;}
.hero{padding:80px 20px;}
.hero h1{font-size:30px;}
.hero p{font-size:16px;}
}
