/* ===== CSS Variables ===== */
:root {
    --brand-orange: #D34328;
    --brand-navy: #1c375e;
    --brand-dark: #3d6698;
    --transition: all 0.3s ease;
}

/* ===== NAVBAR ===== */
nav.navbar {
    position: sticky !important;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--brand-orange);
    transition: var(--transition);
    padding: 2vh 2vw !important;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.navbar-spacer {
    flex: 1 1 0;
    min-width: 0;
}

.navbar-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}

.responsive-logo {
    max-height: 10vh;
    max-width: 90%;
    width: auto;
    height: auto;
}

.navbar-divider {
    width: clamp(120px, 30vw, 280px);
    height: 1px;
    background: linear-gradient(90deg, transparent, #D34328 30%, #D34328 70%, transparent);
    margin: 0.5vh 0;
    opacity: 0.6;
}

.navbar-subtitle {
    color: var(--brand-orange);
    font-size: clamp(0.62rem, 1.6vw, 0.82rem);
    font-weight: 300;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.22em;
    margin: 0.3vh 0 0.6vh;
    opacity: 0.9;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== HEADER STAMP ===== */
.header-stamp {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.header-stamp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: clamp(170px, 18vw, 220px);
    background: linear-gradient(135deg, #fdfdfe 0%, #f3f4f7 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(211, 67, 40, 0.25), 0 1px 6px rgba(211, 67, 40, 0.15);
    overflow: hidden;
    flex-shrink: 0;
}

.stamp-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 1.2vw, 16px);
    gap: 3px;
    border: 1px solid rgba(28, 55, 94, 0.06);
}

.stamp-value {
    color: var(--brand-orange);
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 800;
    font-family: 'Lato', sans-serif;
    line-height: 1;
}

.stamp-icon {
    color: var(--brand-orange);
    font-size: clamp(0.85rem, 1.4vw, 1.1rem);
    line-height: 1;
}

.stamp-label {
    color: var(--brand-navy);
    font-size: clamp(0.45rem, 0.85vw, 0.6rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
    text-align: center;
}

.stamp-label-main {
    font-size: clamp(0.8rem, 1.4vw, 1.05rem);
    letter-spacing: 0.3em;
}

@media (max-width: 992px) {
    .navbar-inner {
        flex-direction: column;
        gap: 1.5vh;
    }
    .navbar-spacer {
        display: none;
    }
    .header-stamp {
        flex: none;
    }
    .header-stamp-grid {
        width: 170px;
    }
}

@media (max-width: 768px) {
    .responsive-logo { max-height: 8vh; max-width: 80%; }
    .navbar-subtitle {
        flex-direction: column;
    }
    .navbar-subtitle-sep {
        margin: 0.2em 0;
    }
}

@media (max-width: 480px) {
    .responsive-logo { max-height: 9vh; max-width: 75%; }
    .header-stamp-grid {
        width: 150px;
    }
}

/* ===== HERO / MASTHEAD ===== */
header.masthead {
    padding: 0 0 2rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--brand-dark) !important;
    background-image: none !important;
}

header.masthead:before {
    display: none;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    width: 100%;
    height: 260px;
    position: relative;
    text-align: center;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 8vw;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}


.hero-title {
    color: #ffffff;
    font-size: clamp(1.6rem, 4.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 1.2rem;
    line-height: 1.15;
}

.hero-text {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    line-height: 1.7;
    max-width: 640px;
    margin: 0;
}

.hero-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.hero-dot {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, width 0.3s;
}

.hero-dot.active {
    background: var(--brand-orange);
    width: 42px;
}

@media (max-width: 768px) {
    .hero-slider { padding: 2.5vh 6vw; }
    .hero-title { font-size: clamp(1.3rem, 4vw, 2rem); }
    .hero-text { font-size: clamp(0.9rem, 2.5vw, 1.1rem); }
}

@media (max-width: 480px) {
    .hero-slider { padding: 2vh 5vw; }
    .hero-title { font-size: clamp(1.1rem, 3.5vw, 1.5rem); }
    .hero-text { font-size: clamp(0.85rem, 2vw, 1rem); }
}


/* ===== FEATURES SECTION ===== */
.features-icons {
    background: linear-gradient(180deg, #f0f2f5 0%, #ffffff 100%) !important;
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.features-icons h3 {
    line-height: 1.55;
    color: #2a2a2a;
}

.features-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 2.2rem 1.8rem;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.07);
    transition: transform 0.32s ease, box-shadow 0.32s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.features-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 38px rgba(211, 67, 40, 0.14);
}

.features-icons .features-icons-item {
    max-width: 22rem;
}

.features-icons .features-icons-icon {
    height: 5.5rem;
}

.features-icons .features-icons-icon i {
    font-size: 3.5rem;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background: var(--brand-dark);
    padding: 5rem 0;
}

.services-heading {
    color: #fff;
    text-align: center;
    letter-spacing: 0.08em;
    margin-bottom: 3rem;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 8px rgba(211, 67, 40, 0.18), 0 16px 40px rgba(0, 0, 0, 0.3);
}

.service-card-img {
    height: 175px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.service-card-body {
    padding: 1.4rem 1.5rem 1.6rem;
    border-top: 3px solid transparent;
    transition: border-color 0.3s;
    flex: 1;
}

.service-card:hover .service-card-body {
    border-top-color: var(--brand-orange);
}

.service-card-body h3 {
    color: var(--brand-navy);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.service-card-body p {
    color: #666;
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: linear-gradient(180deg, #ffffff 0%, #f0f2f5 100%) !important;
}

.contact-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 2.2rem 1.8rem;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(28, 55, 94, 0.13);
}

.contact-card a {
    color: var(--brand-navy);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-card a:hover {
    color: var(--brand-orange);
}

/* ===== CTA / FORM SECTION ===== */
.call-to-action {
    background: var(--brand-dark) !important;
    background-image: none !important;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.call-to-action:before {
    display: none;
}

.call-to-action h2 {
    letter-spacing: 0.08em;
    font-size: clamp(1.2rem, 3vw, 1.6rem) !important;
    margin-bottom: 1.2rem !important;
}

.call-to-action .hstack > .vstack {
    flex: 1;
    min-width: 0;
}

@media (max-width: 480px) {
    .call-to-action .hstack.row-servicio {
        flex-direction: column;
        gap: 0;
    }
}

.call-to-action label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    opacity: 0.8;
    margin-bottom: 0.2rem;
    margin-top: 0.6rem;
    display: block;
}

.call-to-action .form-control,
.call-to-action .form-select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
    border-radius: 8px !important;
    backdrop-filter: blur(4px);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    font-size: 0.92rem;
}

.call-to-action .form-control::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.call-to-action .form-control:focus,
.call-to-action .form-select:focus {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: var(--brand-orange) !important;
    box-shadow: 0 0 0 3px rgba(211, 67, 40, 0.28) !important;
    color: #fff !important;
    outline: none;
}

.call-to-action .form-select option {
    background: #1c375e;
    color: #fff;
}

.call-to-action .btn-submit {
    background: var(--brand-orange);
    border: none;
    color: #fff;
    padding: 0.75rem 3rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
    cursor: pointer;
}

.call-to-action .btn-submit:hover {
    background: #b8361e;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(211, 67, 40, 0.45);
}

/* ===== FOOTER ===== */
footer.footer {
    background: #ffffff !important;
    padding: 3rem 1rem !important;
    border-top: 3px solid var(--brand-orange);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.06);
}

footer.footer p {
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.82rem;
    margin: 0;
    letter-spacing: 0.03em;
}

footer.footer img {
    height: 45px !important;
    max-width: 90%;
}

@media (max-width: 768px) {
    footer.footer { padding: 2rem 1rem !important; }
    footer.footer img { height: 38px !important; }
}

@media (max-width: 480px) {
    footer.footer img { height: 32px !important; }
    footer.footer p { font-size: 0.72rem; }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
