/* =========================================================
SERVICE CONOSUR
CSS PERSONALIZADO
=================

IMPORTANTE:
El diseño principal utiliza Tailwind CSS.
Este archivo contiene únicamente los estilos personalizados
del sitio.

Estructura:

1. Variables
2. Base
3. Glass Card
4. Tarjetas de marcas
5. Marquee de reseñas
6. Tarjetas de reseñas
7. Animación de emergencia
8. Responsive
   ========================================================= */

/* =========================================================

1. VARIABLES GENERALES
   ========================================================= */

   :root {

    
    /* Paleta solicitada */
    
    --color-rojo-oscuro: #a90202;
    --color-rojo: #eb2305;
    --color-naranja: #fc7c0a;
    --color-gris: #d8d6d7;
    --color-celeste: #0297ba;
    --color-negro: #000000;
    
    
    /* Colores originales del diseño */
    
    --brand-orange: #FF5722;
    --brand-fire: #F44336;
    --brand-yellow: #FFC107;
    
    --brand-dark: #0F172A;
    --brand-navy: #1E293B;
    --brand-light: #F8FAFC;
    
    
    /* Configuración */
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    
    }
    
    /* =========================================================
    2. BASE
    ========================================================= */
    
    html {
    scroll-behavior: smooth;
    }
    
    body {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    }
    
    /* Evita problemas con imágenes */
    
    img {
    max-width: 100%;
    }
    
    /* Mejora el comportamiento de los botones */
    
    button,
    a {
    -webkit-tap-highlight-color: transparent;
    }
    
    /* =========================================================
    3. GLASS CARD
    ========================================================= */
    
    .glass-card {
    
    
    background: rgba(255, 255, 255, 0.85);
    
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    
    }
    
    /* =========================================================
    4. TARJETAS DE MARCAS
    ========================================================= */
    
    .brand-logo-card {
    
    
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s ease;
    
    
    }
    
    .brand-logo-card:hover {
    
    
    transform: translateY(-4px);
    
    box-shadow:
        0 12px 24px -8px rgba(0, 0, 0, 0.12);
    
    
    }
    
    /* =========================================================
    5. MARQUEE DE RESEÑAS
    ========================================================= */
    
    @keyframes marquee-left {
    
    
    0% {
        transform: translateX(0%);
    }
    
    100% {
        transform: translateX(-50%);
    }
    
    
    }
    
    .animate-marquee {
    
    
    display: flex;
    
    width: max-content;
    
    animation:
        marquee-left 35s linear infinite;
    
    
    }
    
    .animate-marquee:hover {
    
    
    animation-play-state: paused;
    
    
    }
    
    /* =========================================================
    6. TARJETAS DE RESEÑAS
    ========================================================= */
    
    .review-card {
    
    
    width: 320px;
    
    background: rgba(30, 41, 59, 0.90);
    
    border: 1px solid rgba(51, 65, 85, 0.80);
    
    border-radius: 1rem;
    
    padding: 1.25rem;
    
    flex-shrink: 0;
    
    display: flex;
    
    flex-direction: column;
    
    justify-content: space-between;
    
    transition:
        border-color 0.3s ease,
        transform 0.3s ease;
    
    
    }
    
    .review-card:hover {
    
    
    border-color: rgba(251, 191, 36, 0.50);
    
    
    }
    
    .review-avatar {
    
    
    width: 40px;
    height: 40px;
    
    border-radius: 9999px;
    
    color: #ffffff;
    
    font-weight: 700;
    
    display: flex;
    
    align-items: center;
    justify-content: center;
    
    font-size: 0.875rem;
    
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.15);
    
    
    }
    
    .review-footer {
    
    
    margin-top: 1rem;
    
    padding-top: 0.75rem;
    
    border-top:
        1px solid rgba(51, 65, 85, 0.50);
    
    display: flex;
    
    align-items: center;
    
    justify-content: space-between;
    
    font-size: 11px;
    
    color: #94a3b8;
    
    
    }
    
    /* En pantallas pequeñas */
    
    @media (min-width: 640px) {
    
    
    .review-card {
    
        width: 360px;
    
    }
    
    
    }
    
 
   /* =========================================================
7. ANIMACIÓN DE EMERGENCIA Y URGENCIAS
========================================================= */

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.60);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
    }
}

.pulse-emergency {
    animation: pulse-glow 2s infinite;
}

/* Titileo dinámico para la opción "Urgencias" en el menú */
@keyframes urgencias-blink-anim {
    0%, 100% {
        color: #f87171; /* Rojo encendido */
        opacity: 1;
        text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    }
    50% {
        color: #ffffff; /* Blanco de contraste al parpadear */
        opacity: 0.5;
        text-shadow: none;
    }
}

