:root{
--text:#111;
--accent:#1f2933;
--light:#f5f5f4;
--muted:#6b7280;
--max:1200px;
}

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

body{
font-family:Inter, sans-serif;
color:var(--text);
line-height:1.6;
background:white;
}

.container{
max-width:var(--max);
margin:auto;
padding:0 24px;
}

/* HEADER */

header{
position:fixed;
width:100%;
top:0;
background:white;
border-bottom:1px solid #eee;
z-index:10;
}

.nav{
display:flex;
justify-content:space-between;
align-items:center;
height:72px;
}

.logo{
font-family:"Playfair Display", serif;
font-size:22px;
}
.logo a{
text-decoration:none;
color:inherit;
}
.section a {
text-decoration:none;
color: var(--text);
}


nav ul{
display:flex;
list-style:none;
gap:32px;
font-size:14px;
}

nav a{
text-decoration:none;
color:var(--text);
}

.lang{
font-size:13px;
color:var(--muted);
}

.lang span{
cursor:pointer;
}

/* HERO */

.hero{
padding-top:160px;
padding-bottom:140px;
background:linear-gradient(180deg,#fafafa,white);
}

.hero-grid{
display:grid;
grid-template-columns:1.1fr .9fr;
gap:60px;
align-items:center;
}

.hero h1{
font-family:"Playfair Display", serif;
font-size:52px;
font-weight:600;
margin-bottom:24px;
}

.hero p{
font-size:18px;
color:var(--muted);
margin-bottom:32px;
}

.buttons{
display:flex;
gap:16px;
}

.btn{
padding:12px 26px;
background:#111;
color:white;
text-decoration:none;
font-size:14px;
}

.btn-outline{
padding:12px 26px;
border:1px solid #111;
text-decoration:none;
color:#111;
font-size:14px;
}

/* HERO IMAGE + CAROUSEL */

.hero-image{
height:420px;
background:#e5e5e5;
position:relative;
overflow:hidden;
}

.carousel{
width:100%;
height:100%;
}

.slide{
position:absolute;
width:100%;
height:100%;
object-fit:cover;
opacity:0;
transition:opacity 1s ease;
}

.slide.active{
opacity:1;
}

/* SECTIONS */

.section{
padding:110px 0;
}

.section-title{
font-family:"Playfair Display", serif;
font-size:36px;
margin-bottom:60px;
}

/* INSTITUTIONS */

.institutions{
background:var(--light);
padding:60px 0;
text-align:center;
}

.inst-grid{
display:flex;
justify-content:center;
gap:60px;
flex-wrap:wrap;
font-size:14px;
color:var(--muted);
}

/* SERVICES */

.services-grid{
display:flex;

}

.service h3{
margin-bottom:12px;
font-size:18px;
}

.service p{
font-size:14px;
color:var(--muted);
text-align:justify;

}

/* PROJECTS */

.projects{
background:#fafafa;
}

.project-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:32px;
}

.project{
background:white;
border:1px solid #eee;
}

.project-img{

height:160px;
overflow:hidden;


}

.project-img img{

width:100%;
height:100%;
object-fit:cover;
display:block;
}

.project-content{
padding:22px;
}
/* PROJECT IMAGE CAROUSEL */

.project-img{

height:220px;
overflow:hidden;
position:relative;

}

.sliderB{

width:100%;
height:100%;
position:relative;

}

.slideB{

position:absolute;
width:100%;
height:100%;

object-fit:cover;

opacity:0;
transition:opacity .8s ease;

}

.slideB.active{
opacity:1;
}

/* ABOUT */

/* ABOUT SECTION */
#about{
width: 100%; 
margin: auto;

}

.about-photo{

width:340px;
height:380px;

float:left;

margin-right:50px;
margin-bottom:24px;

}

.about-photo img{

width:100%;
height:100%;

object-fit:cover;

display:block;

}

.about-text p{

color:var(--muted);

margin-bottom:18px;

text-align:justify;

hyphens:auto;

line-height:1.7;

}

/* evita que el float rompa el layout */

.about-text::after{
content:"";
display:block;
clear:both;
}

/* PUBLICATIONS */

.publications ul{
list-style:none;
max-width:700px;
}

.publications li{
padding:18px 0;
border-bottom:1px solid #eee;
}

/* CONTACT */

.contact-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:60px;
}

form{
display:flex;
flex-direction:column;
gap:14px;
}

input,textarea{
padding:12px;
border:1px solid #ddd;
font-family:inherit;
}

button{
padding:12px;
background:#111;
color:white;
border:none;
cursor:pointer;
}

/* FOOTER */

footer{
padding:50px 0;
font-size:14px;
color:var(--muted);
border-top:1px solid #eee;
}

/* RESPONSIVE */

@media(max-width:900px){

.hero-grid{
grid-template-columns:1fr;
}

.services-grid{
grid-template-columns:1fr 1fr;
}

.project-grid{
grid-template-columns:1fr;
}

.about{
grid-template-columns:1fr;
}

.contact-grid{
grid-template-columns:1fr;
}

}

/* MOBILE NAV */

@media (max-width:768px){

.nav{
flex-direction:column;
height:auto;
padding:14px 0;
gap:12px;
}

nav ul{
flex-wrap:wrap;
justify-content:center;
gap:16px;
}

.logo{
font-size:20px;
}

.lang{
font-size:12px;
}

}

@media (max-width:768px){

.hero{
padding-top:140px;
padding-bottom:80px;
}

.hero h1{
font-size:34px;
}

.hero p{
font-size:16px;
}

}

@media (max-width:768px){

.about-photo{

float:none;

width:100%;
height:260px;

margin-right:0;
margin-bottom:24px;

}

}

@media (max-width:768px){

.project-img{
height:200px;
}

}