/**
 * Estilos para Landing Pages Internas de Proyectos
 * Sistema modular de secciones
 */

/* ==================== VARIABLES ==================== */
:root {
    --section-padding: 80px 0;
    --section-padding-mobile: 60px 0;
    --container-max-width: 1200px;
    --content-max-width: 800px;
    
    /* Colores principales */
    --primary-color: #40916C;
    --primary-dark: #1B4332;
    --primary-light: #74C69D;
    
    /* Colores de texto */
    --text-dark: #212529;
    --text-color: #6C757D;
    --text-light: #ADB5BD;
    
    /* Fondos */
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    
    /* Bordes */
    --border-color: #E9ECEF;
}

/* ==================== LAYOUT GENERAL ==================== */
.project-landing {
    width: 100%;
    overflow-x: hidden;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.section-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

/* ==================== HERO SECTION ==================== */
.section-hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.section-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.9) 0%, rgba(64, 145, 108, 0.8) 100%);
    z-index: 1;
}

.section-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.section-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.section-hero .hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.95;
}

.section-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.section-hero .stat-item {
    text-align: center;
}

.section-hero .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.section-hero .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-hero .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-hero-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-hero-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 145, 108, 0.3);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ==================== ABOUT SECTION ==================== */
.section-about {
    background: white;
}

.section-about .about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.section-about .about-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-about .about-content p {
    margin-bottom: 20px;
}

.section-about .about-content ul {
    list-style: none;
    padding: 0;
}

.section-about .about-content ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
}

.section-about .about-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ==================== FEATURES SECTION ==================== */
.section-features {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.feature-card .feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* ==================== GALLERY SECTION ==================== */
.section-gallery {
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 67, 50, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* ==================== TEAM SECTION ==================== */
.section-team {
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.team-member .member-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.team-member .member-info {
    padding: 20px;
}

.team-member .member-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.team-member .member-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.team-member .member-bio {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.team-member .member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-member .member-social a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.team-member .member-social a:hover {
    color: var(--primary-color);
}

/* ==================== FAQ SECTION ==================== */
.section-faq {
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-dark);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(64, 145, 108, 0.05);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-color);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* ==================== TESTIMONIALS SECTION ==================== */
.section-testimonials {
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info .author-name {
    font-weight: 600;
    color: var(--text-dark);
}

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

.testimonial-rating {
    color: #FFD700;
    margin-top: 10px;
}

/* ==================== MILESTONES SECTION ==================== */
.section-milestones {
    background: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.milestone-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.milestone-item:nth-child(odd) {
    flex-direction: row;
}

.milestone-item:nth-child(even) {
    flex-direction: row-reverse;
}

.milestone-content {
    width: calc(50% - 30px);
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.milestone-dot {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    border: 4px solid white;
}

.milestone-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.milestone-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.milestone-description {
    color: var(--text-color);
    font-size: 0.95rem;
}

.milestone-progress {
    margin-top: 15px;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

/* ==================== INVEST SECTION ==================== */
.section-invest {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.section-invest h2 {
    color: white;
    margin-bottom: 20px;
}

.section-invest .section-title .subtitle {
    color: white !important;
    opacity: 1;
    font-weight: 400;
}

.invest-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.invest-stat {
    text-align: center;
}

.invest-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.invest-stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.invest-cta {
    margin-top: 40px;
}

.btn-invest {
    background: white;
    color: var(--primary-color);
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-invest:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ==================== SECTION TITLES ==================== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title .subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .section {
        padding: var(--section-padding-mobile);
    }
    
    .section-hero h1 {
        font-size: 2.5rem;
    }
    
    .section-hero .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-hero .hero-stats {
        gap: 20px;
    }
    
    .section-hero .stat-value {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .features-grid,
    .gallery-grid,
    .team-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .milestone-item,
    .milestone-item:nth-child(even) {
        flex-direction: row;
    }
    
    .milestone-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    
    .milestone-dot {
        left: 20px;
        transform: none;
    }
    
    .invest-stats {
        gap: 30px;
    }
}
