﻿

:root {
    --color-primary: #9a1335;
    /* fondo vino principal */
    --color-primary-dark: #7e0625;
    --color-gold: #bc955c;
    --color-text-main: #333333;
    --color-text-muted: #7e7e7e;
    --color-bg: #f5f6fa;
    --color-card-border: #e5e5e5;
    --color-footer-bg: #333438;
    --color-footer-border-top: #ddc9a3;
    --color-footer-block: #2b2c30;
    --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text-main);
    background-color: #ffffff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

/* Top bar */

.topbar {
    font-size: 0.75rem;
    background-color: #f5f5f7;
    border-bottom: 1px solid #e5e5e8;
}

    .topbar a {
        color: #666666;
    }

        .topbar a:hover {
            color: var(--color-primary);
        }

/* Header */

.main-header {
    border-bottom: 1px solid #e1e1e5;
    background-color: #ffffff;
}

    .main-header .brand-line {
        font-size: 0.7rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #b8b8c0;
    }

    .main-header .brand-title {
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--color-primary);
    }

    .main-header .brand-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: #b8b8c0;
    }

.main-nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #8d8e96;
    padding: 0.2rem 0;
    border-bottom: 2px solid transparent;
}

    .main-nav-links a.active,
    .main-nav-links a:hover {
        color: var(--color-text-main);
        border-bottom-color: var(--color-primary);
    }

.nav-search-icon {
    font-size: 0.9rem;
    color: #c1c2c7;
    cursor: pointer;
}

/* Hero */

.hero {
    background-color: var(--color-primary);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    background: url(/images/sire/BANNER.png);
    background-size: cover;
    background-position: CENTER;
}

.hero-inner {
    padding-top: 3.8rem;
    padding-bottom: 4.3rem;
    position: relative;
}

.hero-left {
    max-width: 620px;
}

.hero-pretitle {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #e3c985;
}

.hero-title-line-1 {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f5d9a0;
    margin-bottom: 0.6rem;
}

.hero-title-main {
    font-size: 2.4rem;
    font-weight: 300;
}

    .hero-title-main strong {
        font-weight: 700;
    }

.hero-text {
    font-size: 0.95rem;
    margin-top: 1.1rem;
    line-height: 1.6;
}

.hero-buttons {
    margin-top: 1.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-hero-gold {
    background-color: var(--color-gold);
    color: #ffffff;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 0;
    padding: 0.85rem 2.4rem;
    border: none;
}

    .btn-hero-gold:hover {
        background-color: #b08430;
        color: #ffffff;
    }

.btn-hero-outline {
    background-color: transparent;
    color: #ffffff;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 0;
    padding: 0.85rem 2.4rem;
    border: 1px solid #ffffff;
}

    .btn-hero-outline:hover {
        background-color: #ffffff;
        color: var(--color-primary);
    }

.hero-divider {
    width: 2px;
    background-color: #c89a3c;
    height: 110px;
    margin-right: 1.8rem;
}

.hero-layout {
    display: flex;
}

.hero-right-diagonal {
    position: absolute;
    right: -150px;
    bottom: -170px;
    width: 550px;
    height: 230px;
    background-color: var(--color-primary-dark);
    transform: rotate(-8deg);
}

    .hero-right-diagonal::before {
        content: "";
        position: absolute;
        inset: 35px 0 35px 0;
        background-color: #3b0213;
    }

/* Sección Trámites destacados */

.section-featured {
    background-color: #ffffff;
    padding: 3.5rem 0 3.2rem;

}

    .section-featured .eyebrow {
        font-size: 0.8rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--color-primary);
    }

    .section-featured .title {
        font-size: 1.8rem;
        font-weight: 300;
    }

        .section-featured .title span {
            font-weight: 700;
        }

    .section-featured .subtitle {
        margin-top: 0.6rem;
        font-size: 0.9rem;
        color: var(--color-text-muted);
    }

/* Cards */

.btn-link-vino {
    text-transform: uppercase;
    font-weight: 500;
}

/* --- CARD BASE --- */
.card-tramite {
    position: relative;
    border-radius: 4px;
    background: #fff;
    border-top: 4px solid #990F33;
    /* color vino */
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    transition: all 0.3s ease;
}

    .card-tramite::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background-color: #f1f1f1;
    }

