:root {
    --primary: #0a2540;
    --secondary: #1f6feb;
    --accent: #00d4ff;
    --dark: #0b1220;
    --light: #f8fafc;
    --gray: #6b7280;
    --card: rgba(255,255,255,0.75);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, sans-serif;
}

body {
    background: radial-gradient(circle at 10% 20%, #f0f7ff, #f8fafc 40%, #eef2ff 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    z-index: 1000;
}

.nav {
    max-width: 1200px;
    margin: auto;
    padding: 0.85rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 1.25rem;
    min-height: 4.25rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    min-width: 0;
    line-height: 0;
}

/* Wordmark completo: priorizar altura legible; el ancho escala con la proporción */
.logo img {
    display: block;
    width: auto;
    height: auto;
    max-height: 64px;
    max-width: min(100%, 440px);
    min-width: 0;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem 1rem;
    row-gap: 0.5rem;
}

.nav-pagelink {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 0.45rem 0.8rem;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-pagelink:hover {
    color: var(--secondary);
    background: rgba(31, 111, 235, 0.08);
    box-shadow: 0 6px 14px rgba(31, 111, 235, 0.12);
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.1rem;
}

.nav-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary);
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 1.1rem;
    line-height: 1;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease,
        box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-social__link:hover {
    color: #fff;
    background: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 8px 20px rgba(31, 111, 235, 0.28);
    transform: translateY(-1px);
}

.nav .btn-whatsapp,
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem 1.15rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: #0b1220;
    background: #5bb8ff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 6px 18px rgba(31, 111, 235, 0.2);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.btn-whatsapp:hover,
.nav .btn-whatsapp:hover {
    color: #0a1628;
    background: #3da8f5;
    box-shadow: 0 8px 22px rgba(31, 111, 235, 0.3);
    transform: translateY(-1px);
}

.btn-whatsapp i {
    font-size: 1.1rem;
}

.nav-toggle {
    display: none;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle:hover {
    background: rgba(31, 111, 235, 0.08);
    border-color: rgba(31, 111, 235, 0.25);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* ===== RESPONSIVE NAV ===== */
@media (max-width: 900px) {
    .nav {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.55rem 1rem;
        min-height: unset;
    }

    .logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .logo img {
        flex-shrink: 1;
        min-width: 0;
        max-height: 48px;
        max-width: min(100%, 300px);
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        right: 1rem;
        left: 1rem;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
        padding: 0.65rem 0.85rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        z-index: 1001;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-pagelink {
        width: 100%;
        padding: 0.55rem 0.5rem;
        border-radius: 8px;
    }

    .nav-social {
        justify-content: center;
        width: 100%;
        padding: 0.4rem 0 0.15rem;
        border-top: 1px solid #eef1f5;
    }

    .nav-social__link {
        width: 2.65rem;
        height: 2.65rem;
    }

    .nav .btn-whatsapp {
        width: 100%;
        text-align: center;
        margin-top: 0.15rem;
    }
}

/* ===== MAIN ===== */
main {
    min-height: 80vh;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: #d1d5db;
    padding: 3rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    align-items: start;
}

.footer-col--brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 2.5rem;
}

.footer-brand {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.footer-brand img {
    display: block;
    width: 100%;
    max-width: 400px;
    max-height: 64px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

.footer-brand:hover img {
    box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.35);
}

footer h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

footer p,
footer a {
    font-size: 0.9rem;
    color: #9ca3af;
    text-decoration: none;
}

footer a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #6b7280;
}

/* ===== BOTONES ===== */
.btn {
    background: linear-gradient(120deg, var(--secondary), #2563eb);
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.2px;
    display: inline-block;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(31,111,235,0.18);
}

.btn:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(31,111,235,0.24);
}

.btn-outline {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    background: transparent;
}

.btn i {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.btn:hover i {
    transform: translateX(4px);
}


.floating-contact {
    position: fixed;
    inset: auto 18px 18px auto;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    background: radial-gradient(circle at 25% 20%, rgba(255,255,255,0.08), transparent 40%), linear-gradient(140deg, #0f172a 0%, #112b54 50%, #1f6feb 100%);
    border: 1px solid rgba(255,255,255,0.18);
    color: #f8fafc;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.38), 0 6px 18px rgba(0,0,0,0.16);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease, width 0.2s ease, height 0.2s ease, padding 0.2s ease;
    width: 250px;
    max-width: calc(100% - 32px);
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backdrop-filter: blur(6px);
}

.floating-contact.collapsed {
    width: 88px;
    padding: 10px;
    gap: 8px;
    flex-direction: column;
    align-items: center;
}

.floating-contact::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255,255,255,0.08), transparent 40%, rgba(255,255,255,0.1));
    mix-blend-mode: screen;
}

.floating-contact::before {
    content: "";
    position: absolute;
    right: 12px;
    top: 12px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid #0f172a;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
}

.floating-contact:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 26px 58px rgba(15, 23, 42, 0.36), 0 10px 24px rgba(0,0,0,0.18);
    background: linear-gradient(120deg, #1f2937, #2563eb);
}

.floating-illustration {
    width: 100%;
    height: auto;
    border-radius: 14px;
    background: rgba(255,255,255,0.1);
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 12px 26px rgba(0,0,0,0.16);
    overflow: hidden;
}

.floating-contact.collapsed .floating-illustration {
    height: 66px;
    width: 66px;
    border-radius: 12px;
}

.floating-illustration img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}

.floating-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 700;
    line-height: 1.2;
}

