/* static/css/service.css */

/* =========================================
   1. HERO DEL TALLER (Premium e Industrial)
   ========================================= */
.service-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    
    /* Altura (del 60% al 80% de la pantalla) */
    height: 80vh; 
    min-height: 750px; 
    
    margin-top: -2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Líneas rojas simétricas de 2px para que se vean exactamente iguales */
    border-top: 1px solid var(--rojo-rvm);
    border-bottom: 1px solid var(--rojo-rvm);
    
    overflow: hidden;
}

/* Textura técnica sutil de fondo para el Hero */
.service-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(192, 8, 18, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(192, 8, 18, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 2;
}

.service-hero-content {
    position: relative;
    z-index: 3;
    animation: fadeUp 0.8s ease-out forwards;
    /* Un pequeño margen extra arriba para despegarlo un poco del borde superior en este tamaño */
    margin-top: -10vh; 
}

.service-hero-subtitle {
    color: var(--rojo-rvm);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 0.5rem;
    display: block;
}

.service-hero h1 {
    font-size: 4rem;
    font-weight: 900;
    color: var(--blanco);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 1.5rem 0;
    line-height: 1.1;
    text-shadow: 0 5px 15px rgba(0,0,0,0.9);
}

.service-hero p {
    font-size: 1.15rem;
    color: var(--blanco);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

/* =========================================
   2. EL VALOR AGREGADO (Barra de confianza separada)
   ========================================= */
.service-trust-bar {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 3rem 2rem;
    margin-top: 4rem; 
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    margin-bottom: 5rem;
}

.trust-item {
    text-align: center;
    padding: 1rem;
}

.trust-icon-svg {
    color: var(--rojo-rvm);
    margin-bottom: 1.5rem;
    display: block;
}

.trust-item h4 {
    color: var(--blanco);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.trust-item p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   3. GRILLA DE SERVICIOS
   ========================================= */
.services-wrapper {
    margin-bottom: 6rem;
}

.services-title {
    text-align: center;
    color: var(--blanco);
    font-size: 2.2rem;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 3.5rem;
}

.services-title span {
    color: var(--rojo-rvm);
    font-weight: 900;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--rojo-rvm);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(15, 15, 15, 0.9);
    border-color: rgba(192, 8, 18, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

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

.service-card h3 {
    font-size: 1.3rem;
    color: var(--blanco);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-card p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card li {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card li::before {
    content: '▹';
    color: var(--rojo-rvm);
    font-weight: bold;
}

/* =========================================
   4. LLAMADO A LA ACCIÓN (SACAR TURNO)
   ========================================= */
.cta-service {
    background: linear-gradient(135deg, #111 0%, #050505 100%);
    border: 1px solid rgba(192, 8, 18, 0.3);
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 5rem;
}

.cta-service h2 {
    color: var(--blanco);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 300;
}

.cta-service h2 span {
    font-weight: 900;
}

.cta-service p {
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-whatsapp-turno {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
    color: white;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-turno:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    color: white;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    /* 👇 Ajuste sutil para móviles también (del 50% al 60% de altura) 👇 */
    .service-hero { height: 60vh; min-height: 500px; }
    .service-hero h1 { font-size: 3rem; }
    .service-hero-content { margin-top: 0; }
}