/* ==========================================================================
   FUNKARIB - ESTILOS WEB PREMIUM (modern.css)
   Camino al Pensamiento Intercultural
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Paleta de Colores Intercultural Orgánica */
    --bg-dark: #12100e;            /* Negro carbón / arcilla ultra profunda */
    --bg-surface: #1c1917;         /* Gris piedra oscuro / fondo de secciones */
    --bg-surface-light: #292524;   /* Piedra claro para tarjetas secundarias */
    
    --primary: #c2410c;            /* Terracota / Arcilla cálida */
    --primary-light: #ea580c;      /* Terracota brillante para hover */
    --secondary: #eab308;          /* Oro suave para llamadas a la acción */
    --secondary-light: #facc15;    /* Oro brillante */
    
    --text-light: #f5f5f4;         /* Blanco hueso principal */
    --text-muted: #a8a29e;         /* Gris piedra para descripciones */
    
    /* Efecto Glassmorphism */
    --glass-bg: rgba(28, 25, 23, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.4);
    
    /* Fuentes */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transiciones y bordes */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Reset Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Estructura de Navegación (Header y Navbar)
   ========================================================================== */
.header-premium {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px var(--glass-shadow);
    transition: var(--transition);
}

.header-premium.scrolled {
    background: rgba(18, 16, 14, 0.95);
    padding: 10px 0;
}

.navbar-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-brand span {
    color: var(--text-light);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

.nav-item a {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 5px 0;
}

.nav-item a:hover,
.nav-item.active a {
    color: var(--text-light);
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-item a:hover::after,
.nav-item.active a::after {
    width: 100%;
}

.btn-cta {
    background: linear-gradient(135deg, var(--secondary) 0%, #ca8a04 100%);
    color: #1e1b4b !important;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
    transition: var(--transition);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.5);
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
}

/* Hamburguesa para Móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: var(--transition);
}

/* ==========================================================================
   Slideshow y Portada (Hero Section)
   ========================================================================== */
.ttr_slideshow {
    height: 100vh;
    min-height: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

#ttr_slideshow_inner,
#ttr_slideshow_inner ul,
.ttr_slide {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
}

.ttr_slide {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Integración y Preservación de la imagen original */
#Slide0 { background-image: url('../images/InicioDesktopSlide0.jpg') !important; }
#Slide1 { background-image: url('../images/InicioDesktopSlide1.jpg') !important; }
#Slide2 { background-image: url('../images/InicioDesktopSlide2.jpg') !important; }

/* Superposición Oscura Gradiente en la Portada */
.ttr_slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(18, 16, 14, 0.4) 0%, rgba(18, 16, 14, 0.9) 100%);
    pointer-events: none;
}

/* Tarjeta Glassmorphic Premium en Portada */
.hero-glass-container {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    z-index: 10;
    text-align: center;
    padding: 50px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px var(--glass-shadow);
}

.hero-glass-container h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-light) 30%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-glass-container p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-primary-custom {
    background-color: var(--primary);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(194, 65, 12, 0.4);
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 65, 12, 0.6);
}

.btn-secondary-custom {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.btn-secondary-custom:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Indicadores de Impacto (Counters) */
.impact-counters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
}

.counter-item h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 5px;
}

.counter-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Controles de Slideshow */
.left-button, .right-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    cursor: pointer;
}

.left-button { left: 20px; }
.right-button { right: 20px; }

#prev span, #next span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: rgba(28, 25, 23, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: var(--transition);
    color: var(--text-light);
    font-size: 0;
    text-indent: 0;
}

#prev span::before {
    content: '←';
    font-size: 1.5rem;
}

#next span::before {
    content: '→';
    font-size: 1.5rem;
}

#prev span:hover, #next span:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Ocultar paginaciones numeradas obsoletas */
#nav {
    display: none !important;
}

/* ==========================================================================
   Secciones y Layouts de Contenido (Grids & Gradients)
   ========================================================================== */
.section-premium {
    padding: 100px 20px;
    position: relative;
}

.section-alt {
    background-color: var(--bg-surface);
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-light);
}

/* Grilla Moderna de 2 Columnas */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.column-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.column-text h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.column-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-align: justify;
}

/* Sección Objeto Social / Reseña */
.objeto-card {
    background: linear-gradient(135deg, rgba(194, 65, 12, 0.1) 0%, rgba(28, 25, 23, 0.9) 100%);
    border: 1px solid rgba(194, 65, 12, 0.2);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    box-shadow: 0 15px 35px var(--glass-shadow);
}

.objeto-card h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 25px;
}

.objeto-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: justify;
}

/* ==========================================================================
   Tarjetas de Servicios y Equipo (Grids)
   ========================================================================== */
.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card-glass {
    background: var(--bg-surface-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    transition: var(--transition);
    box-shadow: 0 8px 25px var(--glass-shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-glass:hover {
    transform: translateY(-8px);
    border-color: rgba(194, 65, 12, 0.4);
    box-shadow: 0 15px 35px rgba(194, 65, 12, 0.15);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-light);
    line-height: 1;
}

.card-glass h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
}

.card-glass p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-glass ul {
    list-style: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-glass ul li {
    position: relative;
    padding-left: 20px;
}

.card-glass ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* ==========================================================================
   Página de Contacto y Formulario
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(194, 65, 12, 0.15);
    border: 1px solid rgba(194, 65, 12, 0.3);
    color: var(--primary-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.info-details h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-details p {
    color: var(--text-muted);
}

.contact-form-panel {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 15px 35px var(--glass-shadow);
}

.form-group-custom {
    margin-bottom: 20px;
}

.form-group-custom label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-input-custom {
    width: 100%;
    background-color: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-light);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-input-custom:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(194, 65, 12, 0.2);
}

textarea.form-input-custom {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(194, 65, 12, 0.4);
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px var(--glass-shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg) grayscale(30%); /* Efecto mapa oscuro elegante */
}

/* ==========================================================================
   Pie de Página (Footer) Unificado y Premium
   ========================================================================== */
.footer-premium {
    background-color: #0b0908;
    border-top: 1px solid var(--glass-border);
    padding: 80px 20px 20px 20px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-3px);
}

.footer-nav h4, .footer-info h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
    position: relative;
    padding-bottom: 8px;
}

.footer-nav h4::after, .footer-info h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-menu a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-info-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-info-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a:hover {
    color: var(--text-light);
}

.designed-by a {
    color: var(--primary-light);
    font-weight: 600;
}

/* ==========================================================================
   Adaptabilidad y Media Queries (Responsive)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-glass-container h1 {
        font-size: 2.8rem;
    }
    
    .grid-2col, .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 75px);
        background: rgba(18, 16, 14, 0.98);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 40px 30px;
        align-items: flex-start;
        gap: 25px;
        transition: 0.4s ease-in-out;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hero-glass-container {
        padding: 30px 20px;
        width: 95%;
    }
    
    .hero-glass-container h1 {
        font-size: 2rem;
    }
    
    .hero-glass-container p {
        font-size: 1rem;
    }
    
    .impact-counters {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .grid-3col, .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-grid {
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .section-premium {
        padding: 60px 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