.floating-contact.collapsed .floating-copy {
    display: none;
}

.floating-copy small {
    font-weight: 700;
    color: #cfe3ff;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.floating-copy strong {
    font-size: 1.18rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.floating-copy p {
    margin: 0;
    color: #e6edff;
    font-weight: 500;
    font-size: 0.96rem;
}

.floating-cta {
    margin-left: auto;
    background: rgba(255,255,255,0.12);
    height: 44px;
    width: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    color: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-contact.collapsed .floating-cta {
    margin-left: 0;
}

.floating-contact:hover .floating-cta {
    transform: translateY(-1px) scale(1.05);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), 0 6px 16px rgba(0,0,0,0.2);
}

.floating-contact:active {
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .floating-contact {
        width: 260px;
        max-width: calc(100% - 32px);
        inset: auto 12px 12px auto;
        gap: 10px;
        padding: 12px;
    }

    .floating-illustration {
        height: 90px;
    }

    .floating-contact.collapsed {
        width: 78px;
        padding: 9px;
    }

    .floating-contact.collapsed .floating-illustration {
        height: 58px;
        width: 58px;
    }

    .floating-copy strong {
        font-size: 1.04rem;
    }

    .floating-copy p {
        font-size: 0.88rem;
    }
}

.modal .badge.bg-primary-subtle {
    background: rgba(37, 99, 235, 0.12);
}

.modal .badge.bg-success-subtle {
    background: rgba(16, 185, 129, 0.12);
}

.modal-dialog {
    max-width: 760px;
}

.modal-content {
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.14), 0 8px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.modal-header {
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-weight: 700;
    color: #0f172a;
}

.modal-body {
    padding: 1.25rem 1.25rem 1.5rem;
}

.contact-form .row.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(31, 111, 235, 0.15);
}

.contact-form .form-label {
    font-weight: 600;
    color: #0f172a;
}

.contact-form small {
    color: #6b7280;
}

.contact-form .form-check {
    padding-left: 1.8rem;
}

.contact-form .form-check-input {
    margin-left: -1.8rem;
    margin-top: 0.35rem;
}

.contact-form .alert-success {
    border-radius: 12px;
}


/* ===== SECTIONS ===== */
section[id] {
    scroll-margin-top: 120px;
}

.section {
    max-width: 1200px;
    margin: auto;
    padding: 4rem 2rem;
}

.section h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.3px;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60%;
    height: 3px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.section-desc {
    max-width: 700px;
    color: #4b5563;
    margin-bottom: 3rem;
    font-size: 1rem;
}

/* ===== HERO ===== */
.hero-carousel {
    position: relative;
    height: 75vh;
}

.hero-carousel .carousel-inner {
    cursor: pointer;
}

.hero-carousel .carousel-item {
    height: 75vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-bg-modelado {
    background-image: url('../img/hero-modelado.png');
}

.hero-bg-hero {
    background-image: url('../img/hero.png');
}

.hero-bg-cloud {
    background-image: url('../img/hero-cloud.png');
}

.hero-carousel .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 37, 64, 0.6);
}

.hero-content {
    position: absolute;
    bottom: 18%;
    left: 5%;
    z-index: 2;
    width: min(92vw, 880px);
    max-width: 880px;
    box-sizing: border-box;
    color: white;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
    padding: 12px 16px 14px;
    background: linear-gradient(120deg, rgba(10,37,64,0.45), rgba(10,37,64,0.2));
    border-radius: 14px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-content h1 {
    font-size: clamp(1.5rem, 2.2vw + 1rem, 2.75rem);
    font-weight: 700;
    max-width: 100%;
    line-height: 1.1;
    margin: 0;
}

.hero-content p {
    margin: 0.45rem 0 0;
    font-size: clamp(0.95rem, 0.35vw + 0.9rem, 1.1rem);
    max-width: 100%;
    line-height: 1.4;
    color: #e5e7eb;
}

.hero-content p:first-of-type {
    margin-top: 0.5rem;
}

.hero-mascot {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.mascot-figure {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    background: rgba(255,255,255,0.12);
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.25);
}

.mascot-figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mascot-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #e5e7eb;
}

