/* ============================================
   Schaller & Ponce - Estilos principales
   ============================================ */

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('../images/background-new.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: #fff;
    display: flex;
    flex-direction: column;
}

/* Overlay oscuro para mejorar legibilidad */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 55, 75, 0.4);
    z-index: -1;
}

/* ============================================
   Barra de Navegación
   ============================================ */

.nav-bar {
    background: rgba(20, 20, 20, 0.60);
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    overflow: visible; /* Cambiado de hidden para que el menú móvil sea visible */
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 50px; /* Altura mínima para contener el botón hamburguesa */
}

/* Botón Hamburguesa (oculto en desktop) */
.hamburger-button {
    display: none; /* Oculto por defecto en desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 15px;
    z-index: 101;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #c62828;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-button:hover .hamburger-line {
    background-color: #ff5252;
}

/* Animación cuando el menú está abierto */
.hamburger-button.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-button.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-button.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background: rgba(20, 20, 20, 0.60);
}

.nav-item {
    flex: 1;
    min-width: 150px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item:last-child {
    border-right: none;
}

.nav-link {
    display: block;
    padding: 18px 15px;
    color: #c62828;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

/* Efecto hover: color más brillante y movimiento hacia arriba */
.nav-link:hover {
    color: #ff5252;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.nav-link:active {
    transform: translateY(-5px);
}

/* ============================================
   Modal / Ventana de Contenido
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 45, 60, 0.85);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: block;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #2d3d4f 0%, #3a4f63 100%);
    margin: 3% auto;
    padding: 0;
    width: 85%;
    max-width: 1000px;
    max-height: 85vh;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    animation: slideDown 0.4s ease;
    z-index: 1001;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #c62828 0%, #8b1f1f 100%);
    color: white;
    padding: 16px 25px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover,
.close-btn:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Modal header actions - disclaimer link */
.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.disclaimer-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.disclaimer-link:hover {
    background: rgba(255, 255, 255, 0.25);
    text-decoration: none;
}

.disclaimer-link i {
    font-size: 1rem;
}

/* Ventana scrolleable de contenido */
.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(85vh - 100px);
    color: #f0f0f0;
    line-height: 1.8;
}

.modal-body::-webkit-scrollbar {
    width: 12px;
}

.modal-body::-webkit-scrollbar-track {
    background: #2d3d4f;
    border-radius: 0 0 15px 0;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c62828;
    border-radius: 6px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #ff5252;
}

/* Formato del contenido */
.modal-body h3 {
    color: #ff5252;
    margin-top: 30px;
    margin-bottom: 18px;
    font-size: 1.5rem;
    font-weight: 700;
    padding-left: 15px;
    border-left: 5px solid #c62828;
    background: linear-gradient(90deg, rgba(198, 40, 40, 0.15) 0%, transparent 100%);
    padding: 12px 15px;
    border-radius: 5px;
}

.modal-body h3 i {
    margin-right: 10px;
    color: #ff5252;
}

.modal-body h4 {
    color: #90CAF9;
    margin-top: 22px;
    margin-bottom: 14px;
    font-size: 1.25rem;
    font-weight: 600;
    padding-left: 12px;
    border-left: 3px solid #90CAF9;
}

.modal-body h4 i {
    margin-right: 8px;
    color: #90CAF9;
}

.modal-body p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.9;
}

.modal-body ul, .modal-body ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.modal-body li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.modal-body ul li::marker {
    color: #ff5252;
}

.modal-body code {
    background: rgba(100, 181, 246, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #90CAF9;
    font-size: 0.95em;
}

.modal-body pre {
    background: rgba(30, 45, 60, 0.5);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    border-left: 4px solid #c62828;
    margin: 20px 0;
}

/* Cajas de información destacada */
.info-box {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(33, 150, 243, 0.05) 100%);
    border-left: 4px solid #2196F3;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.1);
}

