: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;
font-size:clamp(15px, 1.2vw, 18px);
overflow-x:hidden;
}

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

/* 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:clamp(2rem, 4.2vw, 3.25rem);
font-weight:600;
margin-bottom:24px;
}

.hero p{
font-size:clamp(1rem, 1.6vw, 1.125rem);
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:65px 0;
}

.section-title{
font-family:"Playfair Display", serif;
font-size:clamp(1.6rem, 3vw, 2.25rem);
margin-bottom:30px;
}

/* 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:clamp(1rem, 1.8vw, 1.125rem);
}

.service p{
font-size:clamp(0.9rem, 1.4vw, 0.95rem);
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;
font-size:clamp(0.95rem, 1.4vw, 1rem);

}

/* 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;
}

.hero{
padding-top:130px;
padding-bottom:70px;
}

.hero h1{
font-size:clamp(2rem, 7vw, 2.8rem);
}

.hero p{
font-size:clamp(0.95rem, 2.4vw, 1rem);
}

.section-title{
font-size:clamp(1.5rem, 5vw, 1.9rem);
}

.buttons{
flex-wrap:wrap;
}

.hero-image{
height:320px;
}

.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:60px;
}

.hero h1{
font-size:clamp(1.75rem, 7vw, 2.3rem);
line-height:1.2;
}

.hero p{
font-size:0.95rem;
margin-bottom:24px;
}

.section{
padding:44px 0;
}

.section-title{
font-size:1.5rem;
margin-bottom:20px;
}

.buttons{
flex-direction:column;
align-items:flex-start;
}

.btn,
.btn-outline{
width:100%;
text-align:center;
display:inline-block;
}

.hero-image{
height:240px;
}

}

@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;
}

}