@font-face {
    font-family: 'Orator Std';
    src: url('assets/fonts/OratorStd.otf') format('opentype');
}

@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orator Std', monospace;
}

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

/* Navbar */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 20px;
    position: relative;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    left: 20px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #006837;
    transition: 0.3s;
}

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

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

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

.logo-section {
    text-align: center;
    margin: 2rem 0;
}

.logo-section img {
    height: 80px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #006837;
}

/* Hero */
.hero {
    background: url('assets/images/hero-banner2.png') center center / contain no-repeat;
    color: white;
    padding: 0;
    text-align: center;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 25%;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tagline {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.5;
    color: #006837;
}

.keywords {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.keywords span {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
}

/* About */
.about {
    padding: 5rem 0;
    background: #f9f9f9;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #006837;
}

.about-intro {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-intro p {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-logo {
    flex-shrink: 0;
}

.about-logo img {
    width: 250px;
    height: auto;
}

.team-section {
    margin-top: 3rem;
}

.team-section h3 {
    font-size: 1.5rem;
    color: #006837;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #91c8b1;
    padding-bottom: 0.5rem;
}

.toggle-team {
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.toggle-team:hover {
    color: #91c8b1;
}

.toggle-team:after {
    content: "▼";
    position: absolute;
    right: 0;
    font-size: 1rem;
    transition: transform 0.3s;
}

.toggle-team.active:after {
    transform: rotate(180deg);
}

.team-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.team-content.active {
    max-height: 5000px;
}

.team-grid {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1rem;
}

.team-grid::-webkit-scrollbar {
    height: 8px;
}

.team-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.team-grid::-webkit-scrollbar-thumb {
    background: #31986c;
    border-radius: 4px;
}

.team-grid::-webkit-scrollbar-thumb:hover {
    background: #006837;
}

.team-member {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
}

.member-photo {
    width: 120px;
    height: 120px;
    background: #e0e0e0;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background-size: cover;
    background-position: center;
}

.team-member h4 {
    color: #006837;
    margin-bottom: 0.5rem;
}

.role {
    color: #666;
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.specialty {
    color: #91c8b1;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.toggle-bio {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
    transition: color 0.3s;
}

.toggle-bio:hover {
    color: #006837;
}

.toggle-bio:after {
    content: "▼";
    position: absolute;
    right: 0;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.toggle-bio.active:after {
    transform: rotate(180deg);
}

.bio-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    text-align: left;
}

.bio-text,
.bio-text p,
.bio-text span {
    font-size: 0.7rem !important;
    line-height: 1.6;
}

.bio-text.active {
    max-height: 500px;
    margin-top: 1rem;
}

.bio-placeholder {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

.associates-note {
    color: #999;
    font-style: italic;
}

/* Services */
.services {
    padding: 5rem 0;
}

.services h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #006837;
}

.services .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.services .container > h2 {
    grid-column: 1;
}

.services .container {
    display: block;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-item {
    background: #f9f9f9;
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid #006837;
}

.service-item h3 {
    color: #006837;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-item p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #555;
}

.toggle-services {
    background: #006837;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: 'Orator Std', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background 0.3s;
}

.toggle-services:hover {
    background: #1f4420;
}

.toggle-services.active {
    background: #91c8b1;
}

.service-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    list-style: none;
    margin-top: 1rem;
}

.service-list.active {
    max-height: 500px;
}

.service-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #333;
    font-size: 1rem;
}

.service-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #91c8b1;
    font-weight: bold;
}

/* Projects */
.projects {
    padding: 5rem 0;
    background: #f9f9f9;
}

.projects h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #006837;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #006837;
}

.project-card h3 {
    color: #006837;
    margin-bottom: 1rem;
}

/* Contact */
.contact {
    padding: 5rem 0;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #006837;
}

.contact-email {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.email-icon {
    width: 40px;
    height: 40px;
    color: #006837;
}

.contact-email a {
    font-size: 1.5rem;
    color: #006837;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-email a:hover {
    color: #91c8b1;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 2rem 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social {
    display: flex;
    gap: 1rem;
}

.social a {
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        max-height: 300px;
    }
    
    .nav-menu li {
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 20px;
    }
    
    .hero {
        padding-bottom: 40%;
    }
    
    .hero-tagline {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .about-intro {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .about-intro p {
        max-width: 100%;
    }
    
    .about-logo {
        text-align: center;
    }
    
    .about-logo img {
        width: 180px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        padding: 1.5rem;
        cursor: pointer;
    }
    
    .service-item h3 {
        margin-bottom: 0.5rem;
    }
    
    .service-item p,
    .service-item button,
    .service-item ul {
        display: none;
    }
    
    .service-item.expanded p,
    .service-item.expanded button,
    .service-item.expanded ul {
        display: block;
    }
    
    .service-item.expanded ul {
        display: block;
    }
    
    .service-item::after {
        content: "Ver más...";
        display: block;
        color: #91c8b1;
        font-style: italic;
        margin-top: 0.5rem;
        font-size: 0.9rem;
    }
    
    .service-item.expanded::after {
        content: "Ver menos";
    }
    
    .team-member {
        min-width: 220px;
        max-width: 220px;
    }
    
    footer .container {
        flex-direction: column;
        gap: 1rem;
    }
}
