:root {
    --primary-color: #ffffff;
    --secondary-color: #ffffff;
    --text-color: #ffffff;
    --transition: all 0.3s ease;
    --scroll-speed: 0.5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: rgba(0, 0, 0, 0.5);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation Styles */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 1000;
    background-color: rgb(0, 0, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav img {
    height: 30px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    justify-content: flex-end;
    grid-column: 3;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle span:first-child {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:last-child {
    bottom: 0;
}

.menu-toggle.active span:first-child {
    transform: translateY(9px) rotate(45deg);
}

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

.menu-toggle.active span:last-child {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
        grid-column: 3;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: black;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
        padding: 80px 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 18px;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.hero-content,
.section-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
    border-radius: 8px;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
    width: 90%;
    max-width: 1000px;
}

.hero-content.fade-in {
    transform: translateY(0);
    opacity: 1;
}

.hero-title,
.section-heading {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.hero-text,
.section-text {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
    padding: 0 1rem;
}

/* Section Styles */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 2rem 0;
}

section.contact {
    background-color: rgb(0, 0, 0);
    background-blend-mode: normal;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Section content styles are now combined with .hero-content */

.section-content.fade-in {
    transform: translateY(0);
    opacity: 1;
}

/* Styles are now combined with hero styles above */

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .section-heading {
        font-size: 1.8rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-info {
        text-align: center;
    }
}

/* Values Section */
.values-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 1rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.value-card {
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    min-width: 200px;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Team Section */
.team-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 1rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.member-card {
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    min-width: 250px;
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.member-info p {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    min-width: 200px;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .section-heading {
        font-size: 1.8rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-info {
        text-align: center;
    }
}

/* --- NUEVOS BREAKPOINTS Y MEJORAS RESPONSIVAS --- */
@media (max-width: 1200px) {
    .container {
        padding: 0 1rem;
    }
    .values-grid, .team-grid, .contact-grid {
        gap: 1rem;
    }
}
@media (max-width: 900px) {
    .hero-title, .section-heading {
        font-size: 2rem;
    }
    .hero-text, .section-text {
        font-size: 1rem;
    }
    .values-grid, .team-grid, .contact-grid {
        flex-direction: column;
        gap: 0.7rem;
    }
}
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    .hero-content, .section-content {
        padding: 2rem 0.5rem;
    }
    .hero-title, .section-heading {
        font-size: 1.5rem;
    }
    .hero-text, .section-text {
        font-size: 0.95rem;
    }
}
@media (max-width: 576px) {
    .hero-content, .section-content {
        padding: 1rem 0.2rem;
    }
    .hero-title, .section-heading {
        font-size: 1.1rem;
    }
    .hero-text, .section-text {
        font-size: 0.9rem;
    }
}
@media (max-width: 400px) {
    .hero-title, .section-heading {
        font-size: 0.95rem;
    }
    .hero-text, .section-text {
        font-size: 0.8rem;
    }
}