:root {
    --inicio-azul: #07364e;
    --inicio-azul-mid: #10639c;
    --inicio-azul-lt: #eef2f8;

    --inicio-rojo: #a41233;
    --inicio-rojo-lt: #fdecea;

    --inicio-verde: #008f39;

    --inicio-bg: #f2f5fb;
    --inicio-card: #ffffff;

    --inicio-texto: #2d3748;
    --inicio-suave: #6b7280;

    --inicio-borde: rgba(26, 51, 88, 0.10);

    --inicio-sombra:
        0 4px 24px rgba(26, 51, 88, 0.08);

    --inicio-sombra-h:
        0 14px 40px rgba(26, 51, 88, 0.16);

    --inicio-radio: 18px;
    --inicio-radio-sm: 10px;
}


/* =========================================================
   BASE
========================================================= */

.inicio-page {
    width: 100%;
    background: var(--inicio-bg);
    color: var(--inicio-texto);
    overflow: hidden;
    scroll-behavior: smooth;
}

.inicio-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

@keyframes heroReveal {
    0% {
        opacity: 0;
        transform: translateY(26px) scale(0.985);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatSoft {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(7, 54, 78, 0.08);
    }

    50% {
        box-shadow: 0 14px 36px rgba(7, 54, 78, 0.14);
    }
}

.inicio-page a {
    text-decoration: none;
}

.inicio-page button,
.inicio-page input,
.inicio-page textarea {
    font-family: inherit;
}


/* =========================================================
   ANIMACIONES
========================================================= */

.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity .7s ease,
        transform .7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.inicio-page .inicio-hero {
    animation: heroReveal 0.85s cubic-bezier(.2, .8, .2, 1) both;
}

.inicio-page .inicio-hero .carousel {
    animation: glowPulse 4.8s ease-in-out infinite;
}

.inicio-page .avisos-section,
.inicio-page .servicios-inicio,
.inicio-page .empresa-home-grid,
.inicio-page .procedimientos-section,
.inicio-page .contacto-inicio,
.inicio-page .convenios-section,
.inicio-page .cierre-section {
    animation: heroReveal 0.9s ease both;
}

.inicio-page .av-single,
.inicio-page .av-card,
.inicio-page .quick-service-card,
.inicio-page .procedimiento-card,
.inicio-page .alianzas-card,
.inicio-page .contact-info-item,
.inicio-page .planta-item {
    animation: none;
}

.inicio-page .av-card,
.inicio-page .quick-service-card,
.inicio-page .procedimiento-card,
.inicio-page .alianzas-card,
.inicio-page .contact-info-item,
.inicio-page .planta-item {
    animation-delay: var(--delay, 0s);
}

@keyframes slideImageLeft {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideImageRight {
    from {
        opacity: 0;
        transform: translateX(28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.inicio-page .empresa-home-image,
.inicio-page .procedimiento-image,
.inicio-page .quick-service-image {
    animation: slideImageLeft .7s ease both;
}

.inicio-page .procedimiento-card:nth-child(even) .procedimiento-image,
.inicio-page .quick-service-card:nth-child(even) .quick-service-image {
    animation-name: slideImageRight;
}


/* =========================================================
   ENCABEZADOS DE SECCIÓN
========================================================= */

.section-heading {
    margin-bottom: 38px;
}

.section-heading.text-center {
    text-align: center;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: .82rem;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;

    color: var(--inicio-rojo);

    margin-bottom: 8px;
}

.section-kicker::before {
    content: "";

    width: 20px;
    height: 2px;

    background: var(--inicio-rojo);
    border-radius: 2px;
}

.section-heading h2 {
    margin: 0;

    font-family: "DM Serif Display", serif;

    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1.2;

    color: var(--inicio-azul);
}

.section-heading p {
    margin: 8px auto 0;

    max-width: 720px;

    font-size: 1rem;
    line-height: 1.7;

    color: var(--inicio-suave);
}


/* =========================================================
   HERO PRINCIPAL
========================================================= */

.inicio-hero {
    padding: 24px 24px 0;
}

.inicio-hero .carousel {
    width: 100%;
    aspect-ratio: 5816 / 2102;

    border-radius: var(--inicio-radio);

    overflow: hidden;

    box-shadow: var(--inicio-sombra-h);

    background: #fff;
}

.inicio-hero .carousel-item {
    height: 100%;
    background: #fff;
}

.inicio-hero .carousel-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .6s ease;
}

.inicio-hero .carousel-item:hover img {
    transform: scale(1.01);
}

.inicio-hero .carousel-indicators {
    margin-bottom: 18px;
}

.inicio-hero .carousel-indicators button {
    width: 9px;
    height: 9px;

    margin: 0 5px;

    border: 0;
    border-radius: 50%;

    opacity: .65;

    transition:
        width .3s ease,
        opacity .3s ease,
        border-radius .3s ease;
}

.inicio-hero .carousel-indicators button.active {
    width: 26px;
    border-radius: 10px;
    opacity: 1;
}

.inicio-hero .carousel-control-prev,
.inicio-hero .carousel-control-next {
    width: 8%;
}

.inicio-hero .carousel-control-prev-icon,
.inicio-hero .carousel-control-next-icon {
    width: 42px;
    height: 42px;

    padding: 10px;

    border-radius: 50%;

    background-color: rgba(7, 54, 78, .72);
    background-size: 45%;

    backdrop-filter: blur(5px);
}


/* =========================================================
   SECCIONES GENERALES
========================================================= */

.inicio-section {
    max-width: var(--content-max, 1280px);

    margin: 0 auto;

    padding: clamp(48px, 6vw, 76px) var(--page-gutter, 24px);
}

.inicio-divider {
    width: min(1100px, calc(100% - 48px));

    height: 1px;

    margin: 0 auto;

    background:
        linear-gradient(90deg,
            transparent,
            var(--inicio-borde) 20%,
            var(--inicio-borde) 80%,
            transparent);
}


/* =========================================================
   BANNERS
========================================================= */

.inicio-banner {
    width: 100%;

    border-radius: var(--radius-card, 10px);

    overflow: hidden;

    box-shadow: var(--shadow-soft, 0 8px 26px rgba(0, 49, 73, .08));

    background: #fff;
}

.inicio-banner img {
    width: 100%;
    height: auto;

    transition: transform .6s ease;
}

.inicio-banner:hover img {
    transform: scale(1.01);
}


/* =========================================================
   AVISOS
========================================================= */
/* =========================================================
   AVISO INDIVIDUAL
========================================================= */

.inicio-page .avisos-section {
    position: relative;
    padding: 40px 24px 12px;
}

.inicio-page .av-single {
    position: relative;
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: 34px 32px 30px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
    text-align: center;
    animation: avisoEntrada 0.5s ease both;
}

.inicio-page .av-single::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(90deg, #07364e, #10639c, #b00035, #f04b39);
}

.inicio-page .av-single-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(176, 0, 53, 0.12), rgba(16, 99, 156, 0.10));
    box-shadow: inset 0 0 0 1px rgba(176, 0, 53, 0.08);
    color: #b00035;
    font-size: 28px;
}

.inicio-page .av-single-icon i {
    color: #b00035;
}

.inicio-page .av-single h2 {
    margin: 0 0 12px;
    color: #07364e;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.inicio-page .av-single p {
    max-width: 760px;
    margin: 0 auto 18px;
    color: #475569;
    font-size: 1.02rem;
    line-height: 1.8;
}

.inicio-page .av-single-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    color: #46586c;
    font-size: 0.78rem;
    font-weight: 700;
}

.inicio-page .av-single-date i {
    margin-right: 0;
    color: #1e3a5f;
}

.inicio-page .btn-aviso {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 14px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #b00035, #f04b39);
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 12px 22px rgba(176, 0, 53, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.inicio-page .btn-aviso i {
    color: #ffffff;
}

.inicio-page .btn-aviso:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(176, 0, 53, 0.24);
}

.inicio-page .avisos-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: min(100%, 1100px);
    margin: 0 auto 18px;
    padding: 16px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.inicio-page .av-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(176, 0, 53, 0.14), rgba(16, 99, 156, 0.10));
    color: #b00035;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.inicio-page .av-header-copy {
    text-align: left;
}

