/* ============================= */
/* HERO SERVICE RESET */
/* ============================= */

#hero-service {
    position: relative;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

/* ============================= */
/* MEDIA (IMAGEN) */
/* ============================= */

#hero-service .hero-media {
    position: relative;
    width: 100%;
    height: clamp(220px, 26vw, 320px); /* más fluido */
}

#hero-service .hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

/* ============================= */
/* OVERLAY */
/* ============================= */

#hero-service .hero-overlay {
    position: absolute;
    inset: 0;
    background-color: #452856;
    opacity: 0.7;
    z-index: 1;
}

/* ============================= */
/* CONTENT LAYER */
/* ============================= */

#hero-service .hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 2;
}

#hero-service .hero-content .container {
    width: 100%;
}

/* ============================= */
/* TEXT WRAP */
/* ============================= */

.hero-text-wrap {
    color: #ffffff;
}

/* ============================= */
/* TITLES */
/* ============================= */

/* 🔹 primera línea */

.hero-title {
    color: #ffffff;
    margin: 0;

    font-family: "Montserrat", "Inter", Arial, sans-serif;

    /* 🔥 escala suave */
    font-size: clamp(2.4rem, 4.5vw, 50px);

    font-weight: 700;
    line-height: 1.1; /* mejor legibilidad */
    letter-spacing: -0.02em;
}

/* 🔹 segunda línea */

.hero-subtitle {
    margin: 0;
    margin-top: 4px;

    font-family: "Montserrat", "Inter", Arial, sans-serif;

    /* 🔥 también fluido */
    font-size: clamp(18px, 2.2vw, 25px);

    font-weight: 500;
    line-height: 1.25;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

/* ---------- tablets ---------- */

@media (max-width: 1024px) {
    #hero-service .hero-media {
        height: clamp(200px, 30vw, 260px);
    }
}

/* ---------- mobile grande ---------- */

@media (max-width: 768px) {
    #hero-service .hero-media {
        height: 200px;
    }

    #hero-service .hero-content .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-title {
        font-size: clamp(1.7rem, 6vw, 2.2rem);
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: clamp(16px, 4vw, 18px);
        margin-top: 3px;
    }
}

/* ---------- mobile pequeño ---------- */

@media (max-width: 480px) {
    #hero-service .hero-media {
        height: 180px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, 1.9rem);
    }

    .hero-subtitle {
        font-size: 15px;
    }
}
