/* services: estilos migrados preservando el diseño original. */

/* ==========================================================
   ANTHORIA — WEB DEVELOPMENT / SERVICES PAGE

   Estilos exclusivos de services.html.

   Contiene:
   - Layout principal.
   - Contenido y textos.
   - Lista de características.
   - Tarjeta de precio.
   - Botón de presupuesto.
   - Mockups de dispositivos.
   - Nota sobre el teléfono.
   - Tema oscuro.
   - Responsive específico.

   Los estilos globales permanecen en styles.css.
   ========================================================== */


/* ==========================================================
   ESTRUCTURA GENERAL
   ========================================================== */

body.services-page-body {
    min-height: 100vh;
    overflow-x: hidden;

    background-color: #f4efe6;
    background-image:
        linear-gradient(rgba(244, 239, 230, 0.78),
            rgba(244, 239, 230, 0.88)),
        url(../../assets/images/home-background.jpg);

    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}


/* The page containers remain transparent so the background is visible. */

body.services-page-body main,
body.services-page-body main>.services-page {
    background-color: transparent;
}


/* ==========================================================
   SECCIÓN PRINCIPAL

   Sobrescribe el límite global de 650px aplicado a la
   primera sección dentro de <main>.
   ========================================================== */

body.services-page-body main>.services-page {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: none;

    min-height: 100vh;

    padding: 80px 7%;

    overflow: hidden;
}


/* ==========================================================
   COLUMNA DE CONTENIDO
   ========================================================== */

body.services-page-body .web-development-content {
    position: relative;

    z-index: 2;

    width: 48%;

    transform: translateY(-87px);
}


/* ==========================================================
   ETIQUETA SUPERIOR
   ========================================================== */

body.services-page-body .service-label {
    display: inline-block;

    margin-bottom: 20px;

    color: #c89a3d;

    font-size: 0.9rem;
    letter-spacing: 4px;

    text-transform: uppercase;
}


/* ==========================================================
   TÍTULO PRINCIPAL
   ========================================================== */

body.services-page-body .web-development-content h1 {
    margin-bottom: 20px;

    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.05;
}


/* ==========================================================
   SUBTÍTULO
   ========================================================== */

body.services-page-body .service-subtitle {
    max-width: 520px;

    margin-bottom: 35px;

    font-size: 1.35rem;
    line-height: 1.5;
}


/* ==========================================================
   DIVISOR DECORATIVO
   ========================================================== */

body.services-page-body .service-divider {
    display: flex;

    align-items: center;

    gap: 15px;

    width: 360px;
    max-width: 100%;

    margin-bottom: 35px;
}


body.services-page-body .service-divider span:first-child,
body.services-page-body .service-divider span:last-child {
    flex: 1;

    height: 1px;

    background: #d8b46c;
}


body.services-page-body .divider-symbol {
    color: #d8b46c;
}


/* ==========================================================
   DESCRIPCIÓN PRINCIPAL
   ========================================================== */

body.services-page-body .service-description {
    max-width: 560px;

    margin-bottom: 45px;

    line-height: 1.8;
}


/* ==========================================================
   CARACTERÍSTICAS DEL SERVICIO
   ========================================================== */

body.services-page-body .service-features {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 45px;
}


/* ==========================================================
   TARJETAS DE CARACTERÍSTICAS
   ========================================================== */

body.services-page-body .feature-item {
    position: relative;

    padding: 18px;

    overflow: hidden;

    background-color: rgba(255, 255, 255, 0.26);

    border: 1px solid #c8ad7f;
    border-radius: 18px;

    color: #2d2924;

    text-decoration: none;

    cursor: pointer;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38);

    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