.inicio-page .av-header-copy h2 {
    margin: 0;
    color: #07364e;
    font-size: clamp(1.15rem, 2vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.inicio-page .av-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
    color: #0f172a;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inicio-page .av-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(15, 23, 42, 0.08);
}

.inicio-page .av-toggle-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.inicio-page .av-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(176, 0, 53, 0.14), rgba(16, 99, 156, 0.10));
    color: #b00035;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.inicio-page .av-toggle-texts {
    text-align: left;
}

.inicio-page .av-toggle-texts h3 {
    margin: 0;
    color: #07364e;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.inicio-page .av-toggle-texts p {
    margin: 4px 0 0;
    color: #58677b;
    font-size: 0.88rem;
}

.inicio-page .av-toggle-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.inicio-page .av-total-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: #1e3a5f;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.inicio-page .av-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.04);
    color: #0f172a;
    transition: transform 0.2s ease;
}

.inicio-page .av-toggle.open .av-chevron {
    transform: rotate(180deg);
}

.inicio-page .av-panel {
    width: min(100%, 1100px);
    margin: 18px auto 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.inicio-page .av-panel[hidden] {
    display: none;
}

.inicio-page .av-panel-inner {
    padding: 16px;
}

.inicio-page .av-scroll-box {
    max-height: 520px;
    overflow: auto;
    padding: 4px;
}

.inicio-page .av-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.inicio-page .av-grid-compact {
    width: min(100%, 1100px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.inicio-page .av-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
    padding: 20px 18px 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid #0f172a;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inicio-page .av-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.inicio-page .av-card-num {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: #1e3a5f;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.inicio-page .av-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(176, 0, 53, 0.12), rgba(16, 99, 156, 0.10));
    color: #b00035;
    font-size: 1.08rem;
}

.inicio-page .av-card h3 {
    margin: 0;
    color: #07364e;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.4;
}

.inicio-page .av-card p {
    margin: 0;
    color: #4b5a6e;
    font-size: 0.93rem;
    line-height: 1.7;
}

.inicio-page .av-card-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5a697d;
    font-size: 0.75rem;
    font-weight: 700;
}

.inicio-page .av-card-date i {
    color: #1e3a5f;
}

.inicio-page .av-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0c3d64, #10639c 55%, #b00035);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    margin-top: auto;
}