.urgencias-blink {
    animation: urgencias-blink-anim 1.4s ease-in-out infinite;
}
    
    /* =========================================================
    8. ACCESIBILIDAD
    ========================================================= */
    
    @media (prefers-reduced-motion: reduce) {
    
    
    html {
        scroll-behavior: auto;
    }
    
    .animate-marquee,
    .pulse-emergency {
        animation: none;
    }
    
    
    }
    
    /* =========================================================
    9. RESPONSIVE
    ========================================================= */
    
    @media (max-width: 639px) {
    
    
    .review-card {
        width: 320px;
    }
    
    
    }
    
    /* =========================================================
    10. AJUSTES DE FORMULARIO
    ========================================================= */
    
    input,
    select,
    textarea {
    
    
    font-family: inherit;
    
    
    }
    
    textarea {
    resize: vertical;
    }
    /* Animación suave para que el botón de emergencias titile de forma continua */
  @keyframes pulse-red {
    0%, 100% {
      opacity: 1;
      transform: scale(1);
    }
    50% {
      opacity: 0.85;
      transform: scale(0.98);
    }
  }

  .animate-pulse-red {
    animation: pulse-red 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }
  

/* =========================================================
   CARRUSEL ROTATIVO DE FOTOS (FONDO CLARO)
========================================================= */

@keyframes photos-slide-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-photos-marquee {
    animation: photos-slide-left 35s linear infinite;
}

/* Pausa la animación cuando el usuario se posiciona sobre las fotos */
.animate-photos-marquee:hover {
    animation-play-state: paused;
}

/* =========================================================
HERO - LOGO + ROTADOR DE IMÁGENES
========================================================= */

.hero-service {
    position: relative;
    }
    
    /* =========================================================
    ÁREA DEL LOGO
    ========================================================= */
    
    .hero-logo-area {
    position: relative;
    z-index: 2;
    }
    
    /* Contenedor del logo */
    
    .hero-logo-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 25px;
    }
    
    /* Logo */
    
    .hero-logo {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    object-fit: contain;
    }
    
    /* Texto debajo del logo */
    
    .hero-logo-text {
    max-width: 760px;
    }
    
    /* =========================================================
    BADGE DE EMERGENCIAS
    ========================================================= */
    
    .hero-emergency-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    

    background: rgba(239, 68, 68, 0.20);
    border: 1px solid rgba(239, 68, 68, 0.40);
    
    color: #f87171;
    
    font-size: 13px;
    font-weight: 700;
    
    padding: 7px 16px;
    
    border-radius: 999px;
    
    margin-bottom: 20px;

    
    }
    
    .hero-emergency-dot {
    width: 10px;
    height: 10px;
    

    border-radius: 50%;
    
    background: #ef4444;
    
    animation: heroEmergencyPulse 1.5s infinite;

    
    }
    
    @keyframes heroEmergencyPulse {
    

    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    
    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }

    
    }
    
    /* =========================================================
    TITULO
    ========================================================= */
    
    .hero-logo-text h1 {
    font-size: clamp(2rem, 4vw, 3.8rem);
    

    font-weight: 800;
    
    line-height: 1.1;
    
    letter-spacing: -0.025em;
    
    margin: 0 0 20px 0;

    
    }
    
    .hero-logo-text h1 span {
    background: linear-gradient(
    to right,
    #fb923c,
    #fbbf24,
    #fde047
    );
    

    background-clip: text;
    -webkit-background-clip: text;
    
    color: transparent;

    
    }
    
    /* =========================================================
    DESCRIPCIÓN
    ========================================================= */
    
    .hero-logo-text > p {
    color: #cbd5e1;
    

    font-size: 16px;
    
    line-height: 1.7;
    
    font-weight: 300;
    
    max-width: 700px;
    
    margin-bottom: 25px;

    
    }
    
    /* =========================================================
   SLIDER - TAMAÑO
========================================================= */

