/* =========================================
   Rediseño Estratégico Heuma - Identidad Visual
   ========================================= */

:root {
    /* Nueva Paleta de Colores Institucionales */
    --heuma-gold: #dbb65e;
    --heuma-teal: #008073;
    --heuma-brown: #964220;
    --heuma-dark: #1a1a1a;
    --heuma-light: #f4f4f4;
    --heuma-text: #838486;
    /* Color de texto solicitado */
}

/* Aplicación Global de Colores */
body {
    color: var(--heuma-dark);
}

p,
li,
.elementor-widget-text-editor {
    color: var(--heuma-text);
}

/* Botones Primarios */
.elementor-button,
button,
input[type="submit"] {
    background-color: var(--heuma-teal) !important;
    color: #ffffff !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.elementor-button:hover,
button:hover,
input[type="submit"]:hover {
    background-color: var(--heuma-brown) !important;
    transform: translateY(-2px);
}

/* Títulos y Encabezados */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heuma-brown);
}

h1.elementor-heading-title {
    color: var(--heuma-teal) !important;
}

/* Fondos de Sección (Clases de utilidad) */
.bg-heuma-gold {
    background-color: var(--heuma-gold) !important;
}

.bg-heuma-teal {
    background-color: var(--heuma-teal) !important;
}

.bg-heuma-brown {
    background-color: var(--heuma-brown) !important;
}

/* Enlaces */
a {
    color: var(--heuma-teal);
    transition: color 0.2s;
}

a:hover {
    color: var(--heuma-gold);
}

/* =========================================
   Componente: Hero Carousel
   ========================================= */
.heuma-carousel-container {
    position: relative;
    width: 100%;
    height: 80vh;
    /* Alto del hero */
    min-height: 500px;
    overflow: hidden;
}

.heuma-carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.heuma-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heuma-slide.active {
    opacity: 1;
}

.heuma-hero-content {
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    /* Fondo oscuro semitransparente */
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    z-index: 2;
}

.heuma-hero-content h1 {
    color: #fff !important;
    /* Texto blanco en hero */
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.heuma-carousel-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    z-index: 10;
}

.heuma-carousel-controls .prev {
    left: 1rem;
}

.heuma-carousel-controls .next {
    right: 1rem;
}

/* =========================================
   Componente: Tabs Juntos Somos Más
   ========================================= */
.heuma-tabs-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.heuma-tabs-header {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #ddd;
}

.heuma-tab-btn {
    background: none !important;
    color: var(--heuma-text) !important;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 4px solid transparent;
}

.heuma-tab-btn.active {
    color: var(--heuma-teal) !important;
    border-bottom-color: var(--heuma-teal);
}

.heuma-tab-content {
    display: none;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s;
}

.heuma-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Componente: Grid Juntos Somos Más
   ========================================= */
.heuma-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.heuma-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--heuma-gold);
}

.heuma-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.heuma-card-header {
    background-color: var(--heuma-light);
    padding: 1.5rem;
    text-align: center;
}

.heuma-card-header h3 {
    margin: 0;
    color: var(--heuma-teal);
    font-size: 1.5rem;
}

.heuma-card-body {
    padding: 1.5rem;
}

.heuma-list-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.heuma-institution {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.heuma-institution:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.heuma-institution h4 {
    color: var(--heuma-brown);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heuma-institution ul {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    color: var(--heuma-text);
    /* Updated to use global text var */
    line-height: 1.6;
}