/* Variables CSS y Sistema de Diseño */
:root {
    /* Paleta de colores: Tonos tierra vibrantes y oscuros elegantes */
    --primary-color: #E27D60; /* Naranja tierra */
    --primary-dark: #C15B3E;
    --secondary-color: #085F63; /* Verde petróleo */
    --accent-color: #E8A87C; /* Arena/Dorado suave */
    
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --bg-dark: #1E212D;
    
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #F5F5F5;
    
    --success: #28A745;
    --error: #DC3545;
    
    /* Fuentes */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Sombras y Efectos */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 25px rgba(230, 185, 30, 0.2);
    /* Efecto Liquid Glass (Más transparente) */
    --glass-bg: rgba(14, 42, 24, 0.25); 
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-blur: blur(16px);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilidades */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 5rem 0;
}

.text-center { text-align: center; }
.text-white { color: var(--text-light); }
.text-primary { color: var(--primary-color) !important; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mx-auto { margin: 0 auto; }
.hidden { display: none !important; }

/* Botones */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(226, 125, 96, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 125, 96, 0.6);
    color: var(--bg-white);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Efecto Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal), background var(--transition-normal);
    color: #FFE600; /* Texto amarillo por defecto */
}

.glass-panel h3, .glass-panel h4 {
    color: #FF8C00; /* Títulos color Naranja */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Sombra para que el naranja resalte más sobre el fondo transparente */
}

.glass-panel p, .glass-panel li, .glass-panel span {
    color: #FFD700; /* Resto de las letras en color amarillo brillante */
    text-shadow: 0 1px 3px rgba(0,0,0,0.4); /* Ayuda a la legibilidad del amarillo sobre fondos claros */
}

.glass-panel:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: #FF8C00; /* Borde naranja al pasar el cursor */
    background: rgba(14, 42, 24, 0.4); /* Se oscurece un pelín al pasar el cursor para dar efecto de líquido */
}

.glass-panel-dark {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

/* Sección Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.divider.bg-primary { background-color: var(--primary-color); }

/* --- Componentes Específicos --- */

/* Navegación */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.header-logo {
    max-height: 70px; /* Un poco más grande para el logo jpg */
    width: auto;
    transition: transform var(--transition-normal);
    mix-blend-mode: multiply; /* Ayuda a mezclar fondos blancos de jpg */
}

.header-logo:hover {
    transform: scale(1.05);
}

.logo a {
    display: flex;
    align-items: center;
}

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

.nav-links a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    /* Fondo oscuro interactivo usando variables que se actualizarán con JS */
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(230, 185, 30, 0.25) 0%, rgba(26, 77, 46, 0.9) 40%, #0a1f12 100%);
    color: var(--bg-white);
    padding-top: 80px;
    overflow: hidden;
    transition: background 0.1s ease;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    animation: breathe 8s infinite alternate ease-in-out;
}

@keyframes breathe {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero .badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
    font-size: 4rem;
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.hero .description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Quiénes Somos */
.history-card {
    margin-bottom: 3rem;
}

.history-card p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

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

.card {
    text-align: center;
}

.card-icon {
    font-size: 2.5rem;
    color: #FF8C00; /* Naranja para hacer juego con los títulos */
    margin-bottom: 1.5rem;
    transition: transform var(--transition-normal);
}

.card:hover .card-icon {
    transform: scale(1.2) rotate(5deg);
}

.card h3 {
    margin-bottom: 1rem;
}

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

/* Objeto Social y Objetivos */
.object-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.main-object h3 { margin-bottom: 1.5rem; }
.main-object p { color: var(--text-muted); }

.goals-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-muted);
}

.goals-list i {
    color: var(--primary-color);
    margin-top: 0.2rem;
}

/* Directorio */
.directory-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.rep-legal {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.rep-legal .avatar {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    border: 2px solid var(--primary-color);
}

.rep-legal h4 { margin-bottom: 0.2rem; }
.rep-legal .role { color: var(--primary-color); font-weight: 600; font-size: 0.9rem; }
.rep-legal .cc { color: var(--text-muted); font-size: 0.85rem; }

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

.junta-item {
    display: flex;
    flex-direction: column;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.junta-item .role {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.junta-item .name {
    font-weight: 500;
    color: var(--text-main);
}

.founders h3 { margin-bottom: 1.5rem; }
.founders-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.founders-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
    top: -2px;
}

/* PQRS Section */
.pqrs-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.pqrs-info h2 { color: var(--bg-white); }
.pqrs-info p { opacity: 0.85; margin-top: 1.5rem; }

.contact-methods { margin-top: 2.5rem; }
.contact-methods p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.contact-methods i { color: var(--primary-color); font-size: 1.2rem; }

/* Formularios */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group.half { width: 50%; }

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: var(--bg-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.15);
}

select option {
    background: var(--bg-dark);
    color: var(--bg-white);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem;
}

.checkbox-group label {
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.7);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1.5rem;
}

.radicado-details {
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--success);
}

.radicado-details p { margin-bottom: 0.5rem; font-size: 1.1rem; }

/* Footer */
.main-footer {
    background-color: #111;
    color: rgba(255,255,255,0.7);
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3, .footer-col h4 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    background-color: #000;
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

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

.legal-links a {
    color: rgba(255,255,255,0.7);
}

.legal-links a:hover {
    color: var(--primary-color);
}

.legal-links span {
    margin: 0 0.5rem;
    color: rgba(255,255,255,0.3);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-dark);
    color: var(--bg-white);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 9999;
    border-left: 5px solid var(--primary-color);
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content h4 {
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.cookie-content p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: rgba(255,255,255,0.8);
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Estilos de página interna (Política de datos) */
.page-header {
    background: var(--secondary-color);
    padding: 120px 0 60px 0;
    color: var(--bg-white);
    text-align: center;
}

.page-header h1 {
    color: var(--bg-white);
    margin-bottom: 0;
}

.content-section {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.content-section h2 { margin-top: 2rem; }
.content-section ul { list-style: disc; padding-left: 2rem; margin-bottom: 1.5rem; }

/* Responsive */
@media (max-width: 992px) {
    .object-container, .directory-grid, .pqrs-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        gap: 1.5rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger { display: block; }
    
    .form-row { flex-direction: column; gap: 0; }
    .form-group.half { width: 100%; }
    
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .cookie-actions { justify-content: center; }
    
    .flex-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* --- Animaciones de Interacción (Scroll) --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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