/* ==========================================
   VARIABLES Y RESET
   ========================================== */
:root {
    --color-blue: #005aa9;
    --color-blue-dark: #004e9e;
    --color-red: #ff0000;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-bg1: #f7f9fb;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-black);
    background-color: var(--color-white);
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* ==========================================
   HEADER TOP (Logo y Teléfonos Desktop)
   ========================================== */
.header-top {
    background-color: var(--color-white);
    padding: 4px 0 2px 0;
    border-bottom: 1px solid #eee;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- SOLUCIÓN PARA EL LOGO SVG --- */
.logo {
    width: 170px; /* Ancho base del logo */
    flex-shrink: 0; /* Evita que Flexbox aplaste el logo */
}

.logo a {
    display: block;
}

.logo img {
    width: 100%; /* Toma el 100% de los 250px de su contenedor */
    height: auto;
    display: block;
}
/* --------------------------------- */

.desktop-contacts {
    display: flex;
    align-items: center;
    gap: 25px;
}

.contact-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    font-size: 24px;
    color: var(--color-blue);
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text .small-text {
    font-size: 12px;
    color: var(--color-blue);
    font-weight: 600;
    line-height: 1.2;
}

.contact-text .big-text {
    font-size: 18px;
    color: var(--color-black);
    font-weight: 700;
    line-height: 1.2;
}

.wa-icon-box {
    font-size: 32px;
    color: #25D366; /* Verde original de WA, o var(--color-blue) si prefieres */
    transition: transform 0.3s;
}

.wa-icon-box:hover {
    transform: scale(1.1);
}

/* ==========================================
   HEADER BOTTOM (Menú y Redes Desktop)
   ========================================== */
.header-bottom {
    background-color: var(--color-blue);
    width: 100%;
}

.header-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navegación Desktop */
.main-menu {
    display: flex;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: block;
    padding: 18px 15px;
    color: var(--color-white);
    font-size: 15px;
    font-weight: 500;
    transition: background 0.3s;
}

.main-menu > li:hover > a {
    background-color: var(--color-blue-dark);
}

/* Submenús */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    min-width: 240px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.main-menu li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    border-bottom: 1px solid #f1f1f1;
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: var(--color-black);
    font-size: 14px;
    transition: all 0.3s;
}

.submenu li a:hover {
    background-color: #f8f9fa;
    color: var(--color-blue);
    padding-left: 25px; /* Pequeño efecto hover */
}

/* Redes Sociales */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--color-blue-dark);
    color: var(--color-white);
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--color-white);
    color: var(--color-blue-dark);
}

/* ==========================================
   RESPONSIVE Y MÓVIL
   ========================================== */
.mobile-top-bar {
    display: none;
    background-color: var(--color-blue);
    padding: 8px 0;
}

.mobile-contacts {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.mobile-contacts a {
    color: var(--color-white);
    font-weight: 500;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--color-blue);
    cursor: pointer;
}

/* Off-Canvas Estilos base */
.offcanvas-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.offcanvas-menu {
    position: fixed;
    top: 0; right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--color-white);
    z-index: 999;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.offcanvas-menu.active {
    right: 0;
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
}

.offcanvas-logo {
    max-width: 120px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-red);
    cursor: pointer;
}

.offcanvas-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.mobile-contacts-list a {
    display: block;
    margin-bottom: 15px;
    color: var(--color-black);
    font-weight: 600;
}

.mobile-contacts-list a i {
    color: var(--color-blue);
    margin-right: 10px;
}

/* Breakpoint 768px (Móvil) */
@media (max-width: 768px) {
    .header-bottom, .desktop-contacts {
        display: none;
    }
    
    .mobile-top-bar {
        display: block;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-top {
        padding: 10px 0 5px 0;
    }
    .logo {
        width: 120px; 
    }
}

/* Breakpoint inferior a 480px (Ajuste barra top móvil si es muy pequeña) */
@media (max-width: 480px) {
    .mobile-contacts {
        gap: 10px;
        font-size: 12px;
    }
}
/* banner slider */
/* ==========================================
   PRELOADER DEL BANNER
========================================== */
.banner-rd-preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Clase que aplicará JS para ocultarlo */
.banner-rd-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.banner-rd-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-blue);
    border-radius: 50%;
    animation: banner-rd-spin 1s linear infinite;
}

@keyframes banner-rd-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Contenedor principal y aspecto */
.banner-rd-wrapper {
    width: 100%;
    position: relative;
    background-color: var(--color-black, #000);
}

.banner-rd-swiper {
    width: 100%;
    aspect-ratio: 16 / 5.5;
    overflow: hidden;
}

.banner-rd-slide {
    position: relative;
    display: flex;
    align-items: center; /* ESTO ALINEA VERTICALMENTE AL MEDIO */
}

/* Imagen de fondo de cada slide */
.banner-rd-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Capa oscura (Overlay) para asegurar que el texto sea legible frente a la imagen */
.banner-rd-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Contenedor centrado a 1200px (Escritorio) */

.banner-rd-container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    
    /* REFUERZO DE ALINEACIÓN HORIZONTAL (IZQUIERDA) Y VERTICAL (MEDIO) */
    display: flex; 
    align-items: center; 
    justify-content: flex-start; /* Fuerza el contenido hacia la izquierda */
    height: 100%; 
}

/* Layout de contenido Escritorio (50% izquierda) */
.banner-rd-content {
    width: 50%;
    text-align: left;
}

/* Estilos de Texto (Ocultos al principio para la animación) */
.banner-rd-title {
    color: #ffffff;
    font-size: 3.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(30px);
}

.banner-rd-subtitle {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.3em;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
}

.banner-rd-buttons {
    display: flex;
    gap: 15px;
    opacity: 0;
    transform: translateY(30px);
}