.inicio-page .av-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
    opacity: 0.96;
}

.inicio-page .av-btn i {
    color: #ffffff;
}

@keyframes avisoEntrada {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .inicio-page .avisos-section {
        padding: 26px 15px 0;
    }

    .inicio-page .av-single {
        padding: 24px 18px 22px;
        border-radius: 22px;
    }

    .inicio-page .av-single-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 16px;
    }

    .inicio-page .av-single h2 {
        font-size: 1.45rem;
    }

    .inicio-page .av-single p {
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .inicio-page .btn-aviso {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.93rem;
    }

    .inicio-page .av-toggle {
        padding: 14px 14px 14px 12px;
        border-radius: 18px;
    }

    .inicio-page .av-toggle-left {
        gap: 12px;
    }

    .inicio-page .av-toggle-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .inicio-page .av-toggle-texts p {
        font-size: 0.8rem;
    }

    .inicio-page .av-total-badge {
        display: none;
    }

    .inicio-page .av-grid {
        grid-template-columns: 1fr;
    }

    .inicio-page .av-card {
        padding: 18px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inicio-page .av-single {
        animation: none;
    }

    .inicio-page .btn-aviso,
    .inicio-page .av-toggle,
    .inicio-page .av-card,
    .inicio-page .av-btn,
    .inicio-page .av-chevron {
        transition: none;
    }
}

/* =========================================================
   ACCESO DIRECTO
========================================================= */

.acceso-directo {
    max-width: 1100px;
}

.quick-services-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.quick-service-card {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    background: var(--inicio-card);

    border: 1px solid var(--inicio-borde);

    border-radius: var(--inicio-radio);

    box-shadow: var(--inicio-sombra);

    padding: 28px 20px 24px;

    text-align: center;

    overflow: hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.quick-service-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background:
        linear-gradient(90deg,
            var(--inicio-azul),
            var(--inicio-rojo));
}

.quick-service-card:hover {
    transform: translateY(-10px) scale(1.01);

    box-shadow: var(--inicio-sombra-h);
}

.quick-service-image {
    width: 110px;
    height: 110px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;
}

.quick-service-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: transform .35s ease;
}

.quick-service-card:hover .quick-service-image img {
    transform: scale(1.08);
}

.quick-service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quick-service-content>i {
    margin-bottom: 8px;

    color: var(--inicio-rojo);

    font-size: 1rem;
}

.quick-service-content h3 {
    margin: 0;

    font-size: 1rem;
    line-height: 1.4;

    font-weight: 700;

    color: var(--inicio-azul);
}


/* =========================================================
   ALIANZAS
========================================================= */