.card-tramite-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e3e3e7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.card-tramite-title {
    font-size: 1.15rem;
    font-weight: 600;
}

.card-tramite-subtitle {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
    margin-bottom: 0.9rem;
}

.card-tramite-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.4rem;
}

.card-tramite-link {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-primary);
}

    .card-tramite-link svg {
        width: 12px;
        height: 12px;
        margin-left: 0.4rem;
    }

.card-tramite-footer {
    background: #F7F7F7;
    padding: 1rem 1.3rem;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    font-size: 0.85rem;
    color: #8a8a8a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Card Mi Pago (roja) */

.card-tramite.red {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: #8c0423;
}

    .card-tramite.red::before {
        background-color: #8c0423;
    }

.card-tramite-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #F2F2F2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

    /* Ícono SVG */
    .card-tramite-icon svg {
        width: 28px;
        height: 28px;
        stroke: #990F33;
        transition: all 0.3s ease;
    }

.card-tramite.red .card-tramite-subtitle,
.card-tramite.red .card-tramite-text,
.card-tramite.red .card-tramite-footer {
    color: rgba(255, 255, 255, 0.85);
}

.card-tramite.red .card-tramite-link {
    color: #ffffff;
}


/* Subtítulo */
.card-tramite-subtitle {
    color: #C6A46D;
    letter-spacing: 0.1em;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Título */
.card-tramite-title {
    color: #333;
    font-weight: 700;
    font-size: 1.3rem;
}

/* Línea divisoria */
.card-tramite hr {
    opacity: 0.2;
    border: none;
    border-bottom: 1px solid #000;
    margin: 1rem 0;
}

/* Hover del card */
.card-tramite:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

    /* Hover del ícono */
    .card-tramite:hover .card-tramite-icon {
        background: #990F33;
    }

        .card-tramite:hover .card-tramite-icon svg {
            stroke: #fff;
        }


/* --- CARD ROJO ("Mi Pago") --- */
.card-tramite.red {
    background: #9B0D34;
    /* vino principal */
    border-top: 4px solid #B1133F;
    color: #fff;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

    /* Ícono */
    .card-tramite.red .card-tramite-icon {
        width: 55px;
        height: 55px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .1);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1.2rem;
        transition: all 0.3s ease;
    }

        .card-tramite.red .card-tramite-icon svg {
            width: 28px;
            height: 28px;
            stroke: #fff;
            opacity: .8;
            transition: all 0.3s ease;
        }

    /* Subtítulo */
    .card-tramite.red .card-tramite-subtitle {
        color: #D4B07C;
        letter-spacing: 0.1em;
        font-size: 0.82rem;
        font-weight: 500;
        margin-bottom: 1rem;
    }

    /* Divisor */
    .card-tramite.red hr {
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, .2);
        margin: 1rem 0;
    }

    /* Texto */
    .card-tramite.red p {
        color: rgba(255, 255, 255, .9);
    }

    /* Enlace */
    .card-tramite.red a {
        color: #fff;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 0.07em;
    }

        .card-tramite.red a svg {
            stroke: #fff;
        }

    /* Footer */
    .card-tramite.red .card-tramite-footer {
        background: rgba(0, 0, 0, 0.1);
        padding: 1rem 1.3rem;
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
        color: rgba(255, 255, 255, .8);
        font-size: 0.85rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Hover */
    .card-tramite.red:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    }

        .card-tramite.red:hover .card-tramite-icon {
            background: white;
        }

            .card-tramite.red:hover .card-tramite-icon svg {
                opacity: 1;
                border-color: #9B0D34;
                stroke: #9B0D34;
            }


/* Accesos rápidos */

/* Contenedor general */
.quick-access {
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
    gap: 2rem;
}

/* Cada item */
.qa-item {
    text-align: center;
    cursor: pointer;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    transition: all .3s ease;
    padding-right: 90px;
    padding-left: 90px;
    border: 1px solid var(--color-card-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    color: var(--color-text-main);
}

/* Ícono circular */
.qa-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #F3F3F3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .6rem auto;
    transition: all .25s ease;
}

    .qa-icon svg {
        color: #5A5A5A;
        transition: all .25s ease;
    }

/* Texto */
.qa-item span {
    font-size: .95rem;
    color: #555;
    transition: all .25s ease;
}

/* HOVER → Aquí sucede la magia */
.qa-item:hover {
    background: #fff;
    box-shadow: 0 8px 20px rgba(154, 19, 53, 0.15); /* Sombra con tono institucional */
    transform: translateY(-5px);
    border-color: var(--color-primary); /* Borde color vino */
    color: var(--color-primary); /* Texto e icono cambian a color vino */
}

    .qa-item:hover .qa-icon {
        background: #98143B;
        /* vino institucional */
    }

        .qa-item:hover .qa-icon svg {
            color: #fff;
        }

    .qa-item:hover span {
        color: #98143B;
    }

/* RESPONSIVE */
@media(max-width: 992px) {
    .quick-access {
        flex-wrap: wrap;
    }

    .qa-item {
        width: 48%;
    }
}

@media(max-width: 576px) {
    .qa-item {
        width: 100%;
    }
}


/* Footer */

.site-footer {
    margin-top: 3.5rem;
    background-color: var(--color-footer-bg);
    color: #f3f3f5;
    border-top: 4px solid var(--color-footer-border-top);
    font-size: 0.82rem;
}

.site-footer-inner {
    padding-top: 2.5rem;
    padding-bottom: 1.3rem;
}

.footer-logo {
    margin-bottom: 0.9rem;
}

.footer-logo-placeholder {
    width: 160px;
    height: 28px;
    background-color: #55565a;
}

.footer-text-muted {
    color: #c6c6cc;
    font-size: 0.8rem;
}

.footer-column-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.8rem;
}

