/* --- DISEÑO PREMIUM INDUSTRIAL --- */

:root {
    --primary-yellow: #ffcc00;
    --dark-bg: #1a1a1a;
    --text-main: #2d2d2d;
    --text-light: #666;
    --glass-effect: rgba(255, 255, 255, 0.92);
}

/* Fondo con efecto de profundidad */
body {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('img/valores.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.services-main-container {
    padding: 100px 0;
}

/* La Carta: Espaciosa y con aire */
.service-detail-section { 
    width: 85% !important; 
    max-width: 1300px !important; 
    margin: 80px auto; /* Más espacio entre cartas */
    padding: 80px; /* Mucho aire interno */
    
    background: var(--glass-effect);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 40px 100px rgba(0,0,0,0.2);
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-detail-section:hover {
    transform: translateY(-10px);
    background: #ffffff;
}

/* Flex con gran separación */
.service-flex { 
    display: flex; 
    gap: 120px; /* Espacio máximo entre imagen y contenido */
    align-items: center;
}

/* Imagen con efecto de profundidad */
.service-image { 
    flex: 0 0 40%;
    position: relative;
}

.service-image img { 
    width: 100%; 
    border-radius: 20px; 
    box-shadow: -20px 20px 50px rgba(0,0,0,0.15);
    transition: 0.5s;
    z-index: 2;
    position: relative;
}

/* El cuadro amarillo decorativo detrás de la foto */
.service-image::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: var(--primary-yellow);
    border-radius: 20px;
    z-index: 1;
    opacity: 0.3;
}

/* Bloque de Información */
.service-info { flex: 1; }

.service-tag {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary-yellow);
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.service-info h2 { 
    font-size: 3rem; 
    font-weight: 900;
    color: var(--dark-bg);
    margin-bottom: 25px;
    line-height: 1;
}

.service-info p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 40px;
}

/* Cuadrícula de características técnicas */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 35px;
}

.spec-item {
    display: flex;
    flex-direction: column; /* Icono arriba, texto abajo para más impacto */
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5); /* Fondo traslúcido */
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: default;
}
.spec-item:hover {
    background: var(--dark-bg); /* Se vuelve oscuro */
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Iconos más grandes y llamativos */
.spec-item i {
    font-size: 1.8rem;
    color: var(--primary-yellow);
    transition: all 0.3s ease;
}

.spec-item:hover i {
    transform: scale(1.1);
}
.spec-item span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-bg);
    transition: all 0.3s ease;
}

.spec-item:hover span {
    color: #ffffff;
}

/* Alternar orden: Foto derecha, Foto izquierda */
.service-detail-section:nth-child(even) .service-flex {
    flex-direction: row-reverse;
}

/* Ajustes Responsive */
@media (max-width: 1100px) {
    .service-flex { gap: 60px; }
    .service-detail-section { padding: 50px; width: 92% !important; }
}

@media (max-width: 900px) {
    .service-flex { flex-direction: column !important; text-align: center; }
    .service-image { width: 80%; }
    .specs-grid { grid-template-columns: 1fr; }
}