/* =========================
   SERVICE PAGE LAYOUT
========================= */

.service-page {
    max-width: 1200px;
    margin: auto;
    padding: 135px 25px 80px 25px;
    font-family: 'Poppins', Arial, sans-serif;
    color: #333;
    scroll-behavior: smooth;
}

/* ============================
   FONDO SERVICIOS PREMIUM
============================ */

.service-background {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Imagen de fondo */
.service-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.12; /* intensidad de la imagen */
    z-index: 0;
}

/* contenido por encima */
.service-background > * {
    position: relative;
    z-index: 1;
}

.service-bg1::before {
    background-image: url("../fotosWeb/entrada.png");
}

.service-bg2::before {
    background-image: url("../img/prevencion-linfedema.jpg");
}

.service-bg3::before {
    background-image: url("../img/performance-salud.jpg");
}

.service-bg4::before {
    background-image: url("../img/nutricion-oncologica.jpg");
}

.service-bg5::before {
    background-image: url("../img/fisioterapia-oncologica.jpg");
}



/* =========================
   HERO SECTION
========================= */

.service-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
    position: relative;
}

.service-hero-text h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    color:#0d3b66;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.service-hero-text p {
    font-size: 19px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.service-hero-img img {
    width: 100%;           /* Ocupa todo el contenedor */
    max-width: 100%;       /* Evita que se sobreescale */
    height: auto;          /* Mantiene proporción */
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transform: scale(1);   /* Comenzamos ya en escala 1 */
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    image-rendering: auto; /* Asegura suavizado nativo de la imagen */
}

.service-hero-img img:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}


/* =========================
   SECTION
========================= */

.service-section {
    margin-bottom: 90px;
}

.service-section h2 {
    font-size: 34px;
    margin-bottom: 25px;
    position: relative;
    color: #0d3b66;
}

.service-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #0d3b66;
    border-radius: 2px;
    margin-top: 8px;
    transition: width 0.3s ease;
}

.service-section:hover h2::after {
    width: 100px;
}

.service-text {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

/* =========================
   BENEFITS GRID
========================= */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 30px;
    margin-top: 30px;
}

.benefit-card {
    background: linear-gradient(145deg, #fdfdfd, #f7f7f7);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    cursor: default;
}

.benefit-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
    background: linear-gradient(145deg, #f9f9f9, #efefef);
}

.benefit-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #111;
}

.benefit-card p {
    font-size: 16px;
    color: #555;
}

/* =========================
   PROCESS STEPS
========================= */

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 25px;
}

.step {
    background: linear-gradient(145deg,#fafafa,#f0f0f0);
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: all 0.35s ease;
    position: relative;
}

.step:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(14, 9, 9, 0.12);
}

.step-number {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: black;
}

/* =========================
   CTA
========================= */

.service-cta {
    text-align: center;
    padding: 80px 30px;
    background: linear-gradient(120deg,#fdfdfd,#f6f6f6);
    border-radius: 18px;
    margin-top: 60px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-cta:hover {
    box-shadow: 0 18px 50px rgba(0,0,0,0.15);
}

.service-cta h2 {
    font-size: 36px;
    margin-bottom: 18px;
}

.service-cta p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

.service-btn {
    display: inline-block;
    padding: 16px 36px;
    background: black;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.25s ease;
}

.service-btn:hover {
    background: #222;
    transform: scale(1.05);
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:900px){
    .service-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .service-hero-text h1 {
        font-size: 36px;
    }
    .service-section h2 {
        font-size: 28px;
    }
    .service-btn {
        font-size: 16px;
        padding: 14px 28px;
    }
}