.hero-slider {
    position: relative;

    width: 100%;

    /* Más alto */
    height: 610px;

    background: #0f172a;

    border-radius: 16px;

    overflow: hidden;

    isolation: isolate;
}
    
    /* =========================================================
    SLIDES
    ========================================================= */
    
    .hero-slide {
    position: absolute;
    

    inset: 0;
    
    width: 100%;
    height: 100%;
    
    opacity: 0;
    
    visibility: hidden;
    
    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;

    
    }
    
    .hero-slide.active {
    opacity: 1;
    

    visibility: visible;
    
    z-index: 2;

    
    }
    
    /* Imagen */
    
    .hero-slide img {
    width: 100%;
    

    height: 100%;
    
    object-fit: cover;
    
    display: block;
    
    transition: transform 5s ease;

    
    }
    
    .hero-slide.active img {
    transform: scale(1.04);
    }
    
    /* =========================================================
    DEGRADADO SOBRE LA IMAGEN
    ========================================================= */
    
    .hero-slide::after {
    content: "";
    

    position: absolute;
    
    inset: 0;
    
    background: linear-gradient(
        to top,
        rgba(2, 6, 23, 0.98) 0%,
        rgba(2, 6, 23, 0.65) 38%,
        rgba(2, 6, 23, 0.05) 75%
    );
    
    z-index: 1;
    
    pointer-events: none;

    
    }
    
    /* =========================================================
    TEXTO DEL SLIDE
    ========================================================= */
    
    .hero-slide-overlay {
    position: absolute;
    

    left: 0;
    right: 0;
    bottom: 0;
    
    z-index: 3;
    
    display: flex;
    
    align-items: center;
    
    gap: 14px;
    
    padding: 25px;

    
    }
    
    /* Icono */
    
    .hero-slide-icon {
    width: 48px;
    height: 48px;
    

    min-width: 48px;
    
    border-radius: 50%;
    
    background: rgba(249, 115, 22, 0.20);
    
    border: 1px solid rgba(249, 115, 22, 0.40);
    
    display: flex;
    
    align-items: center;
    
    justify-content: center;
    
    color: #fb923c;
    
    font-size: 20px;

    
    }
    
    /* Título */
    
    .hero-slide-overlay h4 {
    margin: 0 0 4px 0;
    

    color: #ffffff;
    
    font-size: 16px;
    
    font-weight: 700;

    
    }
    
    /* Descripción */
    
    .hero-slide-overlay p {
    margin: 0;
    

    color: #94a3b8;
    
    font-size: 12px;
    
    line-height: 1.5;

    
    }
    
    /* =========================================================
    BOTONES DEL SLIDER
    ========================================================= */
    
    .hero-slider-prev,
    .hero-slider-next {
    

    position: absolute;
    
    top: 50%;
    
    transform: translateY(-50%);
    
    z-index: 10;
    
    width: 38px;
    height: 38px;
    
    border-radius: 50%;
    
    border: 1px solid rgba(255, 255, 255, 0.20);
    
    background: rgba(2, 6, 23, 0.60);
    
    color: #ffffff;
    
    cursor: pointer;
    
    display: flex;
    
    align-items: center;
    
    justify-content: center;
    
    transition: all 0.25s ease;
    
    backdrop-filter: blur(4px);

    
    }
    
    .hero-slider-prev {
    left: 14px;
    }
    
    .hero-slider-next {
    right: 14px;
    }
    
    .hero-slider-prev:hover,
    .hero-slider-next:hover {
    

    background: rgba(239, 68, 68, 0.90);
    
    border-color: rgba(239, 68, 68, 1);
    
    transform: translateY(-50%) scale(1.08);

    
    }
    
    /* =========================================================
    INDICADORES
    ========================================================= */
    
    .hero-slider-dots {
    

    position: absolute;
    
    z-index: 10;
    
    left: 50%;
    
    bottom: 14px;
    
    transform: translateX(-50%);
    
    display: flex;
    
    align-items: center;
    
    gap: 7px;

    
    }
    
    .hero-dot {
    

    width: 8px;
    height: 8px;
    
    border: none;
    
    border-radius: 50%;
    
    background: rgba(255, 255, 255, 0.45);
    
    padding: 0;
    
    cursor: pointer;
    
    transition: all 0.3s ease;

    
    }
    
    .hero-dot.active {
    

    width: 24px;
    
    border-radius: 10px;
    
    background: #ef4444;

    
    }
    
    /* =========================================================
    RESPONSIVE
    ========================================================= */
    
    @media (max-width: 1023px) {
    

    .hero-logo-box {
        justify-content: center;
    
        text-align: center;
    }
    
    
    .hero-logo {
        max-width: 320px;
    }
    
    
    .hero-logo-text {
        max-width: 100%;
    
        text-align: center;
    }
    
    
    .hero-logo-text > p {
        margin-left: auto;
        margin-right: auto;
    }
    
    
    .hero-emergency-badge {
        justify-content: center;
    }
    
    
    .hero-slider {
        height: 380px;
    }

    
    }
    
    @media (max-width: 640px) {
    

    .hero-slider {
        height: 330px;
    
        border-radius: 14px;
    }
    
    
    .hero-logo {
        max-width: 260px;
    }
    
    
    .hero-slide-overlay {
        padding: 18px;
        padding-bottom: 28px;
    }
    
    
    .hero-slide-icon {
        width: 42px;
        height: 42px;
    
        min-width: 42px;
    
        font-size: 17px;
    }
    
    
    .hero-slide-overlay h4 {
        font-size: 14px;
    }
    
    
    .hero-slide-overlay p {
        font-size: 11px;
    }
    
    
    .hero-slider-prev,
    .hero-slider-next {
        width: 34px;
        height: 34px;
    }

    
    @media (max-width: 1023px) {

        .hero-slider {
            height: 420px;
        }
    
    }
    
    
    @media (max-width: 640px) {
    
        .hero-slider {
            height: 360px;
            border-radius: 14px;
        }
    
    }
    }
    
    /* =========================================================
    FIN DEL CSS
    ========================================================= */
    