.alianzas-section {
    max-width: 1000px;
}

.alianzas-card {
    position: relative;

    padding: 34px 42px;

    background: var(--inicio-card);

    border: 1px solid var(--inicio-borde);

    border-radius: var(--inicio-radio);

    box-shadow: var(--inicio-sombra);

    text-align: center;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.alianzas-card:hover {
    transform: translateY(-6px) scale(1.01);

    box-shadow: var(--inicio-sombra-h);
}

.alianzas-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: var(--inicio-azul-lt);

    color: var(--inicio-azul);

    font-size: 1.4rem;
}

.alianzas-card p {
    margin: 0;

    font-size: 1rem;
    line-height: 1.85;

    color: var(--inicio-suave);
}


/* =========================================================
   NUESTRA EMPRESA
========================================================= */

.empresa-home-grid {
    display: grid;

    grid-template-columns:
        260px 1fr;

    gap: 40px;

    align-items: center;

    padding: 40px;

    margin-top: 30px;

    background: var(--inicio-card);

    border: 1px solid var(--inicio-borde);

    border-radius: var(--inicio-radio);

    box-shadow: var(--inicio-sombra);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.empresa-home-grid:hover {
    transform: translateY(-4px);

    box-shadow: var(--inicio-sombra-h);
}

.empresa-home-image img {
    width: 100%;

    border-radius: var(--inicio-radio-sm);

    box-shadow: var(--inicio-sombra);
}

.empresa-home-content p {
    margin: 0 0 24px;

    font-size: 1rem;
    line-height: 1.85;

    color: var(--inicio-suave);

    text-align: left;
}

.inicio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 11px 25px;

    border: 2px solid var(--inicio-azul);

    border-radius: 50px;

    background: transparent;

    color: var(--inicio-azul);

    font-size: .95rem;
    font-weight: 700;

    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

.inicio-btn:hover {
    background: var(--inicio-azul);

    color: #fff;

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(7, 54, 78, .18);
}

.inicio-btn i {
    transition: transform .3s ease;
}

.inicio-btn:hover i {
    transform: translateX(4px);
}


/* =========================================================
   PLANTA DE ALMACENAMIENTO
========================================================= */

.planta-gallery {
    position: relative;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    margin-top: 30px;
}

.planta-item {
    position: relative;

    margin: 0;

    height: 330px;

    border-radius: 20px;

    overflow: hidden;

    box-shadow: var(--inicio-sombra);

    background: #fff;

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.planta-item:hover {
    transform: translateY(-8px);

    box-shadow: var(--inicio-sombra-h);
}

.planta-item::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(to top,
            rgba(7, 54, 78, .70),
            transparent 55%);

    pointer-events: none;
}

.planta-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .6s ease;
}

.planta-item:hover img {
    transform: scale(1.07);
}

.planta-item figcaption {
    position: absolute;

    z-index: 2;

    left: 20px;
    bottom: 18px;

    color: #fff;

    font-size: .9rem;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.planta-description {
    max-width: 900px;

    margin: 38px auto 0;

    padding: 30px 34px;

    background: var(--inicio-card);

    border: 1px solid var(--inicio-borde);

    border-radius: var(--inicio-radio);

    box-shadow: var(--inicio-sombra);

    text-align: center;
}

.planta-description h3 {
    margin: 0 0 12px;

    font-family: "DM Serif Display", serif;

    font-size: 1.9rem;

    color: var(--inicio-azul);
}

.planta-description p {
    margin: 0;

    color: var(--inicio-suave);

    font-size: 1rem;

    line-height: 1.8;
}


/* =========================================================
   SERVICIOS Y PROCEDIMIENTOS
========================================================= */

.procedimientos-section {
    max-width: none;

    background: #eaeff8;

    padding-left: max(24px, calc((100vw - 1132px) / 2));
    padding-right: max(24px, calc((100vw - 1132px) / 2));
}

.procedimientos-section .section-heading,
.procedimientos-section .inicio-banner,
.procedimientos-grid {
    max-width: 1180px;

    margin-left: auto;
    margin-right: auto;
}

.procedimientos-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;

    margin-top: 34px;
}

