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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: #243324;
    background: #fff;
    line-height: 1.6;
}

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

a {
    text-decoration: none;
}



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

.hero {
    min-height: 85vh;
    background:
        linear-gradient(rgba(0, 0, 0, .35),
            rgba(0, 0, 0, .35)),
        url("../img/Los Alerces.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.hero-credit{
    position:absolute;
    bottom:15px;
    right:20px;
    font-size:0.75rem;
}

.hero-credit a{
    color:rgba(255,255,255,0.7);
    text-decoration:none;
}

.hero-credit a:hover{
    color:white;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 40px;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 1000;

    transition: all .3s ease;
    box-sizing: border-box;
}

.navbar.scrolled {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 15px rgba(0,0,0,.08);
}

.navbar.scrolled .menu a {
    color: #243324;
}

.navbar.scrolled .logo span {
    color: #243324;
}

.navbar.scrolled .menu a.active::after{
    background: #294629;
}

.nav-app a {
    background: #5c7f3d;
    color: white !important;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
}

.nav-app a:hover {
    background: #496730;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {

    display: flex;

    align-items: center;

    gap: 10px;

    text-decoration: none;

    color: inherit;
}

.logo img {
    width: 45px;
}

.logo span {
    font-weight: 700;
    font-size: 1.8rem;
}

.menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.menu a {
    color: white;
    font-weight: 500;
    transition: opacity 0.3s;
}

.menu a:hover {
    opacity: 0.8;
}
.menu a.active{
    position: relative;
}

.menu a.active::after{

    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 100%;
    height: 2px;

    background: white;

    border-radius: 999px;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.hero-content {
    max-width: 650px;
    margin-left: 8%;
    margin-top: 80px;
    margin-bottom: 80px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 32px;
}


.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary {
    background: #4c6f36;
    color: white;
}

.btn-primary:hover {
    background: #3d5729;
}

.btn-outline {
    background: rgba(79, 123, 57, .12);
    border: 2px solid #4f7b39;
    color: #4f7b39;
}

.btn-outline:hover {
    background: #4f7b39;
    color: white;
}

.btn-outline-dark {
    background: transparent;
    color: #557a3e;
    border: 2px solid #557a3e;
}

.btn-outline-dark:hover {
    background: #557a3e;
    color: white;
}



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

section {
    padding: clamp(40px, 8vw, 80px) 8%;
}


/* ======================================
FRASE INSTITUCIONAL
====================================== */

.statement {
    background: #26452d;
    color: white;
    padding: clamp(60px, 8vw, 120px) 20px;
}

.statement-container {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.statement h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 30px;
}

.statement p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.8;
    opacity: .9;
}

.statement-small {
    padding: clamp(60px, 8vw, 90px) 20px;
}

.statement-small h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}




/* =========================================================
HOME — BOSQUE FINAL DE LA ANIMACIÓN RESTAURA
========================================================= */

.restaura-tree-symbol {
    overflow: visible;
}

.restaura-tree-trunk {
    fill: none;
    stroke: #5b3e2a;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.restaura-tree-crown {
    fill: #557a3e;
    stroke: rgba(41, 70, 41, .18);
    stroke-width: 1.5;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

#restaura-tree-symbol-1 .restaura-tree-crown {
    fill: #557a3e;
}

#restaura-tree-symbol-2 .restaura-tree-crown {
    fill: #64894d;
}

#restaura-tree-symbol-3 .restaura-tree-crown {
    fill: #72965b;
}

#restaura-tree-symbol-4 .restaura-tree-crown {
    fill: #496f3b;
}

/* ======================================
PAGINA EQUIPO
====================================== */
.team-cards {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-page {
    padding: clamp(60px, 8vw, 120px) 20px;
    background: white;
}

.team-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.team-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-modal-content {
    background: white;
    max-width: 700px;
    width: 100%;
    border-radius: 20px;
    padding: 40px 20px;
    position: relative;
    text-align: center;
}

.team-modal-content img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 20px auto;
}

.modal-role {
    color: #4f7b39;
    font-weight: 600;
    margin-bottom: 25px;
}

.team-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}


.member-card {
    background: #f7f6f2;
    border: 1px solid #e8e4db;
    border-radius: 16px;
    padding: 20px 15px;
    transition: .25s ease;
    text-align: center;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.member-link {
    margin-top: 20px;
    color: #4f7b39;
    font-weight: 600;
    font-size: 1rem;
}

.member-card img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 15px;
}

.member-card h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 8px;
    text-align: center;
}

