
*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:'Poppins',sans-serif;background:#f5f5f5;color:#222;overflow-x:hidden;}
.container{width:90%;max-width:1280px;margin:auto;}

.header{
position:fixed;
top:0;
width:100%;
background:rgba(255,255,255,.95);
backdrop-filter:blur(10px);
z-index:999;
box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.nav-container{
display:flex;
align-items:center;
justify-content:space-between;
padding:16px 0;
}

.logo img{height:68px;}

.menu{
display:flex;
gap:30px;
list-style:none;
}

.menu a{
text-decoration:none;
color:#333;
font-weight:500;
transition:.3s;
}

.menu a:hover{color:#009879;}

.menu li{position:relative;}
.menu li.has-submenu > a::after{
    content:'▾';
    margin-left:8px;
    font-size:0.8rem;
}
.menu .submenu{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    background:white;
    padding:10px 0;
    border-radius:16px;
    box-shadow:0 15px 40px rgba(0,0,0,.12);
    min-width:220px;
    z-index:20;
    flex-direction:column;
}
.menu li:hover > .submenu{display:flex;}
.menu .submenu li{width:100%;}
.menu .submenu a{
    display:block;
    padding:10px 20px;
    color:#333;
    font-weight:500;
}
.menu .submenu a:hover{color:#009879;background:rgba(0,152,121,.05);}

.btn-top{
background:#009879;
padding:14px 28px;
border-radius:40px;
text-decoration:none;
color:white;
font-weight:600;
}

.hero{
margin-top:100px;
min-height:calc(100vh - 100px);
position:relative;
display:flex;
align-items:center;
overflow:hidden;
}

.slider,.slide{
position:absolute;
width:100%;
height:100%;
top:0;
left:0;
}

.slide{
background-size:cover;
background-position:center;
opacity:0; 
transition:1s;
}

.slide.active{opacity:1;}

.overlay{
position:absolute;
inset:0;
background:rgba(255,255,255,.5);
}

.hero-content{
position:relative;
    z-index:5;
    display:flex;
    align-items:center;
    height:100%;
}

.hero h1{
font-size:34px;
line-height:1.05;
font-weight:800;
margin-bottom:25px;
}

.green{color:#009879;}
.orange{color:#f58220;}

.line{
width:100px;
height:6px;
background:#009879;
border-radius:10px;
margin-bottom:25px;
}

.hero p{
font-size:18px;
line-height:1.8;
margin-bottom:30px;
}

.buttons{
display:flex;
gap:20px;
flex-wrap:wrap;
}

.btn{
padding:16px 30px;
border-radius:40px;
text-decoration:none;
font-weight:600;
}

.primary{background:#009879;color:white;}
.secondary{
background:white;
border:2px solid #009879;
color:#009879;
}

.section{
padding:120px 0;
background:white;
}

.section h2{
font-size:48px;
margin-bottom:30px;
}

.section p{
font-size:18px;
line-height:1.9;
margin-bottom:20px;
}

.cards{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:30px;
margin-top:40px;
}

.project-layout{
display:grid;
grid-template-columns:1.1fr 0.9fr;
gap:40px;
align-items:start;
}

.project-copy ul{
padding-left:22px;
}

.project-copy li{
margin-bottom:10px;
}

.project-gallery .cards{
display:flex;
flex-direction:column;
gap:24px;
margin-top:0;
}

.project-gallery .card{
width:100%;
}

.project-gallery .card img{
height:100%;
}

.card{
background:white;
border-radius:24px;
overflow:hidden;
box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.card img{
width:100%;
height:220px;
object-fit:cover;
}

.card-content{padding:24px;}

.banner-page{
padding-top:180px;
padding-bottom:80px;
background:linear-gradient(135deg,#009879,#f58220);
color:white;
text-align:center;
}

.banner-page h1{
font-size:56px;
}

.footer{
background:#111;
padding:40px 0 30px;
color:white;
text-align:center;
}

.footer-content{
display:flex;
flex-direction:column;
align-items:center;
gap:24px;
}

.footer-social{
display:flex;
gap:16px;
}

.social-icon{
display:inline-flex;
align-items:center;
justify-content:center;
width:48px;
height:48px;
border-radius:50%;
background:rgba(255,255,255,.08);
color:#009879;
font-size:20px;
text-decoration:none;
transition:.3s ease;
}

.social-icon:hover{
background:#009879;
color:white;
transform:translateY(-4px);
box-shadow:0 8px 24px rgba(0,152,121,.35);
}

.social-icon:focus-visible{
outline:2px solid #009879;
outline-offset:4px;
}

.footer-copy{
font-size:14px;
opacity:.7;
letter-spacing:.3px;
}

.contact-box{
background:white;
padding:40px;
border-radius:24px;
box-shadow:0 10px 30px rgba(0,0,0,.08);
margin-top:40px;
}

/* === MENÚ HAMBURGUESA ANIMADO === */
.menu-toggle{
display:none;
width:30px;
height:24px;
position:relative;
cursor:pointer;
z-index:100;
}

.menu-toggle span{
display:block;
width:100%;
height:3px;
background:#333;
border-radius:4px;
position:absolute;
transition:.3s ease;
}

.menu-toggle span:nth-child(1){top:0;}
.menu-toggle span:nth-child(2){top:10px;}
.menu-toggle span:nth-child(3){top:20px;}

.menu-toggle.active span:nth-child(1){
top:10px;
transform:rotate(45deg);
background:#009879;
}

.menu-toggle.active span:nth-child(2){
opacity:0;
}

.menu-toggle.active span:nth-child(3){
top:10px;
transform:rotate(-45deg);
background:#009879;
}

@media(max-width:992px){

.menu{
display:none;
position:absolute;
top:100px;
right:20px;
background:white;
padding:24px;
border-radius:20px;
flex-direction:column;
box-shadow:0 15px 40px rgba(0,0,0,.12);
gap:16px;
min-width:220px;
}

.menu.active{display:flex;}
.menu-toggle{display:block;}
.btn-top{display:none;}
.menu li.has-submenu > a::after{transform:none;}
.menu .submenu{position:static;display:none;box-shadow:none;background:transparent;padding:0;margin:0;}
.menu li.has-submenu.active > .submenu{display:flex;}
.menu .submenu a{padding:10px 20px 10px 38px;}
.menu li.has-submenu > a{display:flex;justify-content:space-between;align-items:center;}
.menu li.has-submenu > a::after{content:'▸';transition:transform .3s;}
.menu li.has-submenu.active > a::after{transform:rotate(90deg);}
.hero h1{font-size:50px;}
}

@media(max-width:768px){
.hero{padding-top:140px;height:auto;min-height:100vh;}
.hero h1{font-size:40px;}
.hero p{font-size:18px;}
.project-layout{grid-template-columns:1fr;}
.logo img{height:55px;}
.banner-page h1{font-size:38px;}
}

/* === FORMULARIO DE CONTACTO === */
.contact-grid{
display:grid;
grid-template-columns:1fr 1.5fr;
gap:50px;
align-items:start;
}

.contact-info h2{
font-size:36px;
margin-bottom:16px;
}

.contact-info > p{
font-size:16px;
color:#666;
margin-bottom:40px;
}

.contact-details{
display:flex;
flex-direction:column;
gap:24px;
}

/* Justificación de párrafos dentro de contact-details */
.contact-details p{
    text-align:justify;
    text-justify:inter-word;
}

/* Clase reutilizable para justificar párrafos en cualquier lugar */
.justify{
    text-align:justify;
    text-justify:inter-word;
}

.contact-item{
display:flex;
align-items:flex-start;
gap:16px;
}

.contact-icon{
font-size:24px;
flex-shrink:0;
margin-top:2px;
}

.contact-item strong{
display:block;
font-size:16px;
margin-bottom:4px;
color:#222;
}

.contact-item p{
font-size:14px;
color:#666;
margin:0;
}

.contact-box{
background:white;
padding:40px;
border-radius:24px;
box-shadow:0 10px 40px rgba(0,0,0,.08);
}

.contact-form{
display:flex;
flex-direction:column;
gap:20px;
}

.form-row{
display:grid;
grid-template-columns:1fr 1fr;
gap:20px;
}

.form-group{
display:flex;
flex-direction:column;
gap:6px;
}

.form-group label{
font-size:14px;
font-weight:600;
color:#333;
}

.form-input,
.form-textarea{
padding:14px 18px;
border:2px solid #e0e0e0;
border-radius:12px;
font-size:15px;
font-family:'Poppins',sans-serif;
transition:.3s;
outline:none;
background:#fafafa;
}

.form-input:focus,
.form-textarea:focus{
border-color:#009879;
background:white;
box-shadow:0 0 0 4px rgba(0,152,121,.1);
}

.form-textarea{
resize:vertical;
min-height:120px;
}

.btn-submit{
border:none;
cursor:pointer;
font-size:16px;
padding:16px 36px;
align-self:flex-start;
transition:.3s;
}

.btn-submit:hover{
background:#007a62;
transform:translateY(-2px);
box-shadow:0 8px 24px rgba(0,152,121,.3);
}

.form-success{
text-align:center;
padding:40px 20px;
}

.success-icon{
font-size:48px;
display:block;
margin-bottom:16px;
}

.form-success h3{
font-size:24px;
color:#009879;
margin-bottom:12px;
}

.form-success p{
color:#666;
font-size:16px;
margin:0;
}

.form-error{
background:#fff0f0;
border:1px solid #ffc0c0;
color:#c00;
padding:14px 20px;
border-radius:12px;
margin-bottom:20px;
font-size:14px;
}

@media(max-width:768px){
.contact-grid{
grid-template-columns:1fr;
gap:30px;
}
.form-row{
grid-template-columns:1fr;
}
.contact-box{
padding:24px;
}
.btn-submit{
align-self:stretch;
text-align:center;
}
}

/* === LISTADO DE NOTICIAS === */
.news-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
gap:24px;
margin-top:20px;
}

.news-card{
background:white;
border-radius:16px;
overflow:hidden;
box-shadow:0 4px 16px rgba(0,0,0,.06);
transition:.4s cubic-bezier(.22,1,.36,1);
}

.news-card:hover{
transform:translateY(-6px);
box-shadow:0 16px 40px rgba(0,0,0,.12);
}

.news-card-link{
text-decoration:none;
color:inherit;
display:block;
}

.news-card-img{
position:relative;
overflow:hidden;
height:160px;
}

.news-card-img img{
width:100%;
height:100%;
object-fit:cover;
transition:.5s ease;
}

.news-card:hover .news-card-img img{
transform:scale(1.08);
}

.news-card-placeholder{
width:100%;
height:100%;
background:linear-gradient(135deg,#e8f5f1,#b2dfdb);
display:flex;
align-items:center;
justify-content:center;
font-size:40px;
color:#009879;
}

.news-card-date{
position:absolute;
bottom:12px;
left:12px;
background:rgba(0,0,0,.75);
backdrop-filter:blur(8px);
color:white;
padding:6px 12px;
border-radius:8px;
font-size:12px;
display:flex;
align-items:center;
gap:5px;
}

.news-card-date span{
text-transform:uppercase;
font-weight:600;
}

.news-card-body{
padding:16px;
}

.news-card-title{
font-size:16px;
font-weight:700;
color:#222;
margin-bottom:8px;
line-height:1.3;
}

.news-card-excerpt{
font-size:14px;
color:#666;
line-height:1.6;
margin-bottom:12px;
display:-webkit-box;
-webkit-line-clamp:3;
-webkit-box-orient:vertical;
overflow:hidden;
}

.news-card-more{
display:inline-flex;
align-items:center;
gap:6px;
color:#009879;
font-weight:600;
font-size:13px;
transition:.3s;
}

.news-card-more i{
transition:transform .3s;
font-size:11px;
}

.news-card:hover .news-card-more i{
transform:translateX(5px);
}

.news-empty{
text-align:center;
padding:80px 20px;
}

.news-empty i{
font-size:64px;
color:#ddd;
margin-bottom:20px;
}

.news-empty h3{
font-size:24px;
color:#555;
margin-bottom:8px;
}

.news-empty p{
color:#999;
font-size:16px;
}

@media(max-width:600px){
.news-grid{
grid-template-columns:1fr;
}
}

/* === ARTÍCULO DE NOTICIA COMPLETO === */
.news-article{
padding-top:140px;
padding-bottom:80px;
background:white;
}

.news-article-header{
max-width:800px;
margin:0 auto 40px;
text-align:center;
}

.news-article-meta{
margin-bottom:16px;
}

.news-article-date{
display:inline-flex;
align-items:center;
gap:8px;
background:rgba(0,152,121,.08);
color:#009879;
padding:8px 20px;
border-radius:30px;
font-size:14px;
font-weight:500;
}

.news-article-title{
font-size:42px;
font-weight:800;
color:#111;
line-height:1.15;
margin-bottom:16px;
}

.news-article-subtitle{
font-size:18px;
color:#666;
line-height:1.6;
max-width:650px;
margin:0 auto;
}

.news-article-image{
max-width:900px;
margin:0 auto 48px;
border-radius:20px;
overflow:hidden;
box-shadow:0 10px 40px rgba(0,0,0,.1);
}

.news-article-image img{
width:100%;
max-height:500px;
object-fit:cover;
display:block;
}

.news-article-content{
max-width:740px;
margin:0 auto;
font-size:17px;
line-height:1.9;
color:#333;
}

.news-article-content p{
margin-bottom:24px;
}

.news-article-content strong{
color:#222;
}

.news-article-content ul,
.news-article-content ol{
margin-bottom:24px;
padding-left:24px;
}

.news-article-content li{
margin-bottom:8px;
}

.news-article-content blockquote{
border-left:4px solid #009879;
padding:16px 24px;
margin:32px 0;
background:rgba(0,152,121,.04);
border-radius:0 12px 12px 0;
font-style:italic;
color:#555;
}

.news-article-content img{
max-width:100%;
border-radius:12px;
margin:24px 0;
}

.news-article-footer{
max-width:740px;
margin:60px auto 0;
padding-top:32px;
border-top:1px solid #eee;
display:flex;
justify-content:space-between;
align-items:center;
flex-wrap:wrap;
gap:20px;
}

.news-article-share{
display:flex;
align-items:center;
gap:12px;
font-size:14px;
color:#888;
}

.share-icon{
display:inline-flex;
align-items:center;
justify-content:center;
width:40px;
height:40px;
border-radius:50%;
background:#f5f5f5;
color:#555;
text-decoration:none;
transition:.3s;
font-size:16px;
}

.share-icon:hover{
background:#009879;
color:white;
transform:translateY(-2px);
}

.btn-back{
display:inline-flex;
align-items:center;
gap:8px;
padding:12px 24px;
background:white;
border:2px solid #e0e0e0;
border-radius:12px;
color:#555;
text-decoration:none;
font-size:14px;
font-weight:500;
transition:.3s;
}

.btn-back:hover{
border-color:#009879;
color:#009879;
}

/* === GALERÍA DE IMÁGENES EN NOTICIA === */
.news-article-gallery{
max-width:900px;
margin:48px auto 0;
padding-top:40px;
border-top:1px solid #eee;
}

.news-gallery-title{
font-size:24px;
font-weight:700;
color:#222;
margin-bottom:8px;
display:flex;
align-items:center;
gap:10px;
}

.news-gallery-title i{
color:#009879;
}

.gallery-mosaic{
display:grid;
grid-template-columns:repeat(3, 1fr);
gap:16px;
margin-top:24px;
}

.gallery-mosaic-item{
display:block;
border-radius:14px;
overflow:hidden;
box-shadow:0 4px 16px rgba(0,0,0,.06);
transition:.4s cubic-bezier(.22,1,.36,1);
aspect-ratio:4/3;
position:relative;
}

.gallery-mosaic-item:hover{
transform:scale(1.04);
box-shadow:0 12px 40px rgba(0,0,0,.15);
z-index:2;
}

.gallery-mosaic-item img{
width:100%;
height:100%;
object-fit:cover;
transition:.5s ease;
display:block;
}

.gallery-mosaic-item:hover img{
transform:scale(1.1);
}

.gallery-mosaic-item::after{
content:'\f00e';
font-family:'Font Awesome 6 Free';
font-weight:900;
position:absolute;
inset:0;
background:rgba(0,0,0,.3);
display:flex;
align-items:center;
justify-content:center;
font-size:32px;
color:white;
opacity:0;
transition:.3s;
}

.gallery-mosaic-item:hover::after{
opacity:1;
}

@media(max-width:768px){
.news-article-title{
font-size:28px;
}
.news-article{padding-top:120px;}
.news-article-content{
font-size:16px;
}
.news-article-footer{
flex-direction:column;
align-items:flex-start;
}
.gallery-mosaic{
grid-template-columns:repeat(2, 1fr);
gap:12px;
}
}

@media(max-width:480px){
.gallery-mosaic{
grid-template-columns:1fr;
}
}