.procedimiento-card {
    background: var(--inicio-card);

    border: 1px solid var(--inicio-borde);

    border-radius: var(--inicio-radio);

    overflow: hidden;

    box-shadow: var(--inicio-sombra);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.procedimiento-card:hover {
    transform: translateY(-10px) scale(1.01);

    box-shadow: var(--inicio-sombra-h);
}

.procedimiento-image {
    position: relative;

    height: 230px;

    overflow: hidden;
}

.procedimiento-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(to top,
            rgba(7, 54, 78, .48),
            transparent 60%);

    opacity: 0;

    transition: opacity .3s ease;
}

.procedimiento-card:hover .procedimiento-image::after {
    opacity: 1;
}

.procedimiento-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .6s ease;
}

.procedimiento-card:hover .procedimiento-image img {
    transform: scale(1.07);
}

.procedimiento-content {
    padding: 20px 22px 23px;
}

.procedimiento-content h3 {
    margin: 0 0 5px;

    font-size: 1.05rem;
    line-height: 1.4;

    font-weight: 700;

    color: var(--inicio-azul);
}

.procedimiento-content span {
    font-size: .87rem;

    color: var(--inicio-suave);
}


/* =========================================================
   CONTACTO
========================================================= */

.contacto-inicio {
    max-width: 1180px;
}

.contacto-home-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) minmax(300px, .8fr);

    gap: 28px;

    margin-top: 36px;

    align-items: start;
}