.footer-list {
    list-style: none;
    padding-left: 0;
}

    .footer-list li + li {
        margin-top: 0.25rem;
    }

    .footer-list a {
        color: #e3e3e7;
    }

        .footer-list a:hover {
            color: #ffffff;
        }

.footer-emergency-block {
    background-color: var(--color-footer-block);
    border-radius: 3px;
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.6rem;
}

.footer-emergency-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.footer-emergency-number {
    font-size: 1.4rem;
    font-weight: 600;
}

.footer-emergency-block.red {
    background-color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid #45464a;
    margin-top: 1.6rem;
    padding-top: 0.9rem;
    font-size: 0.75rem;
    color: #b4b4ba;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Responsivo */

@media (max-width: 992px) {
    .hero-inner {
        padding-top: 2.8rem;
        padding-bottom: 3.5rem;
    }

    .hero-layout {
        flex-direction: row;
    }

    .hero-right-diagonal {
        display: none;
    }

    .section-featured {
        padding-top: 2.8rem;
    }

    .quick-links .row > div + div {
        margin-top: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-layout {
        flex-direction: column;
    }

    .hero-divider {
        display: none;
    }

    .hero-left {
        max-width: 100%;
    }

    .hero-title-main {
        font-size: 2rem;
    }

    .section-featured .title {
        font-size: 1.6rem;
    }

    .quick-links .row > div {
        margin-bottom: 1rem;
    }
}



.form-control:focus {
    box-shadow: 0 0 0 .25rem rgba(165, 142, 80, 0.25);
}





/* ========= CARD ÚNICA (RESPONSIVA) ========= */
.sire-ann-card {
    width: 100%;
    max-width: 860px; /* puedes quitarlo si quieres full ancho */
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

/* --- Parte superior con imagen --- */
.sire-ann-top {
    position: relative;
    min-height: 220px; /* alto base, responsivo */
    background-image: url("https://www.tamaulipas.gob.mx/educacion/wp-content/uploads/sites/3/2016/10/maestros-2022.jpg");
    background-size: cover;
    background-position: center;
}

/* Overlay oscuro (negro con transparencia) */
.sire-ann-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.42);
}

/* Texto superior (fecha + título) */
.sire-ann-content {
    position: absolute;
    left: 26px;
    bottom: 28px;
    right: 26px;
    color: #fff;
    z-index: 2;
}

.sire-ann-date {
    font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 14px;
    letter-spacing: .02em;
    opacity: .95;
    margin-bottom: 6px;
}

.sire-ann-title {
    font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: .02em;
    color: #f2a11f; /* naranja/ámbar como referencia */
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 20px;
}

/* --- Parte inferior roja con onda --- */
.sire-ann-bottom {
    position: relative;
    background: #b10f2f; /* rojo vino */
    padding: 26px 26px 28px;
    min-height: 118px;
}

/* Onda (banda dorada + sombra blanca) */
.sire-ann-wave {
    position: absolute;
    left: 0;
    right: 0;
    top: -36px;
    height: 62px;
    background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,0));
    pointer-events: none;
}

    /* Banda dorada inclinada */
    .sire-ann-wave::before {
        content: "";
        position: absolute;
        inset: 0;
        background: #caa36a; /* dorado */
        clip-path: polygon(0 55%, 100% 15%, 100% 65%, 0 100%);
        opacity: .95;
    }

    /* Banda blanca suave arriba de la dorada (sensación de “doble capa”) */
    .sire-ann-wave::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,.85);
        clip-path: polygon(0 25%, 100% 0, 100% 35%, 0 60%);
        filter: blur(.2px);
        opacity: .75;
    }