.member-card span {
    display: block;
    margin-bottom: 15px;
    color: #4f7b39;
    font-weight: 600;
    font-size: 0.9rem;
}

.member-card p {
    color: #555;
    line-height: 1.8;
    margin: 0;
    font-size: 0.9rem;
}


.member-role {
    display: block;
    margin-bottom: 15px;
}

.community-team {
    background: #294629;
    color: white;
    padding: clamp(60px, 8vw, 80px) 20px;
    margin-top: 60px;
}

.community-team-content {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.community-team h2 {
    color: white;
    margin: 15px 0 25px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.community-team p {
    color: rgba(255, 255, 255, .9);
    line-height: 1.8;
    margin-bottom: 20px;
}


/* ======================================
PAGE BANNER
====================================== */

.page-banner {

    background: #294629;

    color: white;

    padding: 140px 40px 80px;

    text-align: center;

    position: relative;
}


.page-banner .navbar {
    width: 100%;
}

.page-banner-content {

    max-width: 800px;

    margin: auto;
}

.page-banner .section-label {

    color: #b7d3a8;

    display: block;

    margin-bottom: 15px;

    letter-spacing: 2px;

    font-size: .9rem;

    font-weight: 700;
}

.page-banner h1 {

    color: white;

    margin-bottom: 20px;

    font-size: 3rem;

    line-height: 1.2;
}

.page-banner p {

    color: rgba(255, 255, 255, .85);

    font-size: 1.15rem;

    line-height: 1.8;

    margin: 0;
}

@media(max-width:768px) {

    .page-banner {

        padding: 60px 25px;
    }

    .page-banner h1 {

        font-size: 2rem;
    }

}


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

footer {

    background:
        radial-gradient(circle at 12% 0%,
            rgba(114,150,90,.15),
            transparent 34%),
        linear-gradient(135deg,
            #173d25 0%,
            #12331d 55%,
            #0d2c1a 100%);

    color:#fff;

    padding:60px 24px 28px;

}


/* GRID */

.footer-grid{

    max-width:1200px;

    margin:auto;

    display:grid;

    grid-template-columns:
        1.45fr
        .8fr
        .8fr
        .9fr;

    gap:70px;

    align-items:start;

}


/* COLUMNAS */

.footer-section{

    min-width:0;

}


/* LOGO */

.footer-logo{

    width:52px;

    margin-bottom:18px;

}


/* TITULOS */

.footer-section h3{

    margin:0 0 22px;

    color:white;

    font-size:1.15rem;

    font-weight:700;

}


/* TEXTO */

.footer-section p{

    max-width:330px;

    color:rgba(255,255,255,.75);

    line-height:1.85;

    font-size:.95rem;

}


/* LISTAS */

.footer-section ul{

    margin:0;

    padding:0;

    list-style:none;

}

.footer-section li{

    margin-bottom:14px;

}


/* LINKS */

.footer-section a{

    display:inline-flex;

    align-items:center;

    color:rgba(255,255,255,.75);

    transition:
        color .25s,
        transform .25s;

}

.footer-section a:hover{

    color:#d9e7c9;

    transform:translateX(4px);

}


/* COPYRIGHT */

.copyright{

    margin-top:35px;

    text-align:center;

    color:rgba(255,255,255,.55);

    font-size:.85rem;

}


/* ======================================
RESPONSIVE
====================================== */

@media(max-width:900px){

    .footer-grid{

        grid-template-columns:1fr 1fr;

        gap:45px;

    }

}

@media(max-width:600px){

    footer{

        padding:45px 18px 22px;

    }

    .footer-grid{

        grid-template-columns:1fr;

        gap:35px;

    }

    .footer-logo{

        margin-bottom:14px;

    }

}


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

.section-header {
    max-width: 800px;
    margin: 0 auto 70px;
    text-align: center;
}

.section-label {
    display: block;
    color: #4f7b39;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #222;
}

.section-header p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.8;
}



/* ======================================
RESPONSIVE - TABLETS (768px y menor)
====================================== */

@media(max-width:768px) {

    /* NAVBAR */
    .navbar {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 100;
        padding: 12px 15px;
        box-sizing: border-box;
    }

    .logo span {
        font-size: 1.4rem;
    }

    .menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(0, 0, 0, .95);
        padding: 20px;
        border-radius: 0 0 12px 12px;
    }

    .menu.active {
        display: flex;
    }

    .menu li {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .hamburger {
        display: flex;
    }

     .btn {
        width: 100%;
        text-align: center;
    }

    

    /* SECCIONES */
    section {
        padding: 40px 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
    

    /* TEAM PAGE */
    

    .member-card {
        padding: 15px 10px;
    }

    /* FOOTER */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .copyright {
        font-size: 0.85rem;
    }

  
    

}

/* ======================================
RESPONSIVE - MOBILE (576px y menor)
====================================== */

@media(max-width:576px) {

    /* BASE */
    html {
        font-size: 14px;
    }

    /* NAVBAR */
    .navbar {
        padding: 12px 15px;
    }

    .logo {
        gap: 8px;
    }

    .logo img {
        width: 35px;
    }

    .logo span {

        font-size: 1rem;
    }

  
    /* BUTTONS */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* SECCIONES */
    section {
        padding: 30px 15px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* STATEMENT */
    .statement {
        padding: 40px 15px;
    }

    .statement h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .statement p {
        font-size: 0.95rem;
    }

  
  
    /* TEAM PAGE */
    .team-page {
        padding: 40px 15px;
    }

    

    .member-card {
        padding: 12px 10px;
    }

    .member-card h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .member-card span {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .member-card p {
        font-size: 0.85rem;
    }

    .member-card img {
        width: 90px;
        height: 90px;
    }

    /* COMMUNITY TEAM */
    .community-team {
        padding: 40px 15px;
        margin-top: 40px;
    }

    .community-team h2 {
        font-size: 1.4rem;
        margin: 10px 0 15px;
    }

    .community-team p {
        font-size: 0.9rem;
    }

    /* FOOTER */
    footer {
        padding: 40px 15px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-grid h3 {
        font-size: 1.1rem;
    }

    .footer-grid ul li {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    

    

    /* MODAL */
    .team-modal {
        padding: 15px;
    }

    .team-modal-content {
        padding: 25px 15px;
        border-radius: 15px;
    }

    .team-modal-content img {
        width: 140px;
        height: 140px;
    }

    .team-modal-close {
        font-size: 1.8rem;
        top: 10px;
        right: 15px;
    }
}

/* ======================================
RESPONSIVE - SMALL DEVICES (480px y menor)
====================================== */

@media(max-width:480px) {

    /* HERO */
    

    

    /* BUTTONS */
    .btn-outline,
    .btn-primary {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    /* GRID LAYOUTS */
    

    .team-cards {
        grid-template-columns: 1fr;
    }
}


/* ======================================
INVESTIGACIÓN
====================================== */



.research-block {
    padding: clamp(75px, 8vw, 120px) 24px;
    background: #ffffff;
}

/* CONTENEDOR PRINCIPAL */

.research-grid {
    width: min(100%, 1240px);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    align-items: center;

    gap: clamp(48px, 6vw, 86px);
}

.research-image img {
    display: block;

    width: 100%;
    height: clamp(400px, 38vw, 540px);

    padding: 0;
    object-fit: cover;
    object-position: center;

    background: #eef1e9;
    border-radius: 24px;

    box-shadow:
        0 20px 55px rgba(31, 52, 34, .13),
        0 2px 8px rgba(31, 52, 34, .06);
}

.research-image {
    position: relative;
    min-width: 0;
}

/* CONTENIDO */

.research-content {
    min-width: 0;
    max-width: 590px;
}

.research-content .section-label {
    margin-bottom: 15px;
}

.research-content h2 {
    max-width: 570px;

    margin: 0 0 26px;

    color: #294629;
    font-size: clamp(2rem, 3.4vw, 3.15rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.research-content > p {
    margin: 0 0 19px;

    color: #4f5a50;
    font-size: clamp(1rem, 1.3vw, 1.08rem);
    line-height: 1.85;
}

/* CAJA DESTACADA */

.research-box {
    position: relative;

    margin-top: 32px;
    padding: 27px 30px 27px 32px;

    background: #f5f5f0;
    border: 0;
    border-radius: 18px;

    box-shadow: inset 4px 0 0 #5f874a;
}

.research-box h3 {
    margin: 0 0 11px;

    color: #294629;
    font-size: 1.08rem;
    line-height: 1.4;
}

.research-box p {
    margin: 0;

    color: #4f5a50;
    font-size: .98rem;
    line-height: 1.75;
}

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

.research-block-alt .research-image {
    order: 2;
}

.research-block-alt .research-content {
    order: 1;
}

/* Alternancia suave entre secciones */
.research-block-alt {
    background: #f6f7f2;
}

.research-connection {
    padding: 100px 20px;
    background: #294629;
    color: white;
}

.research-connection-container {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.research-connection h2 {
    margin-bottom: 25px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.research-connection p {
    line-height: 1.9;
    font-size: 1.1rem;
}

/* ======================================
TABLET
====================================== */

@media(max-width:900px) {


   .research-block {
        padding: 70px 22px;
    }

    .research-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .research-content {
        max-width: 700px;
    }

    .research-image img {
        height: clamp(330px, 62vw, 500px);
    }

    /* En pantallas angostas siempre mostramos primero la imagen */
    .research-block-alt .research-image {
        order: 1;
    }

    .research-block-alt .research-content {
        order: 2;
    }


}
/* ======================================
CELULAR
====================================== */

@media (max-width: 576px) {

    .research-block {
        padding: 52px 15px;
    }

    .research-grid {
        gap: 29px;
    }

    .research-image img {
        height: 285px;
        border-radius: 17px;
    }

    .research-content h2 {
        margin-bottom: 20px;

        font-size: clamp(1.75rem, 9vw, 2.25rem);
        line-height: 1.15;
    }

    .research-content > p {
        margin-bottom: 16px;
        font-size: .98rem;
        line-height: 1.75;
    }

    .research-box {
        margin-top: 25px;
        padding: 23px 21px 23px 25px;
        border-radius: 15px;
    }
}

@media(max-width:768px) {

    .research-image img {
        max-height: 500px;
    }

    

}


/* ======================================
PARTICIPAR
====================================== */

.participa-section {
    padding: 100px 40px;
}

.participa-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.participa-image img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

.participa-content h2 {
    margin: 10px 0 25px;
    font-size: 2.4rem;
    color: #294629;
}

.participa-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.participa-highlight {
    background: #f7f6f2;
    border-left: 5px solid #557a3e;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.participa-highlight h3 {
    margin-bottom: 10px;
    color: #294629;
}

.participa-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@media(max-width:768px) {

    .participa-section {
        padding: 70px 20px;
    }

    .participa-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }



}

/* ======================================
CONTACTO fdfgfdgfdg
====================================== */

.contact-section{
    padding:clamp(60px,8vw,100px) 20px;
    background:#f7f6f2;
}

.contact-grid{
    max-width:760px;
    margin:auto;

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;

    align-items:start;
}
.contact-info {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.contact-info,
.contact-form{
    background:white;
    padding:40px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.contact-info h2,
.contact-form h2{
    margin-bottom:20px;
}


.contact-info p{
    line-height:1.8;
    color:#555;
    margin-bottom:20px;
}

.contact-card{
    display:flex;
    align-items:center;
    gap:15px;

    padding:18px;
    margin-top:15px;

    background:#f7f6f2;
    border-radius:12px;
}

.contact-card img{
    width:32px;
    height:32px;
}

.contact-card a{
    color:#4f7b39;
    text-decoration:none;
    font-weight:600;
}

.contact-card a:hover{
    text-decoration:underline;
}

/* formulario */

.contact-form form{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.contact-form input,
.contact-form textarea{
    width:100%;

    padding:15px;
    border:1px solid #ddd;
    border-radius:10px;

    font-family:inherit;
    font-size:1rem;
}

.contact-form textarea{
    min-height:180px;
    resize:vertical;
}

.contact-form input:focus,
.contact-form textarea:focus{
    outline:none;
    border-color:#4f7b39;
}

.contact-form button{
    align-self:flex-start;
}

/* responsive */

@media(max-width:900px){

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

    .contact-info,
    .contact-form{
        padding:30px;
    }

}


/*======================================
LOGOS INSTITUCIONALES
======================================*/

.partner-logos{
    background:#fff;
    padding:50px 20px;
    border-top:1px solid #ececec;
}

.partner-logos h4{
    text-align:center;
    font-size:.9rem;
    text-transform:uppercase;
    letter-spacing:2px;
    color:#777;
    margin-bottom:35px;
}

.logo-grid{

    max-width:900px;

    margin:0 auto;

    display:grid;

    grid-template-columns:repeat(5,1fr);

    gap:15px;

    align-items:center;

    justify-items:center;
}

.logo-card{

    display:flex;

    justify-content:center;

    align-items:center;

    width:100%;
}

.logo-card img{

    max-width:130px;

    max-height:65px;

    width:auto;
    height:auto;

    object-fit:contain;

    filter: grayscale(100%);
    opacity:.65;

    transition:all .35s ease;
}

.logo-card img:hover{

    filter:none;

    opacity:1;

    transform:scale(1.08);
}

/*=========================
TABLET
=========================*/

@media (max-width:900px){

    .logo-grid{

        grid-template-columns:repeat(3,1fr);
    }

}

/*=========================
CELULAR
=========================*/

@media (max-width:600px){

    .partner-logos{

        padding:35px 15px;
    }

    .logo-grid{

        grid-template-columns:repeat(2,1fr);

        gap:20px;
    }

    .logo-card img{

        max-width:110px;
    }

}

/* ======================================
HOME - INVESTIGACIÓN PARA RESTAURAR
Clases exclusivas del nuevo bloque del home
====================================== */

.home-research {
    padding: clamp(75px, 9vw, 130px) 20px;
    background: #ffffff;
}

.home-research-intro {
    max-width: 850px;
    margin: 0 auto 70px;
    text-align: center;
}

.home-research-label {
    display: block;
    margin-bottom: 14px;
    color: #4f7b39;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.home-research-intro h2 {
    margin-bottom: 22px;
    color: #294629;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
}

.home-research-intro p {
    max-width: 740px;
    margin: 0 auto;
    color: #596159;
    font-size: 1.1rem;
    line-height: 1.85;
}

.home-research-list {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 90px;
}

.home-research-block {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: clamp(42px, 6vw, 80px);
    align-items: center;
}

.home-research-block-reverse .home-research-image {
    order: 2;
}

.home-research-block-reverse .home-research-content {
    order: 1;
}

.home-research-image {
    min-height: 470px;
    overflow: hidden;
    border-radius: 24px;
    background: #f2f1ec;
}

.home-research-image img {
    width: 100%;
    height: 100%;
    min-height: 470px;
    object-fit: cover;
    transition: transform .6s ease;
}

.home-research-block:hover .home-research-image img {
    transform: scale(1.025);
}

.home-research-content {
    position: relative;
    padding: 24px 0;
}

.home-research-number {
    display: block;
    margin-bottom: 12px;
    color: rgba(79, 123, 57, .18);
    font-size: clamp(3.8rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: .9;
    letter-spacing: -4px;
}

.home-research-topic {
    display: block;
    margin-bottom: 14px;
    color: #557a3e;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.home-research-content h3 {
    margin-bottom: 20px;
    color: #294629;
    font-size: clamp(1.8rem, 3.5vw, 2.65rem);
    line-height: 1.18;
}

.home-research-content > p {
    margin-bottom: 20px;
    color: #555f55;
    font-size: 1.04rem;
    line-height: 1.85;
}

.home-research-content .home-research-purpose {
    margin: 28px 0 18px;
    padding-left: 20px;
    border-left: 4px solid #6f8d52;
    color: #344734;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.6;
}

.home-research-link {
    display: inline-block;
    width: fit-content;
    margin-top: 8px;
    color: #4f7b39;
    font-weight: 750;
    transition: transform .25s ease, color .25s ease;
}

.home-research-link:hover {
    color: #294629;
    transform: translateX(4px);
}

.home-research-closing {
    max-width: 900px;
    margin: 90px auto 0;
    padding: 46px clamp(28px, 5vw, 60px);
    text-align: center;
    background: #f7f6f2;
    border-radius: 22px;
}

.home-research-closing p {
    margin: 0 auto 28px;
    color: #445144;
    font-size: 1.08rem;
    line-height: 1.85;
}

@media (max-width: 900px) {
    .home-research-list {
        gap: 65px;
    }

    .home-research-block {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .home-research-block-reverse .home-research-image,
    .home-research-block-reverse .home-research-content {
        order: initial;
    }

    .home-research-image,
    .home-research-image img {
        min-height: 360px;
    }

    .home-research-content {
        padding: 0 10px;
    }

    .home-research-number {
        margin-bottom: 8px;
    }
}

@media (max-width: 576px) {
    .home-research {
        padding: 55px 15px;
    }

    .home-research-intro {
        margin-bottom: 48px;
    }

    .home-research-intro p {
        font-size: .98rem;
    }

    .home-research-list {
        gap: 52px;
    }

    .home-research-image {
        border-radius: 16px;
    }

    .home-research-image,
    .home-research-image img {
        min-height: 250px;
    }

    .home-research-content {
        padding: 0 4px;
    }

    .home-research-number {
        font-size: 4rem;
        letter-spacing: -2px;
    }

    .home-research-content > p {
        font-size: .96rem;
    }

    .home-research-content .home-research-purpose {
        font-size: 1rem;
    }

    .home-research-closing {
        margin-top: 58px;
        padding: 32px 22px;
        border-radius: 16px;
    }

    .home-research-closing p {
        font-size: .96rem;
    }
}

/* ======================================
HOME - RED DE PERSONAS · ANIMACIÓN NARRATIVA
Clases exclusivas del home
====================================== */

.home-network-story {
    padding: clamp(72px, 9vw, 130px) 20px;
    background: #eef2e9;
    overflow: hidden;
}

.home-network-story-intro {
    max-width: 850px;
    margin: 0 auto 62px;
    text-align: center;
}

.home-network-story-label,
.home-network-story-copy-label {
    display: block;
    color: #557a3e;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.home-network-story-label { margin-bottom: 15px; }

.home-network-story-intro h2 {
    margin-bottom: 22px;
    color: #294629;
    font-size: clamp(2rem, 5vw, 3.35rem);
    line-height: 1.13;
}

.home-network-story-intro p {
    max-width: 760px;
    margin: 0 auto;
    color: #586158;
    font-size: 1.08rem;
    line-height: 1.85;
}

.home-network-story-stage {
    max-width: 1280px;
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
    gap: clamp(38px, 5vw, 72px);
    align-items: center;
}


.restaura-network-background circle {
    fill: none;
    stroke: rgba(91, 126, 70, .10);
    stroke-width: 1.5;
    stroke-dasharray: 5 12;
}

.restaura-connection {
    fill: none;
    stroke: #78966a;
    stroke-width: 3;
    stroke-linecap: round;
    opacity: 0;
}

.restaura-connection-result { stroke: #4e743b; stroke-width: 4; }

.restaura-story-node {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}



.restaura-story-core {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}

.restaura-core-halo {
    fill: rgba(85, 122, 62, .10);
    stroke: rgba(85, 122, 62, .18);
    stroke-width: 2;
}

.restaura-core-circle { fill: url(#restaura-core-gradient); }

.restaura-story-core text {
    fill: #fff;
    text-anchor: middle;
    font-family: "Inter", sans-serif;
}


.restaura-story-result {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}

.restaura-story-result circle {
    fill: #fff;
    stroke: #557a3e;
    stroke-width: 2.5;
    filter: url(#restaura-soft-shadow);
}

.restaura-story-result path {
    fill: none;
    stroke: #557a3e;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.restaura-person-head { fill: #4f733e; }


.restaura-final-message {
    opacity: 0;
    pointer-events: none;
}


.restaura-animation-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
    margin: 18px auto 0;
    padding: 12px 14px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(41,70,41,.12);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(34,54,38,.08);
}

.restaura-control-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid rgba(41,70,41,.16);
    border-radius: 999px;
    background: #fff;
    color: #294629;
    font: inherit;
    font-size: .83rem;
    font-weight: 750;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.restaura-control-button:hover {
    background: #eef3e9;
    border-color: #557a3e;
    transform: translateY(-1px);
}

.restaura-control-button:focus-visible,
.restaura-progress:focus-visible {
    outline: 3px solid rgba(85,122,62,.30);
    outline-offset: 3px;
}

.restaura-control-button-main {
    min-width: 111px;
    background: #557a3e;
    color: #fff;
    border-color: #557a3e;
}

.restaura-control-button-main:hover { background: #426331; color: #fff; }

.restaura-animation-timeline {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 1 1 270px;
    min-width: 220px;
}

.restaura-progress { width: 100%; accent-color: #557a3e; cursor: pointer; }

.restaura-animation-time {
    display: flex;
    gap: 4px;
    min-width: 87px;
    color: #5b625b;
    font-size: .76rem;
    font-variant-numeric: tabular-nums;
}



.home-network-story-copy { padding: 20px 0; }
.home-network-story-copy-label { margin-bottom: 17px; font-size: .74rem; line-height: 1.55; }

.home-network-story-copy h3 {
    margin-bottom: 23px;
    color: #294629;
    font-size: clamp(1.8rem, 3.5vw, 2.65rem);
    line-height: 1.18;
}

.home-network-story-copy p {
    margin-bottom: 19px;
    color: #555f55;
    font-size: 1.02rem;
    line-height: 1.83;
}

.home-network-story-copy blockquote {
    margin: 29px 0 28px;
    padding: 19px 0 19px 23px;
    color: #344734;
    border-left: 4px solid #6f8d52;
    font-size: 1.12rem;
    font-weight: 750;
    line-height: 1.55;
}

.home-network-story-photo {
    position: relative;
    max-width: 1200px;
    height: clamp(360px, 48vw, 610px);
    margin: 82px auto 0;
    overflow: hidden;
    border-radius: 28px;
}

.home-network-story-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22,43,27,.74), rgba(22,43,27,0) 56%);
    pointer-events: none;
}

.home-network-story-photo img { width: 100%; height: 100%; object-fit: cover; }

.home-network-story-photo-caption {
    position: absolute;
    z-index: 2;
    left: 42px;
    right: 42px;
    bottom: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(25px,7vw,90px);
    color: #fff;
}

.home-network-story-photo-caption span {
    position: relative;
    font-size: clamp(.76rem,1.3vw,.92rem);
    font-weight: 800;
    letter-spacing: 2px;
}

.home-network-story-photo-caption span:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + clamp(12px,3.5vw,45px));
    width: clamp(25px,6vw,80px);
    height: 1px;
    background: rgba(255,255,255,.55);
}

@media (max-width: 1080px) {
    
    .home-network-story-copy { max-width: 700px; margin: 0 auto; }
}

@media (max-width: 680px) {
    .home-network-story { padding: 56px 15px; }
    .home-network-story-intro { margin-bottom: 42px; }
    .home-network-story-intro p,
    .home-network-story-copy p { font-size: .96rem; }
    
    .restaura-animation-controls { justify-content: space-between; padding: 11px; }
    .restaura-control-button { padding: 8px 10px; font-size: .76rem; }
    .restaura-control-button-main { min-width: 98px; }
    .restaura-animation-timeline { flex-basis: 100%; order: 2; }
    .home-network-story-copy blockquote { font-size: 1rem; }
    .home-network-story-copy .btn { width: 100%; text-align: center; }
    .home-network-story-photo { height: 360px; margin-top: 58px; border-radius: 18px; }
    .home-network-story-photo-caption { left: 20px; right: 20px; bottom: 22px; flex-wrap: wrap; gap: 10px 22px; }
    .home-network-story-photo-caption span:not(:last-child)::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .restaura-control-button { transition: none; }
}


/* =========================================================
ANIMACIÓN DE LA RED RESTAURA
========================================================= */

.home-network-story-visual {
    min-width: 0;
    position: relative;
    isolation: isolate;
}





@media (max-width: 1080px) {
    .home-network-story-stage {
    grid-template-columns: 1fr;
    max-width: 850px;
}

    .home-network-story-visual {
        width: 100%;
        max-width: 920px;
        margin: 0 auto;
    }
}

@media (max-width: 680px) {
    .restaura-network-svg {
    border-radius: 18px;
    aspect-ratio: 12 / 7;
}

    
   

    .restaura-final-message text {
        font-size: 20px;
    }

    .restaura-final-message .restaura-final-submessage {
        font-size: 14px;
    }
}


/* =========================================================
CORRECCIÓN V3 — ESCALA TIPOGRÁFICA Y FORMACIÓN DE RESTAURA
========================================================= */

.restaura-network-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: hidden;
    background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.98), rgba(248,249,244,.94) 58%, rgba(231,237,225,.95));
    border: 1px solid rgba(41,70,41,.10);
    border-radius: 28px;
    box-shadow: 0 22px 60px rgba(32, 55, 37, .12);
    aspect-ratio: 12 / 7;
    contain: paint;
}

.restaura-story-node text {
    fill: #294629;
    text-anchor: middle;
    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .75px;
}



.restaura-core-name {
    font-size: 25px;
    font-weight: 850;
    letter-spacing: 2px;
}

.restaura-core-copy {
    font-size: 16px;
    font-weight: 650;
    letter-spacing: .2px;
}

.restaura-story-result text {
    fill: #294629;
    text-anchor: middle;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    font-weight: 850;
    letter-spacing: 1.5px;
}

/* Al usar un <g> en lugar de <symbol>, cada figura conserva un tamaño
   geométrico real y las escalas del JavaScript son previsibles. */


.restaura-person-body {
    fill: none;
    stroke: #4f733e;
    stroke-width: 2.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.restaura-final-message text {
    fill: #294629;
    text-anchor: middle;
    font-family: "Inter", sans-serif;
    font-size: 22px;
    font-weight: 750;
    paint-order: stroke fill;
    stroke: rgba(248, 249, 244, .96);
    stroke-width: 9px;
    stroke-linejoin: round;
}

.restaura-final-message .restaura-final-submessage {
    fill: #657465;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: .4px;
    stroke-width: 7px;
}

@media (max-width: 680px) {
    .restaura-story-node text {
    font-size: 21px;
}
    
    .restaura-core-name { font-size: 26px; }
    .restaura-core-copy { font-size: 12.5px; }
}


/* =========================================================
 NODOS GRANDES CON ILUSTRACIONES LINEALES
========================================================= */

.restaura-story-node circle {
    fill: rgba(255,255,255,.98);
    stroke: rgba(85,122,62,.38);
    stroke-width: 2.2;
    filter: url(#restaura-soft-shadow);
    vector-effect: non-scaling-stroke;
}

.restaura-story-node .restaura-node-title {
    fill: #294629;
    font-family: "Inter", sans-serif;
    font-size: 21px;
    font-weight: 850;
    letter-spacing: .45px;
}

.restaura-story-node .restaura-node-title-long {
    font-size: 18px;
    letter-spacing: .35px;
}

.restaura-story-node .restaura-node-detail {
    fill: #61715f;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .15px;
    font-family: "Inter", sans-serif;
}


.restaura-node-icon {
    fill: none;
    stroke: #557a3e;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.restaura-node-icon circle {
    fill: none;
    stroke: #557a3e;
    stroke-width: 3.2;
    filter: none;
}

.restaura-node-icon path {
    fill: none;
    stroke: #557a3e;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

/* Las líneas quedan visualmente detrás de los nodos grandes. */
.restaura-connections {
    opacity: .94;
}

@media (max-width: 680px) {
    .restaura-story-node .restaura-node-title {
        font-size: 23px;
    }

    .restaura-story-node .restaura-node-title-long {
        font-size: 20px;
    }

    .restaura-story-node .restaura-node-detail {
    font-size: 16px;
}
}


/* =========================================================
VERSIÓN V5 — CORRECCIÓN DEFINITIVA DE TRANSFORMACIONES SVG
No declarar `transform` por CSS sobre estos grupos. Sus posiciones
se controlan mediante atributos SVG y JavaScript.
========================================================= */

.restaura-story-node,
.restaura-story-core,
.restaura-story-result,
.restaura-person {
    transform-box: fill-box;
    transform-origin: center;
}

/* El atributo transform del SVG conserva la ubicación de cada nodo. */
.restaura-story-node,
.restaura-story-core,
.restaura-story-result {
    will-change: opacity;
}

.restaura-person {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    pointer-events: none;
    will-change: opacity;
}


.research-story-v2__after .section-label {
    color: #b9d6aa
}



.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =========================================================
   TABLETS Y CELULARES
========================================================= */




/* ==========================================================
   TRANSICIÓN ENTRE LA HISTORIA Y EL CONTENIDO
========================================================== */

.research-transition{
    padding: clamp(80px,8vw,120px) 20px;
    background:#faf8f3;
    position:relative;
}

.research-transition::before{
    content:"";
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);
    width:120px;
    height:2px;
    background:#b8c7ad;
}

.research-transition-container{
    max-width:850px;
    margin:0 auto;
    text-align:center;
}

.research-transition .section-label{
    display:inline-block;
    margin-bottom:18px;
}

.research-transition h2{

    margin:0 0 24px;

    font-size:clamp(2rem,5vw,3.2rem);

    line-height:1.15;

    color:#294629;

    font-weight:800;
}

.research-transition p{

    max-width:760px;

    margin:0 auto;

    font-size:1.12rem;

    line-height:1.9;

    color:#5b685b;
}

/* =========================================================
   HERO — RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .hero {
        min-height: 0;
        background-position: center 48%;
        background-size: cover;
    }

    .hero-content {
        max-width: none;
        min-height: 0;

        margin: 0;
        padding: 92px 20px 58px;
    }

    .hero-content h1 {
        max-width: 520px;

        margin: 0 0 17px;

        font-size: clamp(1.65rem, 6vw, 2rem);
        line-height: 1.14;
        letter-spacing: -.015em;
    }

    .hero-content p {
        max-width: 520px;

        margin: 0 0 22px;

        font-size: 1rem;
        line-height: 1.55;
    }

    .hero-buttons {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }

    .hero-buttons .btn {
        width: auto;
        min-width: 150px;

        padding: 11px 24px;

        text-align: center;
    }

    .hero-credit {
        right: 12px;
        bottom: 8px;

        font-size: .62rem;
    }
}


@media (max-width: 480px) {

    .hero-content {
        padding: 84px 15px 52px;
    }

    .hero-content h1 {
        max-width: 340px;

        font-size: 1.48rem;
        line-height: 1.15;
    }

    .hero-content p {
        max-width: 335px;

        font-size: .94rem;
        line-height: 1.5;
    }

    .hero-buttons .btn {
        min-width: 150px;
    }
}

/* =========================================================
   HOME — TRANSICIÓN TALLERES → INVESTIGACIÓN
========================================================= */

#talleres {
    padding-bottom: 55px;
}

#que-hacemos.home-research {
    padding-top: 65px;
}