.info-box h4 {
    color: #64B5F6;
    margin-top: 0;
    border: none;
    padding: 0;
}

.tip-box {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.05) 100%);
    border-left: 4px solid #4CAF50;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.1);
}

.tip-box h4 {
    color: #81C784;
    margin-top: 0;
    border: none;
    padding: 0;
}

.warning-box {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 152, 0, 0.05) 100%);
    border-left: 4px solid #FF9800;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.1);
}

.warning-box h4 {
    color: #FFB74D;
    margin-top: 0;
    border: none;
    padding: 0;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.2) 0%, rgba(198, 40, 40, 0.05) 100%);
    border-left: 4px solid #c62828;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(198, 40, 40, 0.2);
}

.highlight-box h4 {
    color: #ff5252;
    margin-top: 0;
    border: none;
    padding: 0;
}

/* Imágenes en el contenido */
.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.img-float-right {
    float: right;
    margin: 10px 0 10px 20px;
    max-width: 300px;
}

.img-float-left {
    float: left;
    margin: 10px 20px 10px 0;
    max-width: 300px;
}

.img-center {
    display: block;
    margin: 25px auto;
    max-width: 600px;
}

.img-small {
    max-width: 200px;
}

.img-medium {
    max-width: 400px;
}

/* Tarjetas de concepto */
.concept-card {
    background: rgba(80, 110, 140, 0.15);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    transition: all 0.3s ease;
}

.concept-card:hover {
    background: rgba(80, 110, 140, 0.25);
    border-color: rgba(100, 181, 246, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(100, 181, 246, 0.2);
}

.concept-card h4 {
    color: #ff5252;
    margin-top: 0;
    font-size: 1.3rem;
}

.concept-card .icon {
    font-size: 2.5rem;
    color: #ff5252;
    margin-bottom: 15px;
    display: block;
}

/* Grid de tarjetas */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Listas con iconos */
.icon-list {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.icon-list li {
    padding-left: 35px;
    position: relative;
    margin-bottom: 15px;
}

.icon-list li::before {
    content: "▸";
    position: absolute;
    left: 10px;
    color: #ff5252;
    font-size: 1.2em;
    font-weight: bold;
}

/* Separadores visuales */
.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #c62828, transparent);
    margin: 35px 0;
    border: none;
}

/* Badges y etiquetas */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 5px 5px 0;
}

