/* ==============================================================
   5. MEJORAS VISUALES - PÁGINA DE SERVICIO (MOBILE FIRST)
   ============================================================== */

:root {
    --color-accent-rgb: 212, 160, 23; 
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.3;
}

.service-list .service-item-content a {
    color: var(--color-primary);
}

/* ==============================================================
   MODERN HERO - SERVICIOS
   ============================================================== */

/* 1. ESTRUCTURA BASE (MÓVIL POR DEFECTO) */
.service-hero {
    position: relative;
    display: flex;
    align-items: center;     /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
    
    /* En móvil, ocupamos casi toda la altura para dar impacto */
    min-height: 85vh;        
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    
    /* PADDING PARA MÓVIL (Corrige que se monte el header o toque abajo) */
    padding-top: 50px;  /* Espacio para el header fijo en móvil */
    padding-bottom: 60px; /* Espacio para que la caja no toque la curva */
    
    overflow: hidden;
    box-sizing: border-box;
}

/* Imagen de fondo */
.hero-background-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 0 0 2rem 2rem; /* Curva un poco más suave en móvil */
    overflow: hidden;
}

.hero-background-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 15s infinite alternate;
}

@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* Overlay */
.hero-background-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(26, 58, 90, 0.4) 0%, 
        rgba(26, 58, 90, 0.6) 50%,
        rgba(26, 58, 90, 0.95) 100%
    );
    z-index: 2;
}

/* Contenido Glassmorphism (Vidrio) - ESTILO BASE MÓVIL */
.hero-content {
    position: relative;
    z-index: 3;
    
    /* En móvil: menos padding, ancho casi total */
    padding: 2rem 1.5rem; 
    width: 90%; 
    max-width: 900px; /* Tope máximo */
    margin: 0 auto;
    
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px); /* Menos blur en móvil para rendimiento */
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Tipografía Base (Móvil) */
.service-hero .service-title {
    font-size: 2rem; /* Tamaño legible en celular */
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.service-hero p {
    font-size: 1rem;
    line-height: 1.6;
    color: #f0f0f0;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Botones Base (Móvil: Apilados y Anchos) */
.btns-hero {
    display: flex;
    justify-content: center;
    flex-direction: column; /* Uno arriba del otro en móvil */
    gap: 1rem;
    width: 100%;
}

.service-hero .btn {
    width: 100%; /* Botones ocupan todo el ancho en celular para fácil toque */
}

/* Estilos Específicos de Botones */
.service-hero .btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
}

.service-hero .btn-whatsapp-hero {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    margin-top: 0 !important;
    color: #fff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.service-hero .btn-whatsapp-hero svg { fill: #fff; }
.service-hero .btn-whatsapp-hero:hover {
    background-color: #25d366;
    border-color: #25d366;
}

/* ==============================================================
   MEDIA QUERIES (DESKTOP / TABLET) - MIN-WIDTH
   Aquí sobreescribimos los estilos base para pantallas grandes
   ============================================================== */

@media (min-width: 768px) {
    
    /* Hero: Ajustes para escritorio */
    .service-hero {
        min-height: 75vh; /* En escritorio puede ser un poco menos alto proporcionalmente */
        padding-top: 50px; /* Más espacio para header grande */
        padding-bottom: 50px; /* Más aire abajo */
    }

    .hero-background-image-container {
        border-radius: 0 0 3rem 3rem; /* Curva más pronunciada en PC */
    }

    .hero-content {
        padding: 3.5rem 3rem; /* Más espacio interno en la caja de vidrio */
        backdrop-filter: blur(12px); /* Más blur en PC */
        -webkit-backdrop-filter: blur(12px);
    }

    .service-hero .service-title {
        font-size: 2.5rem; /* Título gigante en PC */
    }

    .service-hero p {
        font-size: 1.2rem;
        line-height: 1.8;
    }

    /* Botones: Se ponen en fila y tamaño automático */
    .btns-hero {
        flex-direction: row; /* Uno al lado del otro */
        gap: 1.5rem;
    }

    .service-hero .btn {
        width: auto; /* Ancho natural del texto */
    }
}


/* ==============================================================
   RESTO DE COMPONENTES (ADAPTADOS A MOBILE FIRST)
   ============================================================== */

/* LISTA DE SERVICIOS */
.service-list {
    display: grid;
    grid-template-columns: 1fr; /* Base: 1 columna (Móvil) */
    gap: var(--spacing-md);
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .service-list {
        grid-template-columns: 1fr 1fr; /* Desktop: 2 columnas */
    }
}

.service-item {
    background-color: var(--color-text-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--spacing-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-item-icon {
    margin: 0 auto 1rem auto;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--color-accent);
    stroke: var(--color-accent);
}

.service-item-content h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.service-item-content p {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* AUTHOR BOX (E-E-A-T) */
.author-box {
    display: flex;
    flex-direction: column; /* Base: Columna (Móvil) */
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-left: 5px solid var(--color-accent);
    border-radius: 8px;
    text-align: center; /* Base: Centrado */
}

.author-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-text-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.author-info h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.author-info p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.author-info p:last-child {
    margin-bottom: 0;
}

/* Desktop Author Box */
@media (min-width: 768px) {
    .author-box {
        flex-direction: row; /* Fila */
        text-align: left; /* Alineado izq */
    }
}

/* SIDEBAR */
.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(26, 58, 90, 0.15);
    
    /* En móvil se comporta como bloque normal */
    position: relative; 
    top: 0;
}

/* Desktop Sidebar */
@media (min-width: 992px) {
    .service-sidebar {
        /* En pantallas grandes se vuelve pegajoso */
        position: sticky;
        top: 100px;
    }
}

.service-sidebar h3 {
    color: var(--color-text-light);
    font-size: 1.6rem;
}

.service-sidebar .btn-primary {
    transform: scale(1.05);
}
.service-sidebar .btn-primary:hover {
    transform: scale(1.1) translateY(-3px);
}

/* DROPDOWN ARROW */
.dropdown-arrow {
    border-right: 3px solid var(--color-text);
    border-bottom: 3px solid var(--color-text);
}