/*
Theme Name:         Sage Starter Theme
Theme URI:          https://roots.io/sage/
Description:        Sage is a WordPress starter theme.
Version:            10.6.0
Author:             Roots
Author URI:         https://roots.io/
Text Domain:        sage
License:            MIT License
License URI:        https://opensource.org/licenses/MIT
Requires PHP:       8.0
Requires at least:  5.9
*/


/* CSS PLANO PARA SECCIONES DAEH - SIN VARIABLES */

/* Reset específico para las secciones */
.daeh-services-section,
.daeh-news-section {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.daeh-services-section *,
.daeh-news-section * {
    box-sizing: border-box;
}

/* SECCIÓN DE SERVICIOS */
.daeh-services-section {
    padding: 3rem 1.5rem;
    background: #ffffff;
    position: relative;
}

.daeh-section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 2rem;
    font-family: 'Arial', sans-serif;
    position: relative;
}

.daeh-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #3b82f6);
    border-radius: 2px;
}

.daeh-services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.daeh-service-card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.daeh-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1e3a8a);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.daeh-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.daeh-service-card:hover::before {
    transform: scaleX(1);
}

.daeh-service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.daeh-service-card:nth-child(1) .daeh-service-icon { 
    background: linear-gradient(135deg, #dc2626, #ef4444); 
}
.daeh-service-card:nth-child(2) .daeh-service-icon { 
    background: linear-gradient(135deg, #3b82f6, #1e3a8a); 
}
.daeh-service-card:nth-child(3) .daeh-service-icon { 
    background: linear-gradient(135deg, #f97316, #fb923c); 
}
.daeh-service-card:nth-child(4) .daeh-service-icon { 
    background: linear-gradient(135deg, #059669, #10b981); 
}

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

.daeh-service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-family: 'Arial', sans-serif;
}

.daeh-service-description {
    color: #4b5563;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.daeh-service-btn {
    background: #dc2626;
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.daeh-service-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* SECCIÓN DE NOTICIAS */
.daeh-news-section {
    padding: 3rem 1.5rem;
    background: #f9fafb;
    position: relative;
}

.daeh-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(30,58,138,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.daeh-news-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.daeh-news-card {
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.daeh-news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(30,58,138,0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.daeh-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.daeh-news-card:hover::before {
    opacity: 1;
}

.daeh-news-image {
    height: 200px;
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.daeh-news-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.daeh-news-card:hover .daeh-news-image::before {
    left: 100%;
}

.daeh-news-content {
    padding: 1.5rem;
}

.daeh-news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.daeh-news-date {
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
}

.daeh-news-category {
    background: #dbeafe;
    color: #1e3a8a;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.daeh-news-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-family: 'Arial', sans-serif;
    transition: color 0.3s ease;
}

.daeh-news-card:hover .daeh-news-title {
    color: #3b82f6;
}

.daeh-news-excerpt {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.daeh-news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.daeh-read-more {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.daeh-read-more:hover {
    color: #b91c1c;
    transform: translateX(3px);
}

.daeh-news-author {
    color: #4b5563;
    font-size: 0.8rem;
    font-style: italic;
}

.daeh-view-all-btn {
    display: block;
    margin: 2rem auto 0;
    background: #1e3a8a;
    color: #ffffff;
    padding: 1.5rem 3rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.daeh-view-all-btn:hover {
    background: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Animaciones */
@keyframes daehFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.daeh-animate-fade-in {
    animation: daehFadeInUp 0.6s ease-out;
}

/* Responsivo */
@media (max-width: 768px) {
    .daeh-section-title {
        font-size: 2rem;
    }

    .daeh-services-grid,
    .daeh-news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .daeh-services-section,
    .daeh-news-section {
        padding: 2rem 1rem;
    }

    .daeh-news-image {
        height: 150px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .daeh-section-title {
        font-size: 1.75rem;
    }

    .daeh-service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .daeh-news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .daeh-services-section,
    .daeh-news-section {
        padding: 1.5rem 0.75rem;
    }

    .daeh-service-card,
    .daeh-news-content {
        padding: 1.25rem;
    }

    .daeh-view-all-btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}

/* Forzar logo header height auto */
.topbar .logo-icon img {
    height: auto !important;
    max-height: 60px !important;
    width: auto !important;
    max-width: 100% !important;
    display: block;
}

/* Control específico para el menú lateral de transparencia */
#transparencia-menu ol,
#transparencia-menu ul {
    padding-left: 0 !important;
}


@media (min-width: 1200px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xxl,
  .container-xl {
    max-width: 1380px !important;
  }
}