body.services-page-body .feature-item:hover {
    background-color: rgba(255, 255, 255, 0.58);

    transform: translateY(-5px);

    box-shadow:
        0 16px 34px rgba(45, 41, 36, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}


body.services-page-body .feature-item:visited {
    color: #2d2924;
}


body.services-page-body .feature-item strong {
    display: block;

    margin-bottom: 6px;
}


body.services-page-body .feature-item span {
    font-size: 0.95rem;
}


/* ==========================================================
   INFORMACIÓN ADICIONAL
   ========================================================== */

body.services-page-body .service-extra-description {
    max-width: 560px;

    margin: 0 0 45px;

    line-height: 1.8;
}


/* ==========================================================
   TARJETA DE PRECIO
   ========================================================== */

body.services-page-body .service-price-card {
    position: absolute;

    top: 39%;
    right: -85%;

    z-index: 4;

    width: 250px;

    padding: 18px;

    background:
        rgba(29, 29, 29, 0.62);

    border:
        1px solid rgba(214, 166, 79, 0.45);

    border-radius: 18px;

    color: #ffffff;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    cursor: pointer;

    box-shadow:
        14px 10px 20px rgba(0, 0, 0, 0.24),
        28px 20px 40px rgba(0, 0, 0, 0.16),
        45px 34px 70px rgba(0, 0, 0, 0.10),
        0 0 20px rgba(214, 166, 79, 0.12);

    transform:
        perspective(300px) translateZ(45px) rotateX(3deg) rotateY(-8deg);

    transform-origin: center;
    transform-style: preserve-3d;

    transition:
        transform 0.55s ease,
        box-shadow 0.55s ease,
        border-color 0.55s ease;
}


body.services-page-body .service-price-card:hover {
    border-color:
        rgba(230, 184, 98, 0.85);

    transform:
        perspective(900px) translateY(-10px) translateZ(75px) rotateX(-5deg) rotateY(10deg) scale(1.04);

    box-shadow:
        -14px 20px 28px rgba(0, 0, 0, 0.24),
        -28px 42px 55px rgba(0, 0, 0, 0.18),
        -45px 70px 90px rgba(0, 0, 0, 0.12),
        0 0 30px rgba(214, 166, 79, 0.22);
}


/* ==========================================================
   INFORMACIÓN DE PRECIO
   ========================================================== */

body.services-page-body .price-information {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 18px;
}


body.services-page-body .price-information strong {
    color: #d6a64f;

    font-size: 2rem;
}


/* ==========================================================
   BOTÓN DE PRESUPUESTO
   ========================================================== */

body.services-page-body .service-quote-button {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 12px;

    padding: 14px;

    background: #d6a64f;

    border-radius: 14px;

    color: #000000;

    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}


body.services-page-body .service-quote-button:hover {
    background: #e1b965;

    transform: translateY(-2px);
}


/* ==========================================================
   DISPOSITIVOS
   ========================================================== */

body.services-page-body .web-development-devices {
    position: relative;

    display: flex;

    align-items: flex-start;
    justify-content: center;

    width: 52%;

    margin-top: -140px;
    margin-right: -120px;

    animation:
        device-soft-float 3.5s ease-in-out infinite;
}


body.services-page-body .web-development-devices img {
    display: block;

    width: 98%;
    height: auto;

    cursor: pointer;

    filter:
        drop-shadow(12px 18px 18px rgba(0, 0, 0, 0.16)) drop-shadow(24px 34px 32px rgba(0, 0, 0, 0.10));

    transform: scale(1);

    transform-origin: center bottom;

    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}


body.services-page-body .web-development-devices img:hover {
    transform: scale(1.035);

    filter:
        drop-shadow(14px 22px 22px rgba(0, 0, 0, 0.20)) drop-shadow(28px 42px 38px rgba(0, 0, 0, 0.13));
}


/* ==========================================================
   ANIMACIÓN DE DISPOSITIVOS
   ========================================================== */

@keyframes device-soft-float {

    0%,
    100% {
        transform:
            translateY(0) scale(1);
    }

    50% {
        transform:
            translateY(-7px) scale(1.008);
    }

}


/* ==========================================================
   NOTA SOBRE EL TELÉFONO
   ========================================================== */

body.services-page-body .phone-business-note {
    position: absolute;

    top: 37%;
    right: 9.6%;

    z-index: 3;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 104px;
    min-height: 178px;

    padding: 14px 7px 12px;

    background:
        rgba(10, 10, 10, 0.58);

    border:
        1px solid rgba(214, 166, 79, 0.95);

    border-radius: 10px;

    color: #ffffff;

    text-align: center;

    box-shadow:
        0 0 10px rgba(214, 166, 79, 0.18),
        inset 0 0 10px rgba(214, 166, 79, 0.05);

    cursor: pointer;

    transform-origin: center center;

    transition:
        transform 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}


body.services-page-body .phone-business-note:hover {
    z-index: 10;

    background:
        rgba(10, 10, 10, 0.88);

    transform: scale(1.45);

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.28),
        0 0 18px rgba(214, 166, 79, 0.30);
}


/* ==========================================================
   ICONO DE LA NOTA
   ========================================================== */

body.services-page-body .phone-business-icon {
    width: 25px;
    height: 25px;

    margin-bottom: 8px;

    fill: none;

    stroke: #d6a64f;

    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================
   TEXTO DE LA NOTA
   ========================================================== */

body.services-page-body .phone-business-note span {
    display: block;

    margin-bottom: 8px;

    color: #d6a64f;

    font-size: 0.43rem;
    font-weight: 600;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


body.services-page-body .phone-business-note p {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.94);

    font-size: 0.40rem;
    font-weight: 500;

    line-height: 1.65;

    text-align: center;
}


/* ==========================================================
   DARK THEME
   ========================================================== */

body.services-page-body.dark-theme {
    background-color: #151311;
    background-image:
        linear-gradient(rgba(10, 9, 8, 0.72),
            rgba(10, 9, 8, 0.84)),
        url(../../assets/images/home-background-dark.jpg);

    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}

body.services-page-body.dark-theme .feature-item,
body.services-page-body.dark-theme .feature-item:visited {
    background-color:
        rgba(25, 22, 19, 0.48);

    border-color:
        rgba(200, 173, 127, 0.65);

    color: #f3eadc;

    box-shadow:
        inset 0 1px 0 rgba(224, 187, 117, 0.12);
}


body.services-page-body.dark-theme .feature-item:hover {
    background-color:
        rgba(32, 28, 23, 0.72);

    border-color:
        rgba(209, 168, 95, 0.90);

    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.28),
        0 0 18px rgba(209, 168, 95, 0.10),
        inset 0 1px 0 rgba(224, 187, 117, 0.20);
}