.contacto-form-wrapper {
    background: var(--inicio-card);

    border: 1px solid var(--inicio-borde);

    border-radius: var(--inicio-radio);

    box-shadow: var(--inicio-sombra);

    overflow: hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.contacto-form-wrapper:hover {
    transform: translateY(-6px) scale(1.01);

    box-shadow: var(--inicio-sombra-h);
}

.contacto-form-wrapper .section-heading {
    margin: 0;

    padding: 24px 28px;

    background:
        linear-gradient(90deg,
            var(--inicio-rojo),
            #c62e46);
}

.contacto-form-wrapper .section-kicker {
    color: rgba(255, 255, 255, .85);
}

.contacto-form-wrapper .section-kicker::before {
    background: rgba(255, 255, 255, .8);
}

.contacto-form-wrapper .section-heading h2 {
    color: #fff;

    font-size: 1.8rem;
}

.contacto-form-wrapper form {
    padding: 28px;
}

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: var(--inicio-azul);

    font-size: .75rem;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .6px;
}

.form-group input,
.form-group textarea {
    width: 100%;

    padding: 12px 14px;

    border: 1.5px solid #dde3ed;

    border-radius: var(--inicio-radio-sm);

    outline: none;

    background: #f8fafc;

    color: var(--inicio-texto);

    font-size: .95rem;

    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--inicio-rojo);

    background: #fff;

    box-shadow:
        0 0 0 3px rgba(164, 18, 51, .08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

.form-group textarea {
    min-height: 120px;

    resize: vertical;
}

.contacto-submit {
    width: 100%;

    border: none;

    background:
        linear-gradient(90deg,
            var(--inicio-rojo),
            #d53a4f);

    color: #fff;

    box-shadow:
        0 5px 17px rgba(164, 18, 51, .20);
}

.contacto-submit:hover {
    background:
        linear-gradient(90deg,
            #8f102d,
            var(--inicio-rojo));

    color: #fff;

    box-shadow:
        0 9px 25px rgba(164, 18, 51, .30);
}


/* =========================================================
   INFORMACIÓN DE CONTACTO
========================================================= */

.contacto-info {
    display: flex;

    flex-direction: column;

    gap: 14px;
}

.contact-info-item {
    display: flex;

    align-items: flex-start;

    gap: 15px;

    padding: 18px 20px;

    background: var(--inicio-card);

    border: 1px solid var(--inicio-borde);

    border-radius: var(--inicio-radio-sm);

    box-shadow: var(--inicio-sombra);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.contact-info-item:hover {
    transform: translateY(-3px);

    box-shadow: var(--inicio-sombra-h);
}

.contact-info-item>i {
    width: 42px;
    height: 42px;

    min-width: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        linear-gradient(135deg,
            var(--inicio-azul),
            var(--inicio-azul-mid));

    color: #fff;

    font-size: 1rem;
}

.contact-info-item div {
    min-width: 0;
}

.contact-info-item span {
    display: block;

    margin-bottom: 4px;

    color: var(--inicio-suave);

    font-size: .7rem;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.contact-info-item strong,
.contact-info-item a {
    display: block;

    color: var(--inicio-texto);

    font-size: .92rem;
    font-weight: 600;

    line-height: 1.55;

    overflow-wrap: anywhere;
}

.contact-info-item a:hover {
    color: var(--inicio-rojo);
}


/* =========================================================
   CONVENIOS
========================================================= */

.convenios-section {
    padding-bottom: 40px;
}

.convenios-action {
    display: flex;

    justify-content: center;

    margin-top: 22px;
}

.convenios-action .inicio-btn {
    border-color: var(--inicio-azul);
}

.convenios-action .inicio-btn i {
    font-size: 1rem;
}


/* =========================================================
   CIERRE
========================================================= */

.cierre-section {
    padding-top: 24px;

    padding-bottom: 64px;
}


/* =========================================================
   WHATSAPP
========================================================= */

.inicio-whatsapp {
    position: fixed;

    right: 20px;
    bottom: 90px;

    z-index: 1000;
}

.whatsapp-fab {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 4px solid #fff;

    border-radius: 18px;

    background: #25d366;

    box-shadow:
        0 12px 28px rgba(7, 49, 73, .24);

    cursor: pointer;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.whatsapp-fab:hover {
    transform: translateY(-3px);

    box-shadow:
        0 16px 34px rgba(7, 49, 73, .3);
}

.whatsapp-fab i {
    color: #fff;
    font-size: 30px;
}

.whatsapp-popup {
    position: fixed;

    right: 88px;
    bottom: 86px;

    width: min(350px, calc(100vw - 32px));

    background: #f7fafb;

    border: 1px solid #d7e4e8;
    border-radius: 14px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .30);

    overflow: hidden;

    opacity: 1;

    transform: translateX(0);

    transition:
        opacity .3s ease,
        transform .3s ease;
}

.whatsapp-popup[hidden] {
    display: block;

    opacity: 0;

    pointer-events: none;

    transform: translateX(16px);
}

.whatsapp-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #073149;
    color: #fff;
}

.whatsapp-popup-header strong {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-size: 1rem;
}

.whatsapp-popup-header span {
    color: #91b6c5;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.whatsapp-popup-header button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.whatsapp-popup-header button:hover {
    background: rgba(255, 255, 255, .18);
}

.whatsapp-popup-body {
    padding: 16px;
}

.whatsapp-popup-body>p {
    margin: 0 0 14px;
    padding: 13px 14px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
    color: var(--inicio-texto);
    font-size: .92rem;
    line-height: 1.5;
}

.whatsapp-popup-body .whatsapp-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    color: #316151;
    font-size: .76rem;
    font-weight: 750;
}

.whatsapp-status span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #25d366;
}

.whatsapp-popup-body .whatsapp-intro {
    margin-bottom: 16px;
    color: #526b77;
    font-size: .88rem;
}

.whatsapp-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    border-radius: 9px;
    background: #25d366;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    transition: background .25s ease, transform .25s ease;
}

.whatsapp-chat-btn:hover {
    background: #1ebe5d;
    color: #fff;
    transform: translateY(-1px);
}

.whatsapp-chat-btn i {
    font-size: 1.1rem;
}


/* =========================================================
   TOAST
========================================================= */

.inicio-page .toast-ok {
    position: fixed;

    top: 24px;
    right: 24px;

    z-index: 9999;

    padding: 14px 20px;

    border-radius: var(--inicio-radio-sm);

    background: #22c55e;

    color: #fff;

    font-size: .9rem;
    font-weight: 700;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .15);

    opacity: 0;

    transform: translateY(-16px);

    pointer-events: none;

    transition:
        opacity .4s ease,
        transform .4s ease;
}

.inicio-page .toast-ok.show {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .quick-services-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .empresa-home-grid {
        grid-template-columns:
            210px 1fr;

        gap: 28px;

        padding: 30px;
    }

    .planta-item {
        height: 290px;
    }

    .contacto-home-grid {
        grid-template-columns:
            1fr 1fr;
    }
}


/* =========================================================
   TABLET PEQUEÑA
========================================================= */

