/* css/servicios.css - Estilo Apple Services */

body { background-color: #fbfbfd; color: #1d1d1f; }

/* --- 1. HERO (Intro) --- */
.service-hero {
    padding: 160px 20px 100px;
    text-align: center;
    background: #fff;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #0073aa 0%, #1d1d1f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeUp 1s ease forwards;
}

.hero-desc {
    font-size: 1.4rem;
    color: #86868b;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0;
    animation: fadeUp 1s ease 0.3s forwards;
}

/* --- 2. TARJETAS DE SERVICIOS (Alternadas) --- */
.services-list {
    padding: 80px 0 150px;
    overflow: hidden; /* Para las animaciones que vienen de los lados */
}

.service-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
    opacity: 0; /* JS Reveal lo activará, pero por defecto oculto */
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-row.active {
    opacity: 1;
    transform: translateY(0);
}

/* Alternar orden: Imagen a la derecha en pares */
.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1;
}

.service-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.service-content p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #424245;
}

.service-image {
    flex: 1;
    height: 450px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px -10px rgba(0,0,0,0.15);
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-row:hover .service-image img {
    transform: scale(1.05);
}

/* --- 3. VALORES (Grid de 3 columnas) --- */
.features-section {
    background: #fff;
    padding: 150px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.feature-item {
    text-align: center;
    padding: 40px;
    border-radius: 24px;
    background: #f5f5f7;
    transition: 0.4s;
}

.feature-item:hover {
    background: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: #0073aa;
    margin-bottom: 25px;
}

.feature-item h3 { font-size: 1.6rem; margin-bottom: 15px; }
.feature-item p { font-size: 1.1rem; color: #6e6e73; }

/* --- 4. CTA FINAL --- */
.service-cta {
    text-align: center;
    padding: 150px 0;
    background: #0073aa; /* Fondo azul impactante */
    color: white;
}

.service-cta h2 { color: white; font-size: 3rem; margin-bottom: 10px; }
.cta-sub { font-size: 1.5rem; opacity: 0.9; margin-bottom: 40px; }

.btn-white-big {
    background: white;
    color: #0073aa;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 100px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.btn-white-big:hover { transform: scale(1.05); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }

/* Animaciones */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
    .service-row { flex-direction: column !important; gap: 40px; text-align: center; }
    .hero-title { font-size: 3rem; }
    .service-image { width: 100%; height: 300px; }
}