/* style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f7f3ee;
    color: #1f1f1f;
}

/* ====================== */
/* GENERAL */
/* ====================== */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-subtitle {
    color: #c44536;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #7f1d1d;
}

/* ====================== */
/* NAVBAR */
/* ====================== */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: 0.3s;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header.scrolled .nav-links a {
    color: #1f1f1f;
}

.header.scrolled .nav-links a:hover {
    color: #c44536;
}

.navbar {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

#logo {
    height: 200px;
    width: 200px;
}

#humedales {
    height: 200px;
    width: 200px;
}

/* ====================== */
/* LOGO */
/* ====================== */

.logo {
    position: relative;

    width: 220px;
    height: 60px;

    display: flex;
    align-items: center;
}

.logo img {
    position: absolute;

    height: 160px;
    width: auto;

    transition: 0.35s ease;

    left: 0;
}

/* LOGO BLANCO */

.logo-white {
    opacity: 1;
}

/* LOGO NEGRO */

.logo-dark {
    opacity: 0;
}

/* CUANDO SCROLLEA */

.header.scrolled .logo-white {
    opacity: 0;
}

.header.scrolled .logo-dark {
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #f8d9d3;
}

.nav-links a:hover {
    color: #c44536;
}

.menu-btn {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

/* ====================== */
/* HERO */
/* ====================== */

.hero {
    height: 100vh;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    background: url("imagenes/fondo.jpeg") center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(rgba(60, 20, 20, 0.60),
            rgba(20, 20, 20, 0.45));
}

.hero-content {
    position: relative;
    z-index: 2;

    width: 90%;
    max-width: 900px;

    color: white;
    text-align: center;
}

.hero-tag {
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #f8d9d3;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ====================== */
/* BUTTONS */
/* ====================== */

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary {
    background: #c44536;
    color: white;
}

.btn-primary:hover {
    background: #dd6b4d;
    transform: translateY(-3px);
}

.btn-secondary {
    border: 1px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: black;
}

/* ====================== */
/* ABOUT */
/* ====================== */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

/* ====================== */
/* TEAM */
/* ====================== */

.team-members {
    margin-top: 50px;
}

.team-members h3 {
    margin-bottom: 30px;
    font-size: 2rem;
    color: #7f1d1d;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.member-card {
    background: white;

    min-height: 140px;

    padding: 25px;

    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);

    transition: 0.3s;

    border: 1px solid transparent;

    text-align: left;
}
.member-card-manuel{
    height: 120px;
}

.member-card:hover {
    transform: translateY(-5px);

    border: 1px solid #dd6b4d;

    box-shadow: 0 10px 30px rgba(196, 69, 54, 0.08);
}

.member-card span {
    font-size: 1.8rem;
}

.member-card p {
    font-size: 1.15rem;
    font-weight: 500;
    color: #1f1f1f;

    line-height: 1.5;

    max-width: 180px;
}

/* RESPONSIVE */

@media(max-width:700px) {

    .members-grid {
        grid-template-columns: 1fr;
    }

}

.about-image img {
    width: 100%;

    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* ====================== */
/* FIRESENSE */
/* ====================== */

.firesense {
    background: white;
}

.firesense-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;

    margin-bottom: 70px;
}

.firesense-image img {
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.firesense-text h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #7f1d1d;
}

.firesense-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #444;
}

/* ====================== */
/* CARDS */
/* ====================== */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: #f7f3ee;
    padding: 40px;
    border-radius: 25px;
    transition: 0.3s;

    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-10px);

    border: 1px solid #dd6b4d;

    box-shadow: 0 10px 30px rgba(196, 69, 54, 0.08);
}

.card h3 {
    margin-bottom: 20px;
    color: #7f1d1d;
}

.card p {
    color: #444;
    line-height: 1.7;
}

/* ====================== */
/* IMPACT */
/* ====================== */

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.impact-item {
    background: white;
    padding: 50px 20px;
    text-align: center;
    border-radius: 25px;

    transition: 0.3s;
}

.impact-item:hover {
    transform: translateY(-10px);
}

.impact-item span {
    font-size: 3rem;
}

.impact-item h3 {
    margin-top: 20px;
    color: #7f1d1d;
}

/* ====================== */
/* CONTACT */
/* ====================== */

.contact {
    background: #f7f3ee;
}

.contact-description {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #444;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.contact-card {
    background: white;
    padding: 50px 30px;
    border-radius: 25px;
    text-align: center;

    transition: 0.3s;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

    border: 1px solid transparent;
}

.contact-card:hover {
    transform: translateY(-10px);

    border: 1px solid #dd6b4d;

    box-shadow: 0 10px 30px rgba(196, 69, 54, 0.08);
}

.contact-icon {
    font-size: 4rem;
    margin-bottom: 25px;
}

.contact-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #7f1d1d;
}

.contact-card a {
    text-decoration: none;
    color: #c44536;
    font-size: 1.05rem;
    word-break: break-word;

    transition: 0.3s;
}

.contact-card a:hover {
    color: #dd6b4d;
}

/* ====================== */
/* FOOTER */
/* ====================== */

.footer {
    padding: 40px;
    text-align: center;

    background: linear-gradient(90deg,
            #1f1f1f,
            #7f1d1d);

    color: white;
}

/* ====================== */
/* ANIMATIONS */
/* ====================== */

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====================== */
/* RESPONSIVE */
/* ====================== */

@media(max-width:900px) {

    .hero h1 {
        font-size: 3rem;
    }

    .about-content,
    .firesense-content,
    .cards,
    .impact-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }



    .nav-links {
        position: absolute;
        top: 90px;
        right: 0;

        width: 100%;
        background: white;

        flex-direction: column;
        align-items: center;

        padding: 30px 0;

        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .prototype-text {
        margin-top: 15px;

        text-align: center;

        font-size: 0.95rem;

        color: #777;

        font-style: italic;
    }

}