/* ================================================================
    ESTILO MAESTRO: FUNDACIÓN EL TROTAMUNDOS
    Paleta: Institutional Outdoorsy
    Autor: Luis Alvarado
    Contacto: luisyo.alvarado@gmail.com
================================================================ 
*/

/* =========================================
   1. VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================= */
:root {
    /* Colores Principales */
    --verde-monte: #2D5A27;    /* Naturaleza y Esperanza */
    --naranja: #E67E22;        /* Energía y Acción */
    --azul-profundo: #1A3A5F;  /* Institucionalidad */
    --ath-naranja: #FF5A00;    /* Marca ATH Móvil */
    
    /* Neutros */
    --fondo-crema: #FDFBF7;    
    --texto: #2C3E50;          
    --blanco: #ffffff;
    --gris-claro: #f4f7f6;
    --border-color: #eeeeee;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--fondo-crema);
    color: var(--texto);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, .navbar .logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.highlight { color: var(--naranja); }

/* =========================================
   2. COMPONENTES UNIVERSALES (Header & Footer)
   ========================================= */

/* Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--blanco);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--azul-profundo);
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: var(--naranja); }

.btn-donar {
    background: var(--naranja);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.2s;
}

.btn-donar:hover { transform: scale(1.05); }

/* Footer */
.main-footer {
    background: var(--azul-profundo);
    color: white;
    padding: 80px 5% 40px;
    text-align: center;
}

.footer-socials { margin-bottom: 2.5rem; }

.footer-socials a {
    color: white;
    font-size: 1.8rem;
    margin: 0 20px;
    transition: 0.3s;
    display: inline-block;
}

.footer-socials a:hover {
    color: var(--naranja);
    transform: translateY(-3px);
}

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

.footer-info hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 30px auto;
    width: 60%;
}

/* =========================================
   3. PÁGINA DE INICIO (INDEX)
   ========================================= */