.banner-rd-btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: inline-block;
    transition: all 0.3s ease;
}
.banner-rd-btn:hover{
    transform: translateY(-4px); 
}
.banner-rd-btn-primary {
    background-color: var(--color-red, #ff0000);
    color: #ffffff;
}
.banner-rd-btn-primary:hover {
    background-color: #cc0000;
}

.banner-rd-btn-secondary {
    background-color: var(--color-blue, #005aa9);
    color: #ffffff;
}
.banner-rd-btn-secondary:hover {
    background-color: var(--color-blue-dark, #004e9e);
}

/* Animaciones (Activadas por las clases de Swiper al mostrar el slide actual) */
.swiper-slide-active .banner-rd-title {
    animation: banner-rd-fadeUp 0.8s ease forwards 0.3s;
}
.swiper-slide-active .banner-rd-subtitle {
    animation: banner-rd-fadeUp 0.8s ease forwards 0.5s;
}
.swiper-slide-active .banner-rd-buttons {
    animation: banner-rd-fadeUp 0.8s ease forwards 0.7s;
}

@keyframes banner-rd-fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flechas de Navegación (Escritorio) */
.banner-rd-button-prev,
.banner-rd-button-next {
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Aparecen al hacer hover en el contenedor */
.banner-rd-wrapper:hover .banner-rd-button-prev,
.banner-rd-wrapper:hover .banner-rd-button-next {
    opacity: 1;
}
/* Ocultar las flechas por defecto de Swiper */
.banner-rd-button-prev::after,
.banner-rd-button-next::after {
    display: none; /* Elimina el icono predeterminado */
}

/* Estilos para tu nuevo icono de FontAwesome */
.banner-rd-button-prev i,
.banner-rd-button-next i {
    font-size: 40px; /* Tamaño de tu nueva flecha */
    color: #ffffff;  /* Color de la flecha */
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Efecto hover opcional para el icono */
.banner-rd-button-prev:hover i {
    color: var(--color-red);
    transform: scale(1.1);
}
.banner-rd-button-next:hover i {
    color: var(--color-red);
    transform: scale(1.1);
}

/* Paginación (Puntos) ocultos en escritorio por defecto */
.banner-rd-pagination {
    display: none;
}
.banner-rd-pagination .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.6;
}
.banner-rd-pagination .swiper-pagination-bullet-active {
    background: var(--color-blue, #005aa9);
    opacity: 1;
}

/* ==========================================
   RESPONSIVE (Modo Móvil/Tablet)
========================================== */
@media (max-width: 768px) {
    .banner-rd-swiper {
        aspect-ratio: 4 / 6;
    }

    /* Cambio a disposición 100% centrado vertical/horizontal */
    .banner-rd-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    .banner-rd-content {
        width: 90%;
        text-align: center;
    }

    .banner-rd-title {
        font-size: 2rem;
    }

    .banner-rd-subtitle {
        font-size: 1rem;
    }

    .banner-rd-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Ocultar flechas de navegación y mostrar puntos de paginación */
    .banner-rd-button-prev,
    .banner-rd-button-next {
        display: none !important;
    }

    .banner-rd-pagination {
        display: block;
    }
}
.bg-grisblue{
    background-color: #f7f9fb;
}
.bg-grisblue-2{
    background-color: #f0f4f8;
}
/* ==========================================
   SECCIÓN 1: TÍTULO GENERAL (.titulos1-rd)
========================================== */
.titulos1-rd-wrapper {
    width: 100%;
    background-color: #f7f9fb;
    padding: 50px 0;
}

.titulos1-rd-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.titulos1-rd-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-blue-dark);
    font-weight: 700;
    font-size: 1.375rem; /* ~22px */
    margin-bottom: 15px;
}

.titulos1-rd-icon {
    width: 40px;
    height: 40px;
    fill: var(--color-red);
}

.titulos1-rd-title {
    color: var(--color-blue);
    font-size: 2rem;
    line-height: 1.3;
    max-width: 850px; /* Fuerza el salto a dos líneas de forma natural */
    margin: 0 auto 20px auto;
    font-weight: 700;
}

.titulos1-rd-divider {
    width: 200px;
    height: 3px;
    background-color: var(--color-red);
    border: none;
    margin: 0 auto;
}

/* ==========================================
   SECCIÓN 2: TÍTULO SERVICIOS (.titulo-servicios-rd)
========================================== */
.carrusel-servcios-rd-section {
    padding: 60px 0;
    width: 100%;
}

.titulo-servicios-rd-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.titulo-servicios-rd-icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--color-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.titulo-servicios-rd-icon-box svg {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

.titulo-servicios-rd-text {
    color: var(--color-blue);
    font-size: 1.6rem;
    font-weight: 700;
    white-space: nowrap;
}

.titulo-servicios-rd-line {
    flex-grow: 1; /* Ocupa todo el espacio restante */
    height: 1px;
    background-color: var(--color-blue);
}

/* ==========================================
   CARRUSEL SERVICIOS (.carrusel-servcios-rd)
========================================== */
.carrusel-servcios-rd-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Para que las flechas puedan estar fuera sin desbordar la ventana */
.carrusel-servcios-rd-section {
    overflow-x: hidden;
}

/* Slides de igual altura */
.carrusel-servcios-rd-swiper .swiper-slide {
    height: auto; 
}

.carrusel-servcios-rd-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.carrusel-servcios-rd-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Efecto Zoom en Imagen */
.carrusel-servcios-rd-img-box {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.carrusel-servcios-rd-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.carrusel-servcios-rd-card:hover .carrusel-servcios-rd-img-box img {
    transform: scale(1.1);
}

/* Contenido de la tarjeta */
.carrusel-servcios-rd-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.carrusel-servcios-rd-title {
    color: var(--color-blue);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.carrusel-servcios-rd-desc {
    color: var(--color-black);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Acciones y Botones */
.carrusel-servcios-rd-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Tema Rojo para Botón */
.carrusel-servcios-rd-theme-red {
    --btn-color: var(--color-red);
}

/* Tema Azul para Botón */
.carrusel-servcios-rd-theme-blue {
    --btn-color: var(--color-blue);
}

.carrusel-servcios-rd-btn-quote {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    border: 2px solid var(--btn-color);
    background: var(--color-white);
    color: var(--btn-color);
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.carrusel-servcios-rd-btn-quote:hover {
    background: var(--btn-color);
    color: var(--color-white);
}

.carrusel-servcios-rd-btn-link {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-blue);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background 0.3s;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.carrusel-servcios-rd-btn-link:hover {
    background: var(--color-blue-dark);
    transform: translateY(-4px); 
}

/* Flechas de Navegación PC (Personalizadas con FontAwesome) */
.carrusel-servcios-rd-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--color-white);
    color: var(--color-blue);
    border: 2px solid var(--color-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s;
}

.carrusel-servcios-rd-nav:hover {
    background: var(--color-blue);
    color: var(--color-white);
}

/* Ubicación fuera del 1200px. Aparecen al hacer hover en el wrapper general */
.carrusel-servcios-rd-nav.prev { left: -60px; }
.carrusel-servcios-rd-nav.next { right: -60px; }
.carrusel-servcios-rd-wrapper:hover .carrusel-servcios-rd-nav { opacity: 1; }

/* Paginación Móvil */
.carrusel-servcios-rd-pagination {
    display: none;
    position: relative;
    margin-top: 20px;
}
.carrusel-servcios-rd-pagination .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}
.carrusel-servcios-rd-pagination .swiper-pagination-bullet-active {
    background: var(--color-blue);
}

/* RESPONSIVE */
@media (max-width: 1350px) {
    /* Si la pantalla es menor a 1350, metemos las flechas dentro para que no se oculten */
    .carrusel-servcios-rd-nav.prev { left: 10px; }
    .carrusel-servcios-rd-nav.next { right: 10px; }
}

@media (max-width: 991px) {
    .titulos1-rd-title { font-size: 1.8rem; }
    .titulo-servicios-rd-text { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .titulo-servicios-rd-header {
        flex-direction: column;
        text-align: center;
    }
    .titulo-servicios-rd-line { display: none; }
    .carrusel-servcios-rd-nav { display: none !important; } /* Ocultar flechas en móvil */
    .carrusel-servcios-rd-pagination { display: block; } /* Mostrar puntos en móvil */
    .carrusel-servcios-rd-actions { flex-direction: column; }
    .carrusel-servcios-rd-btn-quote { width: 100%; }
}
/* ==========================================
   SECCIÓN 3: SERVICIOS ADICIONALES
========================================== */
.servicios-adicionales-rd-wrapper {
    width: 100%;
    padding: 60px 0;
    background-color: #f7f9fb;
}

/* Sistema de 2 columnas con CSS Grid */
.servicios-adicionales-rd-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Tarjeta Principal */
.servicios-adicionales-rd-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Imagen de fondo absoluta */
.servicios-adicionales-rd-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.5s ease; /* Transición suave */
}
.servicios-adicionales-rd-card:hover .servicios-adicionales-rd-bg {
    transform: scale(1.08);
}

/* Capa de Degradado Horizontal (Blanco sólido hasta 40%, luego transparente) */
.servicios-adicionales-rd-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 40%, rgba(255, 255, 255, 0) 60%);
    z-index: 2;
}

/* Contenedor de Textos (50% del ancho para ubicarse sobre el blanco) */
.servicios-adicionales-rd-content {
    position: relative;
    z-index: 3;
    width: 50%; /* Abarca la mitad como solicitaste */
    padding: 30px;
}

/* Título e Icono (Enlaces) */
.servicios-adicionales-rd-title-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

/* Efecto Hover en la tarjeta principal -> Mueve el título */
.servicios-adicionales-rd-card:hover .servicios-adicionales-rd-title-link {
    transform: translateX(10px);
}

.servicios-adicionales-rd-icon {
    width: 45px;
    height: 45px;
    background-color: var(--color-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.servicios-adicionales-rd-icon svg {
    width: 34px;
    height: 34px;
    color: var(--color-white);
}

.servicios-adicionales-rd-title {
    color: var(--color-black);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Párrafo */
.servicios-adicionales-rd-desc {
    color: var(--color-black);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Override para alinear a la izquierda los botones reciclados del carrusel */
.servicios-adicionales-rd-actions-left {
    justify-content: flex-start !important; 
}


/* ==========================================
   RESPONSIVE SERVICIOS ADICIONALES
========================================== */
@media (max-width: 1024px) {
    /* En tablets, extendemos un poco el área de texto */
    .servicios-adicionales-rd-content {
        width: 60%;
    }
    .servicios-adicionales-rd-overlay {
        background: linear-gradient(to right, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
    }
    
}

@media (max-width: 768px) {
    /* En móviles, 1 sola columna y el texto abarca más espacio */
    .servicios-adicionales-rd-container {
        grid-template-columns: 1fr;
    }
    
    
    .servicios-adicionales-rd-content {
        width: 80%; /* Para que lea bien en móvil */
        padding: 20px;
    }
    .servicios-adicionales-rd-card {
        align-items: flex-end; 
        min-height: 420px; /* Damos altura para que la imagen se luzca arriba */
    }
    .servicios-adicionales-rd-overlay {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 1) 65%, rgba(255, 255, 255, 1) 100%);
    }
    .servicios-adicionales-rd-content {
        width: 100%; 
        padding: 40px 20px 25px 20px;
    }
}
/* ==========================================
   SECCIÓN 4: FORTALEZAS
========================================== */
.fortalezas-rd-wrapper {
    width: 100%;
    padding: 70px 0;
    background-color: var(--color-white);
}

.fortalezas-rd-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Columna Imagen */
.fortalezas-rd-col-img {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
}

.fortalezas-rd-col-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Columna Textos */
.fortalezas-rd-col-text {
    flex: 1;
}

.fortalezas-rd-title {
    color: var(--color-blue);
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.fortalezas-rd-desc {
    color: var(--color-black);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Grid de Listas (2x2) */
.fortalezas-rd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px; /* Separación vertical y horizontal */
}

.fortalezas-rd-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.fortalezas-rd-icon {
    width: 22px;
    color: var(--color-red);
    flex-shrink: 0;
    margin-top: 2px; /* Alineación fina con el título */
}

.fortalezas-rd-icon svg {
    width: 100%;
    height: auto;
}

.fortalezas-rd-item-title {
    color: var(--color-blue);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.fortalezas-rd-item-desc {
    color: var(--color-black);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ==========================================
   SECCIÓN 5: LLAMADO A LA ACCIÓN (CTA)
========================================== */
.cta-rd-main-wrapper {
    margin-bottom: 70px;
}
.mt1{
    margin-top: 70px;
}
.cta-rd-container {
    background-color: var(--color-blue);
    border-radius: 12px;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cta-rd-col {
    display: flex;
    align-items: center;
}

.cta-rd-text-main {
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Divisor central */
.cta-rd-divider {
    width: 2px;
    height: 40px; /* No abarca toda la altura */
    background-color: rgba(255, 255, 255, 0.4);
}

.cta-rd-operador {
    gap: 15px;
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Icono Operador (Fondo blanco, icono azul) */
.cta-rd-icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-blue);
    flex-shrink: 0;
}

.cta-rd-icon-box svg {
    width: 36px; /* Icono más grande que el texto */
    height: 36px;
}

/* Botones WhatsApp CTA */
.cta-rd-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Efecto hover: mover hacia arriba y oscurecer */
.cta-rd-btn:hover {
    transform: translateY(-4px); 
}

/* Colores específicos de cada botón */
.cta-rd-btn-blue {
    background-color: #0076db; /* Azul más claro */
    color: var(--color-white);
}
.cta-rd-btn-blue:hover {
    background-color: #005bb5;
}

.cta-rd-btn-red {
    background-color: var(--color-red);
    color: var(--color-white);
}
.cta-rd-btn-red:hover {
    background-color: #cc0000;
}

.cta-rd-btn i {
    font-size: 36px; /* Icono FontAwesome WhatsApp */
}

.cta-rd-btn-text {
    display: flex;
    flex-direction: column;
}

.cta-rd-small {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.cta-rd-big {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.1;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1024px) {
    .cta-rd-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .cta-rd-divider {
        display: none; /* Ocultamos el divisor en tablet/móvil */
    }
}

@media (max-width: 768px) {
    /* Fortalezas: Textos arriba, Imagen abajo (Reverse) */
    .fortalezas-rd-container {
        flex-direction: column-reverse;
    }
    .fortalezas-rd-grid {
        grid-template-columns: 1fr; /* 1 sola columna de listas */
    }
    
    /* CTA: Apilado verticalmente */
    .cta-rd-container {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .cta-rd-operador {
        flex-direction: column;
        margin: 15px 0;
    }
    .cta-rd-btn {
        width: 100%;
        justify-content: center;
    }
}
/* ==========================================
   FOOTER
========================================== */
.footer-rd-wrapper {
    background-color: var(--color-blue);
    color: var(--color-white);
    padding: 60px 0 20px 0;
    width: 100%;
}

/* --- Sección Superior (4 Columnas) --- */
.footer-rd-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

/* Títulos con Línea Roja 50% */
.footer-rd-title {
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.footer-rd-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35%;
    height: 2px;
    background-color: var(--color-red);
}

/* Columna 1: Logo y Textos */
.footer-rd-logo-box {
    text-align: center;
    margin-bottom: 20px;
}

.footer-rd-logo {
    max-width: 180px;
    height: auto;
}

.footer-rd-desc {
    font-size: 0.7rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-rd-readmore {
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-rd-readmore:hover {
    color: var(--color-red);
}

/* Columnas 2 y 3: Listas de Enlaces y Contactos */
.footer-rd-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-rd-list li {
    margin-bottom: 12px;
}

.footer-rd-list a {
    color: var(--color-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Efecto hover: Deslizamiento a la derecha */
.footer-rd-list a:hover {
    transform: translateX(8px);
    color: rgba(255, 255, 255, 0.8);
}

.footer-rd-list a i {
    font-size: 1.1rem;
    width: 16px; /* Ancho fijo para alinear textos */
    text-align: center;
}

/* Columna 4: Etiquetas SEO */
.footer-rd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-rd-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1); /* Blanco transparente */
    border: 1px solid #006fb9;
    color: var(--color-white);
    text-decoration: none;
    padding: 5px 5px;
    border-radius: 20px; /* Bordes redondeados */
    font-size: 0.7rem;
    text-align: center;
    transition: background-color 0.3s ease;
}

.footer-rd-tag:hover {
    background-color: #006fb9;
}

/* --- Línea Divisora --- */
.footer-rd-divider {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 0 20px 0;
}

/* --- Sección Inferior (2 Columnas) --- */
.footer-rd-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-rd-developer a {
    color: var(--color-white);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-rd-developer a:hover {
    color: var(--color-red);
}

/* ==========================================
   RESPONSIVE FOOTER
========================================== */
@media (max-width: 991px) {
    /* Tablet: 2 columnas en la parte superior */
    .footer-rd-top {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-rd-logo-box {
        text-align: left; /* Alineamos a la izquierda para mantener la estructura de grid */
    }
}

@media (max-width: 576px) {
    /* Móvil: 1 columna en todo */
    .footer-rd-top {
        grid-template-columns: 1fr;
    }
    
    .footer-rd-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
/* ==========================================
   BANNER PÁGINAS INTERIORES
========================================== */
.banner-int-rd-wrapper {
    position: relative;
    width: 100%;
    min-height: 280px; /* Altura base del banner */
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 40px 0;
}

/* Imagen de Fondo */
.banner-int-rd-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-int-rd-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay Azul Oscuro (Basado en la imagen) */
.banner-int-rd-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(14, 46, 80, 0.85); /* Azul corporativo oscuro con transparencia */
    z-index: 2;
}

/* Contenedor y Contenido */
.banner-int-rd-container {
    position: relative;
    z-index: 3;
}

.banner-int-rd-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Tagline */
.banner-int-rd-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #4ade80; /* Tono verde/cian de la imagen */
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.banner-int-rd-tagline i {
    font-size: 1rem;
}

/* Título */
.banner-int-rd-title {
    color: var(--color-white);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Breadcrumbs (Migas de pan) */
.banner-int-rd-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.banner-int-rd-crumb-link {
    color: var(--color-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.banner-int-rd-crumb-link:hover {
    color: #4ade80; /* Mismo color del tagline al hacer hover */
}

.banner-int-rd-crumb-sep {
    font-size: 0.75rem;
    opacity: 0.7;
}

.banner-int-rd-crumb-current {
    font-weight: 600;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 768px) {
    .banner-int-rd-wrapper {
        min-height: 220px;
        padding: 30px 0;
    }
    
    .banner-int-rd-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .banner-int-rd-tagline {
        font-size: 0.7rem;
        margin-bottom: 15px;
    }
    
    .banner-int-rd-breadcrumbs {
        font-size: 0.85rem;
    }
}
/* ==========================================
   VARIABLES ESPECÍFICAS DE SOMBRAS
========================================== */
:root {
    --shadow-default: 0 1px 2px 0 rgb(0 0 0 / 0.05); /* Sombra derecha y abajo */
    --shadow-hover: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);    /* Sombra 4 lados suave */
}

/* ==========================================
   ESTRUCTURA GENERAL "NOSOTROS"
========================================== */
.nosotros-rd-section {
    padding: 70px 0;
    width: 100%;
}
.nosotros-rd-bg-white { background-color: var(--color-bg1); }
.nosotros-rd-bg-gray { background-color: #f0f4f8; }

/* Efecto Hover en Imágenes ligado al contenedor de 1200px */
.nosotros-rd-col-img, .nosotros-rd-large-img {
    overflow: hidden;
    border-radius: 12px;
}
.nosotros-rd-img-zoom {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
/* Trigger en el contenedor: */
.nosotros-rd-hover-trigger:hover .nosotros-rd-img-zoom {
    transform: scale(1.06);
}

/* Tipografía Compartida */
.nosotros-rd-subtitle {
    display: block;
    color: var(--color-blue);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.nosotros-rd-title {
    color: var(--color-black); /* O azul oscuro según imagen */
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}
.nosotros-rd-desc {
    color: #4a4a4a;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}
.nosotros-rd-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}
.nosotros-rd-desc-center {
    color: #4a4a4a;
    font-size: 1.1rem;
}

/* Grillas */
.nosotros-rd-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}
.nosotros-rd-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* ==========================================
   SECCIÓN 1: ETIQUETAS DE SECTORES
========================================== */
.nosotros-rd-tags-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--color-blue);
    margin-bottom: 15px;
}
.nosotros-rd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.nosotros-rd-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #edf2f7;
    color: var(--color-blue);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
.nosotros-rd-tag .material-symbols-outlined {
    font-size: 1.1rem;
}

/* ==========================================
   SECCIÓN 2: TARJETAS MISIÓN Y VISIÓN
========================================== */
.nosotros-rd-card-mv {
    background: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    border-left: 6px solid var(--color-blue);
    box-shadow: var(--shadow-default);
    transition: box-shadow 0.3s ease; /* Solo sombra, sin movimiento vertical */
}
.nosotros-rd-card-mv:hover {
    box-shadow: var(--shadow-hover);
}
.nosotros-rd-card-icon {
    width: 50px;
    height: 50px;
    background-color: #e6f0fa;
    color: var(--color-blue);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
.nosotros-rd-card-title {
    color: var(--color-black);
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.nosotros-rd-card-desc {
    color: #4a4a4a;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   SECCIÓN 3: TARJETA GRANDE POLÍTICA
========================================== */
.nosotros-rd-card-large {
    display: flex;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-default);
    transition: box-shadow 0.3s ease;
}
.nosotros-rd-card-large:hover {
    box-shadow: var(--shadow-hover);
}
.nosotros-rd-large-content {
    flex: 1.2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.nosotros-rd-tag-green {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #e6f7ef;
    color: #10b981; /* Verde */
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.nosotros-rd-tag-green .material-symbols-outlined { font-size: 1.1rem; }
.nosotros-rd-large-img {
    flex: 1;
    border-radius: 0 12px 12px 0;
}

/* ==========================================
   SECCIÓN 4: TARJETAS VALORES
========================================== */
.nosotros-rd-card-val {
    background: var(--color-white);
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-default);
    transition: box-shadow 0.3s ease, transform 0.3s ease; /* Sombra + Movimiento Vertical */
}
.nosotros-rd-card-val:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}
.nosotros-rd-val-icon {
    width: 40px;
    height: 40px;
    background-color: #e6f0fa;
    color: var(--color-blue);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}
.nosotros-rd-val-title {
    color: var(--color-black);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.nosotros-rd-val-desc {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1024px) {
    .nosotros-rd-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .nosotros-rd-grid-2 {
        grid-template-columns: 1fr;
    }
    .nosotros-rd-card-large {
        flex-direction: column;
    }
    .nosotros-rd-large-img {
        border-radius: 0 0 12px 12px;
        min-height: 250px;
    }
    .nosotros-rd-large-content {
        padding: 30px 20px;
    }
    .nosotros-rd-title {
        font-size: 1.8rem;
    }
}
@media (max-width: 480px) {
    .nosotros-rd-grid-4 {
        grid-template-columns: 1fr;
    }
}
/* ==========================================
   BOTONES DE ACCIÓN (PÁGINAS DE SERVICIOS)
========================================== */
.servicio-int-rd-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.servicio-int-rd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.servicio-int-rd-btn .material-symbols-outlined {
    font-size: 1.2rem;
}

/* Botón Outline Azul */
.servicio-int-rd-btn-outline {
    border: 1px solid var(--color-blue);
    color: var(--color-white);
    background: var(--color-blue);
    /*background: transparent;*/
    transition: all 0.3s ease;
}
.servicio-int-rd-btn-outline:hover {
    background: var(--color-red);
    border: 1px solid var(--color-red);
    color: var(--color-white);
    transform: translateY(-4px);
}

/* Botón Sólido Rojo */
.servicio-int-rd-btn-solid {
    border: 1px solid var(--color-red);
    background: transparent;
    /*background: var(--color-red);*/
    color: var(--color-red);
    transition: all 0.3s ease;
}
.servicio-int-rd-btn-solid:hover {
    background: #cc0000;
    border-color: #cc0000;
    transform: translateY(-4px);
    color: var(--color-white);
}
.linea-separador{
    height: 1px;
    width: 70%;
    margin-top: 30px;
    margin-bottom: 30px;
    background: #e1e1e1;
}
/* ==========================================
   LISTA 1: TIPOS DE MUEBLES (Líneas Divisorias)
========================================== */
.servicio-int-rd-list-line {
    display: flex;
    flex-direction: column;
}

.servicio-int-rd-item-line {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    cursor: default;
}

.servicio-int-rd-item-line:last-child {
    border-bottom: none;
}

/* Icono default: fondo gris/celeste claro, color azul */
.servicio-int-rd-icon-line {
    width: 45px;
    height: 45px;
    background: #f0f4f8; 
    color: var(--color-blue);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Efecto hover: El icono cambia a fondo azul oscuro y color blanco */
.servicio-int-rd-item-line:hover .servicio-int-rd-icon-line {
    background: var(--color-blue);
    color: var(--color-white);
}

.servicio-int-rd-text-line h4 {
    color: var(--color-black);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 5px;
    margin-top: 2px;
}

.servicio-int-rd-text-line p {
    color: #4a4a4a;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================
   LISTA 2: ¿POR QUÉ ELEGIRNOS? (Cajas con hover de fondo)
========================================== */
.servicio-int-rd-list-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.servicio-int-rd-item-box {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    transition: background 0.3s ease;
    cursor: default;
}

/* Efecto hover: El fondo de la caja entera se vuelve gris/celeste claro */
.servicio-int-rd-item-box:hover {
    background: #f0f4f8; 
}

.servicio-int-rd-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* Colores específicos para los iconos de la segunda lista */
.bg-dark-blue { 
    background: var(--color-blue); 
    color: var(--color-white); 
}
.bg-light-green { 
    background: #e6f7ef; 
    color: #10b981 !important; 
}
.bg-light-blue { 
    background: #e6f0fa; 
    color: var(--color-blue) !important; 
}

.servicio-int-rd-text-box h4 {
    color: var(--color-black);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 5px;
    margin-top: 2px;
}

.servicio-int-rd-text-box p {
    color: #4a4a4a;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================
   RESPONSIVE ESPECÍFICO SERVICIOS
========================================== */
@media (max-width: 768px) {
    .servicio-int-rd-actions {
        flex-direction: column;
    }
    .servicio-int-rd-btn {
        width: 100%;
        justify-content: center;
    }
}
/* ==========================================
   CLASES ESPECÍFICAS PARA RETARDANTE DE FUEGO
========================================== */

/* Badge Flotante en Imágenes */
.retardante-rd-img-wrapper {
    position: relative;
    overflow: visible; /* Permite que el badge sobresalga un poco si es necesario */
}
.retardante-rd-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--color-white);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 5;
    max-width: 85%;
    transition: transform 0.3s ease;
}
.retardante-rd-img-wrapper:hover .retardante-rd-badge {
    transform: translateY(-5px);
}
.retardante-rd-badge-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.retardante-rd-badge-text strong {
    display: block;
    color: var(--color-black);
    font-size: 1.05rem;
    margin-bottom: 3px;
}
.retardante-rd-badge-text span {
    display: block;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Grilla de 3 Columnas */
.retardante-rd-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Tarjetas Pequeñas */
.retardante-rd-small-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--color-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-default);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
/* En fondo gris, las tarjetas se ven blancas. Si el fondo es blanco, las tarjetas serán gris claro */
.nosotros-rd-bg-white .retardante-rd-small-card {
    background: #f7f9fb;
    box-shadow: none;
    border: 1px solid #eee;
}
.retardante-rd-small-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}
.retardante-rd-small-icon {
    width: 40px;
    height: 40px;
    background: #e6f0fa;
    color: var(--color-blue);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.retardante-rd-small-text h4 {
    color: var(--color-black);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.retardante-rd-small-text p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Lista de Pasos (Métodos) */
.retardante-rd-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.retardante-rd-step-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--color-white);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: background 0.3s ease;
}
.retardante-rd-step-card:hover {
    background: #f0f4f8;
}
.retardante-rd-step-num {
    background: var(--color-blue);
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 10px 12px;
    border-radius: 6px;
    flex-shrink: 0;
}
.retardante-rd-step-text h4 {
    color: var(--color-black);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 3px;
}
.retardante-rd-step-text p {
    color: #555;
    font-size: 0.9rem;
    margin: 0;
}

/* CTA Oscuro (Certificación) */
.retardante-rd-cta-dark {
    background-color: #051b34; /* Azul extra oscuro */
    padding: 80px 0;
    width: 100%;
}
.retardante-rd-cta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.retardante-rd-cta-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-white);
    font-size: 0.85rem;
}
.retardante-rd-cta-tags .material-symbols-outlined {
    font-size: 1.1rem;
    color: #4ade80; /* Verde check */
}
.retardante-rd-cta-actions {
    display: flex;
    flex-direction: column;
    max-width: 350px;
    margin-left: auto;
    width: 100%;
}
/* ==========================================
   BOTONES DEL CTA OSCURO (RETARDANTE)
========================================== */
.retardante-rd-cta-btn-primary {
    background-color: #0076db;
    color: var(--color-white);
    width: 100%;
    justify-content: center;
    border: 2px solid #0076db; /* Borde para igualar la altura con el botón outline */
    margin-bottom: 15px;
}

/* Efecto hover: Cambio de color a un azul más oscuro y movimiento hacia arriba */
.retardante-rd-cta-btn-primary:hover {
    background-color: #005bb5; 
    border-color: #005bb5;
    transform: translateY(-4px);
}

.retardante-rd-cta-btn-outline {
    background-color: transparent;
    color: var(--color-white);
    width: 100%;
    justify-content: center;
    border: 2px solid var(--color-white);
}

/* Efecto hover: Fondo blanco puro, texto azul oscuro y movimiento hacia arriba */
.retardante-rd-cta-btn-outline:hover {
    background-color: var(--color-white);
    color: #051b34; /* Toma el color del fondo oscuro para contrastar */
    transform: translateY(-4px);
}
/* ==========================================
   RESPONSIVE RETARDANTE
========================================== */
@media (max-width: 1024px) {
    .retardante-rd-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .retardante-rd-grid-3 {
        grid-template-columns: 1fr;
    }
    .retardante-rd-badge {
        bottom: -15px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    .retardante-rd-cta-actions {
        margin-left: 0;
        margin-top: 30px;
        max-width: 100%;
    }
}
.retardante-rd-img-inner {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative; 
}

.retardante-rd-img-inner img {
    display: block; /* Elimina márgenes fantasma */
}
/* ==========================================
   PÁGINA CLIENTES
========================================== */
.clientes-rd-wrapper {
    width: 100%;
    padding: 60px 0;
    background-color: #f7f9fb;
}

/* Layout de 2 Columnas */
.clientes-rd-layout {
    display: grid;
    grid-template-columns: 300px 1fr; /* Columna 1 angosta, Columna 2 abarca el resto */
    gap: 40px;
    align-items: start;
}

/* --- MENÚ LATERAL (Columna 1) --- */
.clientes-rd-sidebar {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: sticky;
    top: 20px; /* Hace que el menú se quede pegado al hacer scroll */
}

.clientes-rd-sidebar-title {
    color: var(--color-blue);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #edf2f7;
}

.clientes-rd-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.clientes-rd-menu li {
    padding: 12px 15px;
    color: #4a4a4a;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.clientes-rd-menu li i {
    color: var(--color-blue);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: color 0.3s ease;
}

.clientes-rd-menu li:hover {
    background-color: #f0f4f8;
    color: var(--color-blue);
}

.clientes-rd-menu li.active {
    background-color: var(--color-blue);
    color: var(--color-white);
}

.clientes-rd-menu li.active i {
    color: var(--color-white);
}

/* --- CONTENIDO Y GRID (Columna 2) --- */
.clientes-rd-header {
    margin-bottom: 30px;
}

.clientes-rd-title {
    color: var(--color-blue);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    transition: opacity 0.3s ease;
}

.clientes-rd-divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-red);
    border: none;
    margin: 0;
}

.clientes-rd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en PC/Tablet */
    gap: 25px;
}

/* Tarjetas de Clientes */
.clientes-rd-card {
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #edf2f7;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeInCliente 0.5s ease forwards;
}

.clientes-rd-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.clientes-rd-logo-box {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.clientes-rd-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.clientes-rd-card:hover .clientes-rd-logo-box img {
    filter: grayscale(0%);
    opacity: 1;
}

.clientes-rd-name {
    color: var(--color-black);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Clase para ocultar tarjetas mediante JS */
.clientes-rd-hidden {
    display: none !important;
}

/* Animación de aparición al filtrar */
@keyframes fadeInCliente {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================
   RESPONSIVE CLIENTES (CORREGIDO)
========================================== */
@media (max-width: 991px) {
    .clientes-rd-layout {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .clientes-rd-layout {
        grid-template-columns: 1fr; /* Apila menú arriba, clientes abajo */
        width: 100%; /* Asegura que el layout no supere la pantalla */
    }
    
    .clientes-rd-sidebar {
        position: static;
        padding: 20px 15px; /* Reducimos un poco el padding lateral */
    }

    /* Menú lateral: formato píldoras adaptables (Wrap) */
    .clientes-rd-menu {
        flex-direction: row;
        flex-wrap: wrap; /* Permite que los items bajen a la siguiente línea */
        white-space: normal; /* Evita que el texto fuerce una sola línea */
        gap: 10px;
    }
    
    .clientes-rd-menu li {
        flex: 1 1 auto; 
        justify-content: flex-start; /* Alinea el icono y texto a la izquierda */
        text-align: left;            /* Alinea el texto a la izquierda */
        padding: 10px 15px;          /* Un poco más de padding lateral para que no quede pegado al borde */
        font-size: 0.85rem; 
    }

    /* Grid Clientes: 2 columnas forzadas en Tablet/Móvil horizontal */
    .clientes-rd-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Ajustes extremos para móviles pequeños (asegura 2 columnas sin desborde) */
    .clientes-rd-grid {
        gap: 12px; /* Reducimos la separación entre columnas */
    }
    
    .clientes-rd-card {
        padding: 15px 10px; /* Reducimos padding interno de la tarjeta */
        min-width: 0; /* Evita que un texto muy largo estire la tarjeta */
    }
    
    .clientes-rd-logo-box {
        width: 70px; /* Logo más pequeño para que entren 2 cómodamente */
        height: 70px;
        margin-bottom: 10px;
    }
    
    .clientes-rd-name {
        font-size: 0.85rem; /* Reducimos el tamaño de la fuente */
        word-wrap: break-word; /* Fuerza el salto de línea si una palabra es muy larga */
        line-height: 1.2;
    }
}
/* ==========================================
   PÁGINA TRABAJOS REALIZADOS
========================================== */
.trabajos-rd-wrapper {
    width: 100%;
    padding: 60px 0;
    background-color: #f7f9fb;
}

/* Layout y Sidebar (Misma estructura que clientes) */
.trabajos-rd-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.trabajos-rd-sidebar {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: sticky;
    top: 20px;
}

.trabajos-rd-sidebar-title {
    color: var(--color-blue);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #edf2f7;
}

.trabajos-rd-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trabajos-rd-menu li {
    padding: 12px 15px;
    color: #4a4a4a;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.trabajos-rd-menu li i {
    color: var(--color-blue);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: color 0.3s ease;
}

.trabajos-rd-menu li:hover {
    background-color: #f0f4f8;
    color: var(--color-blue);
}

.trabajos-rd-menu li.active {
    background-color: var(--color-blue);
    color: var(--color-white);
}

.trabajos-rd-menu li.active i {
    color: var(--color-white);
}

/* --- CONTENIDO Y GRID --- */
.trabajos-rd-header {
    margin-bottom: 30px;
}

.trabajos-rd-title {
    color: var(--color-blue);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    transition: opacity 0.3s ease;
}

.trabajos-rd-divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-red);
    border: none;
    margin: 0;
}

.trabajos-rd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;
}

/* Tarjetas y Efecto Overlay */
.trabajos-rd-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    animation: fadeInTrabajo 0.5s ease forwards;
}

.trabajos-rd-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* Proporción uniforme para todas las imágenes */
    overflow: hidden;
}

.trabajos-rd-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Overlay Oscuro */
.trabajos-rd-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 90, 169, 0.85); /* Azul con transparencia */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hover en la Tarjeta */
.trabajos-rd-card:hover .trabajos-rd-img-box img {
    transform: scale(1.1);
}
.trabajos-rd-card:hover .trabajos-rd-overlay {
    opacity: 1;
}

/* Iconos Sociales y Zoom */
.trabajos-rd-social {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    transform: translateY(15px);
    transition: transform 0.3s ease;
}
.trabajos-rd-card:hover .trabajos-rd-social {
    transform: translateY(0);
}

.trabajos-rd-btn-share,
.trabajos-rd-btn-zoom {
    background: var(--color-white);
    color: var(--color-blue);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.trabajos-rd-btn-share:hover,
.trabajos-rd-btn-zoom:hover {
    background: var(--color-red);
    color: var(--color-white);
    transform: translateY(-3px);
}

.trabajos-rd-name {
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 600;
    transform: translateY(15px);
    transition: transform 0.3s ease;
}
.trabajos-rd-card:hover .trabajos-rd-name {
    transform: translateY(0);
}

.trabajos-rd-hidden {
    display: none !important;
}

@keyframes fadeInTrabajo {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================
   LIGHTBOX NATIVO
========================================== */
.trabajos-rd-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.trabajos-rd-lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trabajos-rd-lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

.trabajos-rd-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.trabajos-rd-lightbox-close:hover {
    color: var(--color-red);
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================
   RESPONSIVE TRABAJOS
========================================== */
@media (max-width: 991px) {
    .trabajos-rd-layout { grid-template-columns: 250px 1fr; gap: 30px; }
    .trabajos-rd-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .trabajos-rd-layout { grid-template-columns: 1fr; width: 100%; }
    .trabajos-rd-sidebar { position: static; padding: 20px 15px; }
    .trabajos-rd-menu { flex-direction: row; flex-wrap: wrap; white-space: normal; gap: 10px; }
    .trabajos-rd-menu li { flex: 1 1 auto; justify-content: flex-start; text-align: left; padding: 10px 15px; font-size: 0.85rem; }
    .trabajos-rd-grid { grid-template-columns: repeat(2, 1fr); width: 100%; }
}
@media (max-width: 480px) {
    .trabajos-rd-grid { grid-template-columns: 1fr; gap: 15px; } /* 1 Columna en móvil pequeño para ver bien las fotos */
}
/* ==========================================
   PÁGINA DE CONTACTOS
========================================== */
.contacto-rd-wrapper {
    width: 100%;
    padding: 60px 0;
    background-color: #f7f9fb;
}

/* Layout Principal */
.contacto-rd-layout {
    display: grid;
    grid-template-columns: 4fr 6fr; /* Columna izquierda (40%), Derecha (60%) */
    gap: 30px;
    align-items: start;
}

/* --- TARJETAS GLOBALES --- */
.contacto-rd-card {
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 25px;
}

.contacto-rd-card-white {
    background-color: var(--color-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.contacto-rd-card-dark {
    background-color: #051b34;
    color: var(--color-white);
}

/* Etiquetas y Títulos Generales */
.contacto-rd-tag {
    display: block;
    color: var(--color-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.contacto-rd-tag-green {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.contacto-rd-tag-green .material-symbols-outlined { font-size: 1rem; }

.contacto-rd-title {
    color: var(--color-black);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
}

/* --- COLUMNA IZQUIERDA (Info) --- */
.contacto-rd-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.contacto-rd-header-icon {
    width: 40px;
    height: 40px;
    background-color: #f0f4f8;
    color: var(--color-blue);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contacto-rd-info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.contacto-rd-info-item {
    display: flex;
    gap: 15px;
}

.contacto-rd-icon {
    color: var(--color-blue);
    margin-top: 2px;
}

.contacto-rd-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.contacto-rd-value {
    color: var(--color-black);
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 4px;
}

.contacto-rd-small-light {
    color: #777;
    font-weight: 400;
}

.contacto-rd-note {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 0.8rem;
}

.contacto-rd-note .material-symbols-outlined { font-size: 0.9rem; }

.contacto-rd-badge-green {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #e6f7ef;
    color: #10b981;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 5px;
}

.contacto-rd-badge-green .material-symbols-outlined { font-size: 0.6rem; }

/* Redes Sociales Contacto */
.contacto-rd-social-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.contacto-rd-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.contacto-rd-social-icons a {
    width: 35px;
    height: 35px;
    background-color: #f0f4f8;
    color: var(--color-black);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contacto-rd-social-icons a:hover {
    background-color: var(--color-blue);
    color: var(--color-white);
}

/* Tarjeta Oscura */
.contacto-rd-dark-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.contacto-rd-dark-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.contacto-rd-dark-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
}

/* --- COLUMNA DERECHA (Formulario) --- */
.contacto-rd-subtitle {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.contacto-rd-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contacto-rd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contacto-rd-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 8px;
}

.contacto-rd-input-group label span {
    color: var(--color-red);
}

.contacto-rd-input-wrapper {
    position: relative;
    width: 100%;
}

.contacto-rd-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2rem;
}

.contacto-rd-textarea-icon {
    top: 15px;
    transform: none;
}

.contacto-rd-input-wrapper input,
.contacto-rd-input-wrapper select,
.contacto-rd-input-wrapper textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: var(--color-white);
    padding: 12px 15px 12px 45px; /* Espacio para el icono a la izquierda */
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--color-black);
    transition: border-color 0.3s ease;
}

.contacto-rd-input-wrapper select {
    appearance: none; /* Limpia el estilo del navegador */
    cursor: pointer;
}

.contacto-rd-input-wrapper input:focus,
.contacto-rd-input-wrapper select:focus,
.contacto-rd-input-wrapper textarea:focus {
    outline: none;
    border-color: var(--color-blue);
}

/* CAPTCHA Matemático */
.contacto-rd-captcha-box {
    background-color: #f7f9fb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #edf2f7;
}

.contacto-rd-captcha-box label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.contacto-rd-captcha-box label small {
    font-weight: 400;
    color: #666;
}

.contacto-rd-captcha-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.contacto-rd-captcha-question {
    background-color: var(--color-white);
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-blue);
}

.contacto-rd-captcha-question .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--color-blue);
    cursor: pointer;
}

/* Legal y Botón */
.contacto-rd-legal {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
}

.contacto-rd-legal .material-symbols-outlined {
    font-size: 1rem;
    color: #999;
}

.contacto-rd-submit-btn {
    background-color: #051b34;
    color: var(--color-white);
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: max-content;
}

.contacto-rd-submit-btn:hover {
    background-color: var(--color-blue);
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 991px) {
    .contacto-rd-layout {
        grid-template-columns: 1fr; /* Apilado en tablet */
    }
    
    .contacto-rd-form-row, 
    .contacto-rd-captcha-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .contacto-rd-card {
        padding: 25px 20px;
    }
    
    .contacto-rd-submit-btn {
        width: 100%;
    }
}
/* ==========================================
   PÁGINA COTIZACIÓN
========================================== */
.cotizacion-rd-wrapper {
    width: 100%;
    padding: 60px 0;
    background-color: #f7f9fb;
}

.cotizacion-rd-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    align-items: start;
}

/* --- SIDEBAR: CARRITO DE SERVICIOS --- */
.cotizacion-rd-cart-box {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: sticky;
    top: 20px;
}

.cotizacion-rd-cart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-blue);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #edf2f7;
}

.cotizacion-rd-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cotizacion-rd-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f7f9fb;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #edf2f7;
    font-size: 0.95rem;
    color: var(--color-black);
    font-weight: 500;
}

.cotizacion-rd-btn-remove {
    background: transparent;
    border: none;
    color: #ff4d4f;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.cotizacion-rd-btn-remove:hover {
    transform: scale(1.1);
}

/* Estado de Carrito Vacío */
.cotizacion-rd-vacio {
    display: none;
    text-align: center;
    padding: 20px 0;
    color: #888;
}

.cotizacion-rd-vacio .material-symbols-outlined {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 10px;
}

.cotizacion-rd-btn-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--color-blue);
    text-decoration: underline;
    font-weight: 600;
}

/* --- FORMULARIO PRINCIPAL --- */
.cotizacion-rd-form-box {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.cotizacion-rd-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.cotizacion-rd-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    color: var(--color-white);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.cotizacion-rd-btn:hover {
    transform: translateY(-2px);
    filter: brightness(0.9);
}

.cotizacion-rd-btn-blue { background-color: #051b34; }
.cotizacion-rd-btn-green { background-color: #25D366; } /* Verde WhatsApp */

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 991px) {
    .cotizacion-rd-layout { grid-template-columns: 1fr; }
    .cotizacion-rd-cart-box { position: static; }
}
@media (max-width: 768px) {
    .cotizacion-rd-actions { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .cotizacion-rd-form-box { padding: 25px 20px; }
}
/* ==========================================
   MODAL DE COTIZACIÓN Y BOTÓN X
========================================== */
.cart-rd-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(5, 27, 52, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.cart-rd-modal-content {
    position: relative; /* Clave para posicionar la X */
    background-color: var(--color-white);
    padding: 35px 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    animation: popModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Botón X Flotante del Modal */
.cart-rd-modal-close-x {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    background: var(--color-white);
    color: var(--color-red);
    border: 2px solid var(--color-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.cart-rd-modal-close-x:hover {
    background: var(--color-red);
    color: var(--color-white);
    transform: scale(1.1);
}

.cart-rd-modal-content h3 {
    color: var(--color-black);
    font-size: 1.2rem;
    margin-bottom: 25px;
    line-height: 1.4;
}

.cart-rd-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@keyframes popModal {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================
   BARRA FLOTANTE INFERIOR (EFECTO CRISTAL)
========================================== */
.cart-rd-bottom-bar {
    position: fixed;
    bottom: 20px; /* Flotante sobre el final de la pantalla */
    left: 50%;
    width: calc(100% - 40px);
    max-width: 1200px;
    /* La animación se calcula en base al centro de la pantalla */
    transform: translate(-50%, 150%); 
    background: rgba(5, 27, 52, 0.75); /* Azul con transparencia */
    backdrop-filter: blur(10px); /* Desenfoque de fondo */
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    z-index: 99999; /* Asegura que ningún elemento bloquee el botón */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-rd-bottom-bar.active { 
    transform: translate(-50%, 0); 
}

.cart-rd-bottom-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-rd-btn-small {
    background: var(--color-red);
    color: var(--color-white);
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.cart-rd-btn-small:hover {
    background: #cc0000;
    color: var(--color-white);
}

/* Botón cerrar de la barra más visible */
#cart-rd-close-bar {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

#cart-rd-close-bar:hover {
    background: var(--color-red);
}

@media (max-width: 576px) {
    .cart-rd-bottom-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 15px;
    }
}
/* ==========================================
   BOTÓN COTIZAR EN EL HEADER
========================================== */
.cart-rd-header-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
    margin-left: 15px; /* Ajusta esto según el espacio con tu icono de WhatsApp */
}

.cart-rd-header-btn:hover {
    background-color: #cc0000;
    color: var(--color-white);
}

/* Ocultar elementos según el estado o dispositivo */
.cart-rd-hidden {
    display: none !important;
}

.cart-rd-mobile-wrapper {
    display: none; /* Oculto en PC */
}

/* Contador (Círculo azul) y Animación en PC */
.cart-rd-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #051b34; /* Azul corporativo oscuro */
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--color-white);
    /* Animación de latido/pulso constante para llamar la atención en PC */
    animation: pulseCounter 1.5s infinite;
}

@keyframes pulseCounter {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(5, 27, 52, 0.7); }
    50% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(5, 27, 52, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(5, 27, 52, 0); }
}

/* ==========================================
   RESPONSIVE: BOTÓN HEADER (MÓVIL)
========================================== */
@media (max-width: 768px) {
    .cart-rd-header-btn {
        padding: 0;
        width: 42px;
        height: 42px;
        border-radius: 50%; /* Lo convierte en un círculo rojo perfecto */
        justify-content: center;
        margin-left: 10px;
    }

    .cart-rd-desktop-text {
        display: none; /* Quitamos el texto en móvil */
    }

    .cart-rd-mobile-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        color: var(--color-white);
    }

    /* Animación de Campanada para el móvil */
    .cart-rd-bell-icon {
        font-size: 1.2rem;
        animation: ringBell 2s infinite ease-in-out;
        transform-origin: top center;
    }

    /* Detenemos el latido del contador en móvil porque la campana ya se mueve */
    .cart-rd-counter {
        animation: none;
        top: -4px;
        right: -4px;
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        border-width: 1px;
    }
}

@keyframes ringBell {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(0deg); }
}
