{% extends "base.html" %}

{% block title %}Pomelia | Servicios{% endblock %}

{% block extra_css %}

<style>

/* Separa automáticamente todas las secciones dentro del documento */
section {
    margin-top: 150px;
    margin-bottom: 150px;
}

/* =========================================
   FONDO PARA EL TEXTO DEL HEADER
   ========================================= */

#servicios-header {
    position: relative;
    overflow: hidden;
}

/* Capa oscura sobre la imagen */
#servicios-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
    z-index: 0;
}

/* Contenido por encima de la capa */
#servicios-header .container {
    position: relative;
    z-index: 1;
}

/* Fondo detrás específicamente del bloque de texto */
#servicios-header .col-lg-8 {
    background: rgba(0, 0, 0, 0.45);
    padding: 40px 35px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

/* Texto descriptivo */
#servicios-header .text-muted-pomelia {
    color: #f1f1f1 !important;
}

/* Ajuste para celulares */
@media (max-width: 768px) {

    #servicios-header .col-lg-8 {
        padding: 30px 20px;
        border-radius: 15px;
    }

    #servicios-header h1 {
        font-size: 2.3rem !important;
    }
}

#servicios-header {
    position: relative;
    margin: 0 !important;
    min-height: 470px;
    overflow: hidden;

    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

#servicios-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

#servicios-header .container {
    position: relative;
    z-index: 2;
}

#servicios-header .col-lg-8 {
    background: rgba(0, 0, 0, 0.55);
    padding: 40px 35px;
    border-radius: 0 0 25px 25px;

    border: 1px solid rgba(255, 255, 255, 0.10);

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

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

/* =========================================
   SECCIÓN CTA FINAL
   ========================================= */

#cta-final {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;

    min-height: 420px;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* Capa oscura sobre la imagen */
#cta-final::before {
    content: "";
    position: absolute;
    inset: 0;

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

    z-index: 0;
}


/* Contenido por encima de la imagen */
#cta-final .container {
    position: relative;
    z-index: 2;

    padding-top: 70px !important;
    padding-bottom: 70px !important;
}


/* Fondo semitransparente detrás del texto */
#cta-final .container::before {
    content: "";

    position: absolute;

    top: 20px;
    bottom: 20px;
    left: 10%;
    right: 10%;

    background: rgba(0, 0, 0, 0.45);

    border: 1px solid rgba(255, 255, 255, 0.10);

    border-radius: 25px;

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

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);

    z-index: -1;
}


/* Texto */
#cta-final h3,
#cta-final p {
    position: relative;
    z-index: 3;
}


/* Botón */
#cta-final .btn {
    position: relative;
    z-index: 3;
}

/* =========================================
   MÓVIL
   ========================================= */

@media (max-width: 768px) {

    #cta-final {
        min-height: 380px;
    }

    #cta-final .container {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    #cta-final .container::before {
        left: 3%;
        right: 3%;
        top: 15px;
        bottom: 15px;
        border-radius: 18px;
    }

    #cta-final h3 {
        font-size: 2rem;
    }

    #cta-final p {
        font-size: 1rem;
    }
}


</style>

{% endblock %}