.mascot-text .eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.4px;
    color: #cbd5e1;
    text-transform: uppercase;
}

.mascot-text strong {
    font-size: 1.1rem;
}

.mascot-text p {
    margin: 0;
    color: #dbeafe;
    font-size: 0.95rem;
}

/* ===== HERO INDICATORS ===== */
.hero-indicators {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    padding: 0 0.75rem;
    z-index: 10;
    box-sizing: border-box;
}

.hero-indicators button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.7);
    color: #e5e7eb;
    padding: 0.45rem 0.85rem;
    border-radius: 20px;
    font-size: 0.88rem;
    line-height: 1.2;
    cursor: pointer;
    opacity: 0.85;
    transition: all 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,0.06);
}

.hero-indicators button.active,
.hero-indicators button:hover {
        background: linear-gradient(120deg, var(--secondary), #2563eb);
        border-color: rgba(255,255,255,0.9);
        color: #f8fafc;
        opacity: 1;
        box-shadow: 0 10px 25px rgba(31, 111, 235, 0.35);
        transform: translateY(-2px) scale(1.02);
}

/* ===== CARDS ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--card);
    padding: 1.6rem;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(15,23,42,0.08), 0 4px 10px rgba(0,0,0,0.04);
    border: 1px solid rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(15,23,42,0.12), 0 8px 18px rgba(0,0,0,0.08);
}

/* Sectores: lectura informativa, sin sugerir clic a modal */
.card.sector-card {
    cursor: default;
}
.card.sector-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15,23,42,0.10), 0 6px 14px rgba(0,0,0,0.06);
}

.card i {
    font-size: 1.8rem;
    color: var(--secondary);
}

.card-text p {
    margin: 0.15rem 0 0;
    color: #4b5563;
    font-size: 0.95rem;
}

.info-modal-figure {
    width: 100%;
    max-height: 260px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
}

.info-modal-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-content {
        left: 4%;
        width: min(94vw, 720px);
        max-width: 720px;
        padding: 10px 14px 12px;
        bottom: 16%;
    }

    .hero-content h1 {
        font-size: 1.85rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-top: 0.4rem;
    }
}

@media (max-width: 768px) {
    .hero-indicators {
        gap: 0.5rem;
        padding: 0 0.75rem;
        bottom: 14px;
    }

    .hero-indicators button {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
        line-height: 1.25;
        border-radius: 18px;
    }
}

@media (max-width: 576px) {
    .hero-carousel,
    .hero-carousel .carousel-item {
        height: 68vh;
    }

    /* Contenido arriba para dejar aire a las pestañas abajo */
    .hero-content {
        top: 6%;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        text-align: left;
        width: 94%;
        max-width: 520px;
        padding: 0.55rem 0.7rem 0.65rem;
        max-height: min(56vh, 400px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hero-content h1 {
        font-size: 1.4rem;
        margin: 0;
        line-height: 1.12;
    }

    .hero-content p {
        font-size: 0.82rem;
        margin: 0.32rem 0 0;
        max-width: 100%;
        line-height: 1.32;
    }

    .hero-content p:first-of-type {
        margin-top: 0.38rem;
    }

    /* Pestañas compactas: una franja baja con scroll horizontal */
    .hero-indicators {
        bottom: 6px;
        left: 0;
        right: 0;
        width: 100%;
        gap: 0.35rem;
        padding: 0 10px 4px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .hero-indicators::-webkit-scrollbar {
        height: 3px;
    }

    .hero-indicators::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.35);
        border-radius: 3px;
    }

    .hero-indicators button {
        flex: 0 0 auto;
        padding: 0.32rem 0.55rem;
        font-size: 0.68rem;
        line-height: 1.2;
        border-radius: 14px;
        max-width: min(78vw, 200px);
        white-space: normal;
        text-align: center;
        opacity: 0.95;
    }

    .hero-indicators button.active,
    .hero-indicators button:hover {
        transform: translateY(-1px) scale(1.01);
        box-shadow: 0 6px 14px rgba(31, 111, 235, 0.3);
    }

    .hero-mascot {
        flex-direction: column;
        align-items: flex-start;
        max-width: 320px;
    }

    .mascot-figure {
        width: 70px;
        height: 70px;
    }

    .nav {
        padding: 0.5rem 0.85rem;
    }

    .logo img {
        max-height: 44px;
        max-width: min(100%, 260px);
        height: auto;
    }
     
}