/* Hero Section */
.hero {
    padding: 120px 5%;
    background: linear-gradient(rgba(26, 58, 95, 0.7), rgba(26, 58, 95, 0.7)), url('../img/hero-trotamundos.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 1.5rem; line-height: 1.2; }
.hero p { font-size: 1.25rem; max-width: 800px; margin: 0 auto 2.5rem; }

/* Botones Hero */
.btn-primary {
    background: var(--verde-monte);
    color: white;
    padding: 1.1rem 2.2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}

.btn-secondary {
    border: 2px solid white;
    color: white;
    padding: 1.1rem 2.2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-left: 15px;
    transition: 0.3s;
}

.btn-primary:hover, .btn-secondary:hover { background: var(--naranja); border-color: var(--naranja); }

/* Misión y Visión (Home) */
.mision-vision { padding: 80px 5%; }
.mision-vision .container { display: flex; gap: 2.5rem; max-width: 1200px; margin: 0 auto; }
.mv-card {
    background: white;
    padding: 3.5rem 2rem;
    border-radius: 15px;
    flex: 1;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-bottom: 6px solid var(--verde-monte);
}
.mv-card i { font-size: 3rem; color: var(--naranja); margin-bottom: 1.5rem; }

/* Servicios Grid */
.section-title { text-align: center; padding: 60px 5% 40px; }
.section-title span { color: var(--naranja); text-transform: uppercase; font-weight: 800; letter-spacing: 2px; }
.section-title h2 { font-size: 2.5rem; color: var(--azul-profundo); margin-top: 10px; }

blockquote {
    max-width: 800px;
    margin: 20px auto;
    font-style: italic;
    color: var(--texto);
    border-left: 4px solid var(--naranja);
    padding-left: 20px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 20px 5% 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.servicio-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.servicio-card:hover {
    transform: translateY(-8px);
    border-color: var(--naranja);
    box-shadow: 12px 12px 0px var(--naranja);
}

.btn-text { color: var(--verde-monte); text-decoration: none; font-weight: 800; display: inline-block; margin-top: 1.5rem; }

/* Impacto */
.impacto { display: flex; justify-content: space-around; padding: 80px 5%; background: var(--verde-monte); color: white; text-align: center; }
.stat-card .number { font-size: 3.5rem; font-weight: 800; display: block; }

/* =========================================
   4. TRAYECTORIA & TIMELINE
   ========================================= */
.page-header-trayectoria {
    background: linear-gradient(rgba(45, 90, 39, 0.85), rgba(45, 90, 39, 0.85)), url('../img/map-bg.png');
    background-size: cover;
    padding: 100px 5%;
    text-align: center;
    color: white;
}

.mv-trayectoria { display: flex; justify-content: center; gap: 2rem; padding: 40px 5%; background: var(--azul-profundo); }
.mv-mini-card { color: white; max-width: 400px; text-align: center; }
.mv-mini-card h3 { color: var(--naranja); margin-bottom: 0.5rem; }

.timeline-section-new {
    padding: 100px 5%;
    background: linear-gradient(180deg, #FDFBF7 0%, #E3EDF7 100%);
    position: relative;
}

.timeline-main-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-left: 4px solid var(--verde-monte);
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.timeline-row { position: relative; width: 100%; }

.timeline-point {
    width: 20px;
    height: 20px;
    background: var(--naranja);
    border: 4px solid white;
    border-radius: 50%;
    position: absolute;
    left: -52px;
    top: 20px;
}

.timeline-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-left: 5px solid transparent;
    transition: 0.3s;
}

.timeline-card:hover {
    border-left-color: var(--naranja);
    transform: scale(1.02);
    box-shadow: 12px 12px 0px var(--verde-monte);
}

.year-label { font-weight: 800; color: var(--verde-monte); font-size: 1.2rem; }

/* =========================================
   5. TIENDA (PRODUCTOS)
   ========================================= */
.page-header-tienda {
    background: linear-gradient(rgba(26, 58, 95, 0.9), rgba(26, 58, 95, 0.9)), url('../img/tienda-bg.jpg');
    background-size: cover;
    padding: 80px 5%;
    text-align: center;
    color: white;
}

.tienda-container { max-width: 1200px; margin: 60px auto; padding: 0 5%; }
.tienda-subtitle { color: var(--verde-monte); border-bottom: 2px solid var(--naranja); display: inline-block; padding-bottom: 5px; margin: 40px 0 20px; }

.product-grid-pro { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-bottom: 60px; }

.product-hero-card {
    background: white;
    display: flex;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: 0.4s;
}

.product-hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 0px var(--verde-monte);
    border-color: var(--verde-monte);
}

.product-image-box { flex: 1; background: #f9f9f9; }
.product-image-box img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-box { flex: 1.2; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; }

.category { font-size: 0.7rem; text-transform: uppercase; color: var(--naranja); font-weight: 800; letter-spacing: 1px; }
.product-footer { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 1.4rem; font-weight: 800; color: var(--verde-monte); }

.btn-buy-pro, .btn-apple-pro {
    color: white; padding: 0.6rem 1rem; border-radius: 5px; text-decoration: none; font-size: 0.9rem; font-weight: bold;
}
.btn-buy-pro { background: var(--azul-profundo); }
.btn-apple-pro { background: #000; }

/* =========================================
   6. CONTACTO & FORMULARIOS
   ========================================= */
.page-header-contacto {
    background: linear-gradient(rgba(45, 90, 39, 0.9), rgba(45, 90, 39, 0.9)), url('../img/contacto-bg.jpg');
    background-size: cover;
    padding: 80px 5%;
    text-align: center;
    color: white;
}

.contacto-wrapper { max-width: 1100px; margin: -50px auto 100px; padding: 0 5%; }
.contacto-grid-equal { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }

.contacto-card-pro {
    background: white; padding: 3rem; border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); border: 1px solid var(--border-color);
    display: flex; flex-direction: column;
}

.card-header-icon {
    background: var(--naranja); width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; margin-bottom: 1.5rem;
}

.info-details { margin: 2rem 0; flex-grow: 1; }
.info-item { display: flex; align-items: center; gap: 15px; margin-bottom: 1.5rem; font-size: 1.1rem; }
.info-item i { color: var(--verde-monte); width: 20px; }

.form-contacto-pro { display: flex; flex-direction: column; gap: 15px; }
.form-input-group input, .form-input-group select, .form-input-group textarea {
    width: 100%; padding: 1rem; border: 2px solid #f0f0f0; border-radius: 8px; font-family: inherit; font-size: 1rem; transition: 0.3s;
}

.form-input-group input:focus, .form-input-group select:focus, .form-input-group textarea:focus {
    border-color: var(--naranja); outline: none; background: #fffcf9;
}

.btn-submit-pro {
    background: var(--verde-monte); color: white; padding: 1rem; border: none; border-radius: 8px;
    font-weight: 800; font-size: 1.1rem; cursor: pointer; transition: 0.3s;
}
.btn-submit-pro:hover { background: var(--naranja); transform: translateY(-3px); }

/* =========================================
   7. DONACIONES (ATH MÓVIL / GIVEBUTTER)
   ========================================= */
.donaciones-wrapper { padding: 100px 5%; max-width: 1200px; margin: 0 auto; }
.donaciones-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }

.tag-donar { color: var(--naranja); text-transform: uppercase; font-weight: 800; letter-spacing: 2px; }
.donaciones-content h1 { font-size: 3rem; color: var(--azul-profundo); margin: 1rem 0; }

.impact-box-donar { background: #fdf2e9; padding: 2rem; border-radius: 10px; margin-bottom: 2rem; }
.impact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
.impact-item i { color: var(--verde-monte); }

.method-card {
    background: white; padding: 3rem; border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); text-align: center;
}

.small-label { font-size: 0.8rem; color: #888; margin-bottom: 8px; text-transform: uppercase; }

.btn-ath-movil {
    background: var(--ath-naranja); color: white; display: block;
    padding: 1.2rem; border-radius: 10px; text-decoration: none; font-weight: 800; font-size: 1.1rem; transition: 0.3s;
}

.btn-primary-donar {
    background: var(--verde-monte); color: white; display: block;
    padding: 1.2rem; border-radius: 10px; text-decoration: none; font-weight: 800; transition: 0.3s;
}

.btn-paypal {
    margin-top: 20px; display: block; color: #003087; text-decoration: none;
    font-weight: bold; border: 2px solid #003087; padding: 10px; border-radius: 10px;
}

/* =========================================
   8. PÁGINA DE GRACIAS & ANIMACIONES
   ========================================= */
.thanks-container {
    padding: 100px 5%; display: flex; justify-content: center; align-items: center;
    min-height: 70vh; background: linear-gradient(rgba(253, 251, 247, 0.9), rgba(227, 237, 247, 0.9));
}

.thanks-card {
    background: white; padding: 4rem 3rem; border-radius: 20px; text-align: center;
    max-width: 600px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); border: 1px solid var(--border-color);
}

.thanks-icon { font-size: 4rem; color: var(--naranja); margin-bottom: 1.5rem; animation: heartBeat 1.5s infinite; }

.share-btn {
    width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; color: white; text-decoration: none; transition: 0.3s;
}
.share-btn.fb { background: #3b5998; }
.share-btn.ig { background: #e4405f; }
.share-btn.yt { background: #cd201f; }

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* =========================================
   9. RESPONSIVE (MEDIA QUERIES)
   ========================================= */

/* Tablets y Laptops Pequeñas */
@media (max-width: 900px) {
    .donaciones-grid, .product-grid-pro, .contacto-grid-equal {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .product-hero-card { flex-direction: column; }
    .contacto-wrapper { margin-top: 20px; }
}

/* Smartphones */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .mision-vision .container { flex-direction: column; }
    .impacto { flex-direction: column; gap: 3rem; }
    .nav-links { display: none; } /* Idealmente implementar menú hamburguesa */
    .btn-secondary { margin-left: 0; margin-top: 10px; width: 100%; }
    .btn-primary { width: 100%; }
}