.badge-primary {
    background: linear-gradient(135deg, #c62828, #8b1f1f);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: white;
}

/* Blockquotes */
.modal-body blockquote {
    border-left: 4px solid #ff5252;
    padding: 15px 20px;
    margin: 25px 0;
    background: rgba(255, 82, 82, 0.1);
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.modal-body blockquote p {
    margin: 0;
}

/* Layout de dos columnas para "Quiénes somos" */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.profile-card {
    background: rgba(80, 110, 140, 0.15);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.profile-card h3 {
    margin-top: 0;
    color: #ff5252;
    border-bottom: 2px solid #c62828;
    padding-bottom: 10px;
}

/* Estilos para columnas de perfiles en Markdown */
.modal-body .perfil-columna {
    background: rgba(30, 45, 60, 0.3);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(100, 181, 246, 0.15);
}

.modal-body .perfil-columna h1 {
    color: #ff5252;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #c62828;
}

.modal-body .perfil-columna h2 {
    color: #90CAF9;
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.modal-body .perfil-columna h3 {
    color: #B39DDB;
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body .perfil-columna ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-body .perfil-columna li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Responsive: una columna en pantallas pequeñas */
@media (max-width: 768px) {
    .modal-body > div[style*="grid-template-columns"] {
        display: block !important;
    }

    .modal-body .perfil-columna {
        margin-bottom: 25px;
    }
}

/* ============================================
   Contenido Principal (Homepage)
   ============================================ */

.main-content {
    text-align: center;
    padding: 20px 15px 20px;
    max-width: 900px;
    margin: 0 auto;
    flex: 1;
    width: 100%;
}

.welcome-section {
    background: rgba(50, 70, 90, 0.7);
    padding: 25px 40px;
    border-radius: 15px;
    margin: 40px 0 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.welcome-section h2 {
    font-size: 1.8rem;
    color: #ff5252;
    margin-bottom: 15px;
}

.welcome-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 12px;
}

/* ============================================
   Email de Contacto
   ============================================ */

.email-contact {
    text-align: center;
    padding: 15px 20px;
    margin-top: 15px;
}

.email-contact a {
    color: #64B5F6;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.email-contact a:hover {
    color: #90CAF9;
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.5);
}

/* ============================================
   Logo de Chat Flotante
   ============================================ */

.chat-logo {
    position: fixed;
    bottom: 50%;
    right: 130px;
    transform: translateY(50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: transparent;
    padding: 0px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: pulse-slow 3s ease-in-out infinite;
}

.chat-logo:hover {
    transform: translateY(50%) scale(1.1);
}

@keyframes pulse-slow {
    0%, 100% {
        transform: translateY(50%) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translateY(50%) scale(1.08);
        opacity: 1;
    }
}

/* ============================================
   Cajas de Título y Subtítulo
   ============================================ */

.title-box {
    background: transparent;
    border: none;
    padding: 10px 20px 5px;
    margin: 0 auto 5px;
    width: 100%;
    text-align: center;
}

.title-box h1 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 52pt;
    color: #c62828;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle-box {
    background: transparent;
    border: none;
    padding: 0px 15px;
    margin: 0 auto 10px;
    width: 100%;
    text-align: center;
}

.subtitle-box p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15pt;
    color: #ffffff;
    margin: 0;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    /* Ajustar nav-bar para posicionamiento relativo en móvil */
    .nav-bar {
        position: relative;
    }

    /* Mostrar botón hamburguesa en móvil */
    .hamburger-button {
        display: block;
        position: absolute;
        top: 10px;
        left: 15px;
    }

    /* Ocultar menú por defecto en móvil */
    .nav-bar .nav-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(20, 20, 20, 0.60) !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(255, 255, 255, 0.1);
        border-radius: 0 0 8px 8px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 99;
    }

    /* Mostrar menú cuando está activo */
    .nav-bar .nav-menu.active {
        max-height: 600px !important;
        display: flex !important;
        overflow: visible !important;
        background: rgba(20, 20, 20, 0.60) !important;
    }

    .nav-item {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(20, 20, 20, 0.60) !important;
    }

    .nav-link {
        padding: 18px 20px;
        font-size: 1rem;
        background: rgba(20, 20, 20, 0.60) !important;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 20px 15px 20px;
    }

    /* Reducir tamaños de fuente más agresivamente */
    .title-box h1 {
        font-size: 32pt;
    }

    .subtitle-box p {
        font-size: 11pt;
    }

    .chat-logo {
        width: 100px;
        height: 100px;
        bottom: 50%;
        right: 80px;
    }

    .welcome-section {
        margin-top: 40px;
        padding: 25px 20px;
    }

    .welcome-section h2 {
        font-size: 1.5rem;
    }

    .welcome-section p {
        font-size: 1rem;
    }

    /* Hacer botón CTA más visible */
    .cta-button {
        padding: 16px 30px;
        font-size: 1.1rem;
        width: 100%;
        max-width: 320px;
    }

    .email-contact {
        padding: 20px 20px;
        margin-top: 20px;
    }

    .email-contact a {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .nav-link {
        padding: 16px 15px;
        font-size: 0.95rem;
    }

    .main-content {
        padding: 15px 10px 15px;
    }

    .welcome-section {
        padding: 20px 15px;
        margin-top: 30px;
    }

    .modal-body {
        padding: 20px;
    }

    /* Tamaños aún más reducidos para móviles pequeños */
    .title-box h1 {
        font-size: 28pt;
    }

    .subtitle-box p {
        font-size: 10pt;
    }

    .chat-logo {
        width: 90px;
        height: 90px;
        bottom: 50%;
        right: 50px;
    }

    /* Botón CTA optimizado para móvil pequeño */
    .cta-button {
        padding: 14px 25px;
        font-size: 1rem;
    }

    .email-contact {
        padding: 15px 15px;
        margin-top: 15px;
    }

    .email-contact a {
        font-size: 0.95rem;
    }
}

/* ============================================
   Footer
   ============================================ */

.footer {
    text-align: center;
    padding: 20px 20px;
    background: rgba(50, 70, 90, 0.75);
    margin-top: auto;
    color: #999;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.footer a {
    color: #ff5252;
    text-decoration: none;
}

.footer a:hover {
    color: #ff8a80;
    text-decoration: underline;
}

/* ============================================
   Estilos para contenido Markdown
   ============================================ */

.modal-body h1 {
    color: #C62828;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(198, 40, 40, 0.3);
    padding-bottom: 0.5rem;
}

.modal-body h2 {
    color: #FF5252;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 82, 82, 0.2);
    padding-bottom: 0.3rem;
}

.modal-body h3 {
    color: #90CAF9;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.modal-body h4 {
    color: #90CAF9;
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.modal-body strong {
    color: #FF5252;
    font-weight: 600;
}

.modal-body em {
    font-style: italic;
    color: #90CAF9;
}

.modal-body hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.modal-body blockquote {
    border-left: 4px solid #64B5F6;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #DDDDDD;
    background: rgba(100, 181, 246, 0.1);
    padding: 1rem;
    border-radius: 4px;
}

.modal-body code {
    background: rgba(30, 45, 60, 0.5);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #90CAF9;
}

.modal-body pre {
    background: rgba(30, 45, 60, 0.5);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
}

.modal-body pre code {
    background: none;
    padding: 0;
}

.modal-body a {
    color: #64B5F6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.modal-body a:hover {
    color: #90CAF9;
    text-decoration: underline;
}

/* ============================================
   Estilos para noticias (WebIAScrap)
   ============================================ */

.news-loading,
.news-empty,
.news-error {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.news-loading i,
.news-empty i,
.news-error i {
    color: #64B5F6;
    margin-bottom: 20px;
}

.news-loading p,
.news-empty p {
    font-size: 1.1rem;
    margin-top: 10px;
}

.news-error {
    color: #FF5252;
}

.news-error h3 {
    color: #FF5252;
    margin: 20px 0 10px 0;
}

.news-error-detail {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 10px 0;
}

.news-error-detail code {
    background: rgba(30, 45, 60, 0.5);
    padding: 2px 8px;
    border-radius: 3px;
    color: #90CAF9;
}

.news-retry-btn,
.news-clear-filter {
    background: linear-gradient(135deg, #C62828, #FF5252);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
}

.news-retry-btn:hover,
.news-clear-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4);
}

.news-retry-btn i,
.news-clear-filter i {
    margin-right: 8px;
}

.news-header-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(198, 40, 40, 0.3);
}

.news-header-section h3 {
    color: #C62828;
    font-size: 1.8rem;
    margin: 0 0 10px 0;
}

.news-header-section h3 i {
    margin-right: 10px;
    color: #FF5252;
}

.news-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin: 5px 0;
}

.news-clear-filter {
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.news-card {
    background: rgba(30, 45, 60, 0.4);
    border: 1px solid rgba(144, 202, 249, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(144, 202, 249, 0.2);
    border-color: rgba(144, 202, 249, 0.4);
}

.news-header {
    margin-bottom: 15px;
}

.news-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.news-title a {
    color: #90CAF9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #64B5F6;
}

.news-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-style: italic;
}

.news-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 10px 0 15px 0;
    flex-grow: 1;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.news-tag {
    background: rgba(198, 40, 40, 0.2);
    color: #FF5252;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 82, 82, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-tag:hover {
    background: rgba(198, 40, 40, 0.4);
    border-color: rgba(255, 82, 82, 0.5);
}

.news-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(144, 202, 249, 0.2);
}

.news-read-more {
    color: #64B5F6;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.news-read-more:hover {
    color: #90CAF9;
}

.news-read-more i {
    margin-right: 8px;
    font-size: 0.85em;
}

/* Responsive: móviles */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-header-section h3 {
        font-size: 1.4rem;
    }

    .news-card {
        padding: 15px;
    }
}

/* ============================================
   Estilos para Disclaimer
   ============================================ */

.disclaimer-content {
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-content h2 {
    color: #C62828;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.disclaimer-content h3 {
    color: #FF5252;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.disclaimer-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.disclaimer-content strong {
    color: #90CAF9;
}

.disclaimer-content a {
    color: #64B5F6;
    text-decoration: none;
}

.disclaimer-content a:hover {
    color: #90CAF9;
    text-decoration: underline;
}

.back-to-news-btn {
    background: linear-gradient(135deg, #C62828, #FF5252);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin: 30px auto 0;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
}

.back-to-news-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4);
}

.back-to-news-btn i {
    margin-right: 8px;
}

/* ============================================
   Botón CTA - Agendar Consulta
   ============================================ */

.cta-section {
    text-align: center;
    margin: 40px 0;
    padding: 30px 0;
}

.cta-button {
    background: linear-gradient(135deg, #C62828, #FF5252);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(198, 40, 40, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(198, 40, 40, 0.6);
    background: linear-gradient(135deg, #D32F2F, #FF6B6B);
}

.cta-button:active {
    transform: translateY(-1px);
}

.cta-button i {
    font-size: 1.3rem;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-top: 12px;
    font-style: italic;
}

/* ============================================
   Modal de Cal.com
   ============================================ */

.modal-calcom {
    max-width: 95%;
    width: 1000px;
}

.modal-body-calcom {
    padding: 0;
    overflow: hidden;
}

#calcom-container {
    background: rgba(20, 30, 40, 0.95);
    border-radius: 0 0 15px 15px;
}

/* Responsive para botón CTA */
@media (max-width: 768px) {
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .modal-calcom {
        max-width: 98%;
    }
}

/* ============================================
   Carrusel de Tecnologías
   ============================================ */

.tech-carousel-container {
    margin: 30px 0 20px;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.tech-carousel-title {
    text-align: center;
    color: #c62828;
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.tech-carousel {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-carousel-track {
    display: flex;
    gap: 40px;
    will-change: transform;
    width: fit-content;
}

.tech-carousel-track-forward {
    animation: scroll 25s linear infinite;
}

.tech-carousel-track-reverse {
    animation: scroll-reverse 25s linear infinite;
}

.tech-carousel-track:hover {
    animation-play-state: paused;
}

.tech-logo-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.tech-logo-item:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 20px rgba(198, 40, 40, 0.3);
}

.tech-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.tech-logo-item:hover img {
    filter: brightness(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Footer actualizado */
.footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding: 30px 20px;
}

.footer-left {
    width: 100%;
    text-align: center;
}

.footer-credit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-style: italic;
}

.footer-center {
    text-align: center;
}

.footer-center p {
    margin: 5px 0;
}

/* Responsive para carrusel */
@media (max-width: 768px) {
    .tech-carousel-title {
        font-size: 1.1rem;
    }

    .tech-logo-item {
        width: 60px;
        height: 60px;
        padding: 10px;
    }

    .tech-carousel-track {
        gap: 25px;
    }

    .footer-credit {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .tech-carousel-container {
        margin: 30px 0 20px;
        padding: 20px 0;
    }

    .tech-carousel-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .tech-logo-item {
        width: 50px;
        height: 50px;
        padding: 8px;
    }

    .tech-carousel-track {
        gap: 20px;
    }

    .footer-credit {
        font-size: 0.6rem;
    }
}