/* ==========================================================
   PANTALLAS MEDIANAS
   ========================================================== */

@media (max-width: 1100px) {

    body.services-page-body main>.services-page {
        padding-left: 5%;
        padding-right: 5%;
    }


    body.services-page-body .web-development-content {
        width: 52%;

        transform: translateY(-50px);
    }


    body.services-page-body .web-development-devices {
        width: 48%;

        margin-right: -70px;
    }


    body.services-page-body .service-price-card {
        right: -65%;
    }


    body.services-page-body .phone-business-note {
        right: 6%;
    }

}


/* ==========================================================
   TABLET Y MÓVIL
   ========================================================== */

@media (max-width: 768px) {

    body.services-page-body,
    body.services-page-body.dark-theme {
        /* mobile-v2.css supplies the theme-specific mobile image */
        background-attachment: scroll;
    }

    body.services-page-body main>.services-page {
        flex-direction: column;

        align-items: stretch;
        justify-content: flex-start;

        gap: 42px;

        min-height: auto;

        padding:
            105px 24px 72px;

        overflow: visible;
    }


    body.services-page-body .web-development-content {
        width: 100%;

        transform: none;
    }


    body.services-page-body .web-development-content h1 {
        font-size:
            clamp(2.8rem, 11vw, 4rem);
    }


    body.services-page-body .service-subtitle {
        max-width: none;

        font-size: 1.15rem;
    }


    body.services-page-body .service-description,
    body.services-page-body .service-extra-description {
        max-width: none;
    }


    body.services-page-body .service-features {
        grid-template-columns: 1fr;
    }


    body.services-page-body .service-price-card {
        position: relative;

        top: auto;
        right: auto;

        width: min(100%, 320px);

        margin-top: 12px;

        transform: none;
    }


    body.services-page-body .service-price-card:hover {
        transform: translateY(-4px);
    }


    body.services-page-body .web-development-devices {
        width: 100%;

        margin-top: 0;
        margin-right: 0;

        animation: none;
    }


    body.services-page-body .web-development-devices img {
        width: min(100%, 680px);
    }


    body.services-page-body .phone-business-note {
        top: 34%;
        right: 13%;

        transform: scale(0.9);
    }


    body.services-page-body .phone-business-note:hover {
        transform: scale(1.1);
    }

}


/* ==========================================================
   MÓVILES PEQUEÑOS
   ========================================================== */

@media (max-width: 430px) {

    body.services-page-body main>.services-page {
        gap: 32px;

        padding:
            95px 18px 56px;
    }


    body.services-page-body .web-development-content h1 {
        font-size:
            clamp(2.45rem, 12vw, 3.4rem);
    }


    body.services-page-body .service-label {
        margin-bottom: 16px;

        font-size: 0.78rem;
        letter-spacing: 3px;
    }


    body.services-page-body .service-subtitle {
        margin-bottom: 18px;

        font-size: 1.05rem;
    }


    body.services-page-body .service-divider {
        width: min(250px, 100%);
        max-width: 100%;

        margin: 0 0 18px;
    }


    body.services-page-body .service-description {
        margin-bottom: 34px;
    }


    body.services-page-body .service-features {
        gap: 14px;

        margin-bottom: 32px;
    }


    body.services-page-body .feature-item {
        padding: 16px;

        border-radius: 15px;
    }


    body.services-page-body .service-extra-description {
        margin-bottom: 34px;
    }


    body.services-page-body .service-price-card {
        width: 100%;

        border-radius: 16px;
    }


    body.services-page-body .phone-business-note {
        top: 32%;
        right: 7%;

        transform: scale(0.72);
    }


    body.services-page-body .phone-business-note:hover {
        transform: scale(0.88);
    }

}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    body.services-page-body .web-development-devices {
        animation: none;
    }


    body.services-page-body .feature-item,
    body.services-page-body .service-price-card,
    body.services-page-body .service-quote-button,
    body.services-page-body .web-development-devices img,
    body.services-page-body .phone-business-note {
        transition: none;
    }


    body.services-page-body .feature-item:hover,
    body.services-page-body .service-price-card:hover,
    body.services-page-body .service-quote-button:hover,
    body.services-page-body .web-development-devices img:hover,
    body.services-page-body .phone-business-note:hover {
        transform: none;
    }

}