/* Descripción inferior */
.sire-ann-desc {
    position: relative;
    z-index: 2;
    font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255,255,255,.95);
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
    .sire-ann-card {
        border-radius: 16px;
    }

    .sire-ann-top {
        min-height: 200px;
    }

    .sire-ann-content {
        left: 18px;
        right: 18px;
        bottom: 22px;
    }

    .sire-ann-title {
        font-size: 34px;
    }

    .sire-ann-bottom {
        padding: 22px 18px 24px;
    }

    .sire-ann-desc {
        font-size: 13.5px;
    }
}

@media (max-width: 420px) {
    .sire-ann-top {
        min-height: 185px;
    }

    .sire-ann-title {
        font-size: 28px;
    }

    .sire-ann-date {
        font-size: 13px;
    }
}










/* ===== CONTENEDOR ===== */
#announcements-slider {
    margin-top: 30px;
}

    /* Track limpio */
    #announcements-slider .splide__track {
        overflow: hidden;
    }

    /* Slide */
    #announcements-slider .splide__slide {
        display: flex;
        justify-content: center;
        transition: transform .6s ease, opacity .6s ease;
    }

    /* Animación premium */
    #announcements-slider .splide__slide {
        opacity: .55;
        transform: scale(.96);
    }

        #announcements-slider .splide__slide.is-active {
            opacity: 1;
            transform: scale(1);
        }




/* Opcional: sombra suave */
.sire-ann-card {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

/* ===== FLECHAS SPLIDE ===== */
#announcements-slider .splide__arrow {
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,.55);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, transform .25s ease;
    box-shadow: 0 0 0 rgba(255,255,255,0);
}

/* Posición lateral */
#announcements-slider .splide__arrow--prev {
    left: -22px;
}

#announcements-slider .splide__arrow--next {
    right: -22px;
}

/* Icono */
#announcements-slider .splide__arrow svg {
    fill: none;
    stroke: #fff;
    stroke-width: 2.2;
}

/* Hover */
#announcements-slider .splide__arrow:hover {
    background: rgba(0,0,0,.75);
    box-shadow: 0 0 0 6px rgba(255,255,255,.15);
}

/* Estado disabled (por accesibilidad) */
#announcements-slider .splide__arrow:disabled {
    opacity: .35;
    cursor: not-allowed;
}




#announcements-slider .splide__track {
    padding-bottom: 70px; /* espacio para sombra */
}


/* sombra activa */
#announcements-slider .splide__slide.is-active .sire-ann-card {
    box-shadow: -1px 23px 22px 5px rgba(0,0,0,0.49);
    -webkit-box-shadow: -1px 23px 22px 5px rgba(0,0,0,0.49);
    -moz-box-shadow: -1px 23px 22px 5px rgba(0,0,0,0.49);
}


.container .text-muted {
    --bs-text-opacity: 1;
    color: rgb(207 146 71) !important;
}


/* Limitar texto de anuncios a 4 líneas */
.text-truncate-multiline {
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Cambia este número si quieres más o menos líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Efecto hover para enlaces del footer */
.hover-gold {
    transition: color 0.3s ease;
}
.hover-gold:hover {
    color: var(--color-gold) !important;
}

/* Efecto hover para el bloque FONE */
.footer-emergency-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