@media (max-width: 800px) {

    .inicio-section {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .inicio-hero {
        padding: 15px 15px 0;
    }

    .inicio-hero .carousel {
        border-radius: 13px;
    }

    .empresa-home-grid {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .empresa-home-image {
        max-width: 230px;

        margin: 0 auto;
    }

    .empresa-home-content p {
        text-align: center;
    }

    .planta-gallery {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .planta-item {
        height: 270px;
    }

    .procedimientos-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .contacto-home-grid {
        grid-template-columns: 1fr;
    }

    .contacto-info {
        display: grid;

        grid-template-columns:
            1fr 1fr;
    }
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {

    .inicio-section {
        padding: 42px 15px;
    }

    .inicio-divider {
        width: calc(100% - 30px);
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .section-heading p {
        font-size: .92rem;
    }


    /* HERO */

    .inicio-hero {
        padding: 12px 10px 0;
    }

    .inicio-hero .carousel {
        border-radius: 11px;
    }

    .inicio-hero .carousel-control-prev-icon,
    .inicio-hero .carousel-control-next-icon {
        width: 34px;
        height: 34px;
    }

    .inicio-hero .carousel-indicators {
        margin-bottom: 10px;
    }


    /* AVISOS */

    .avisos-section {
        padding-top: 38px;
        padding-bottom: 42px;
    }

    .av-panel-header {
        padding: 16px 17px;
    }

    .av-panel-header>div {
        align-items: flex-start;

        flex-direction: column;

        gap: 7px;
    }

    .av-panel-header h3 {
        font-size: 1.35rem;
    }

    .av-scroll-box {
        padding: 15px;
    }

    .av-grid {
        grid-template-columns: 1fr;
    }

    .av-card {
        padding: 19px 16px;

        gap: 12px;
    }

    .av-card-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;

        font-size: 1rem;
    }

    .av-card h4 {
        font-size: 1rem;
    }

    .av-card p {
        font-size: .88rem;
    }


    /* QUICK */

    .quick-services-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;
    }

    .quick-service-card {
        padding: 20px 12px;
    }

    .quick-service-image {
        width: 78px;
        height: 78px;

        margin-bottom: 12px;
    }

    .quick-service-content h3 {
        font-size: .82rem;
    }


    /* ALIANZAS */

    .alianzas-card {
        padding: 26px 20px;
    }

    .alianzas-card p {
        font-size: .9rem;

        text-align: left;
    }


    /* EMPRESA */

    .empresa-home-grid {
        padding: 24px 18px;

        gap: 24px;
    }

    .empresa-home-content p {
        font-size: .92rem;

        text-align: left;

        line-height: 1.75;
    }

    .inicio-btn {
        width: 100%;
    }


    /* PLANTA */

    .planta-gallery {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .planta-item {
        height: 260px;
    }

    .planta-description {
        padding: 24px 19px;
    }

    .planta-description h3 {
        font-size: 1.65rem;
    }

    .planta-description p {
        font-size: .9rem;
    }


    /* PROCEDIMIENTOS */

    .procedimientos-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .procedimientos-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .procedimiento-image {
        height: 210px;
    }


    /* CONTACTO */

    .contacto-home-grid {
        margin-top: 26px;
    }

    .contacto-form-wrapper .section-heading {
        padding: 21px 19px;
    }

    .contacto-form-wrapper .section-heading h2 {
        font-size: clamp(1.35rem, 5vw, 1.7rem);
    }

    .contacto-form-wrapper form {
        padding: 20px 17px;
    }

    .contacto-info {
        grid-template-columns: 1fr;
    }


    /* WHATSAPP */

    .inicio-whatsapp {
        right: 14px;
        bottom: 78px;
    }

    .whatsapp-fab {
        width: 52px;
        height: 52px;
    }

    .whatsapp-fab img {
        width: 29px;
        height: 29px;
    }

    .whatsapp-popup {
        right: 14px;
        bottom: 140px;

        width: min(300px, calc(100vw - 28px));
    }


    /* TOAST */

    .inicio-page .toast-ok {
        top: 15px;
        right: 15px;
        left: 15px;

        text-align: center;
    }
}


/* =========================================================
   MÓVIL MUY PEQUEÑO
========================================================= */

@media (max-width: 380px) {

    .quick-services-grid {
        gap: 9px;
    }

    .quick-service-card {
        padding: 17px 8px;
    }

    .quick-service-image {
        width: 68px;
        height: 68px;
    }

    .quick-service-content h3 {
        font-size: .76rem;
    }

    .av-card {
        flex-direction: column;
    }

    .av-card-icon {
        margin-top: 0;
    }
}


/* =========================================================
   REDUCIR MOVIMIENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .inicio-page *,
    .inicio-page *::before,
    .inicio-page *::after {
        scroll-behavior: auto !important;

        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;
    }

    .fade-up {
        opacity: 1;
        transform: none;
    }
}