: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.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    letter-spacing: 0.3px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav a {
    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 a:hover {
    color: var(--secondary);
    background: rgba(31, 111, 235, 0.08);
    box-shadow: 0 6px 14px rgba(31,111,235,0.12);
}

.nav-toggle {
    display: none;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.4rem 0.6rem;
    font-size: 1.3rem;
    color: var(--primary);
    cursor: pointer;
}

/* ===== RESPONSIVE NAV ===== */
@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 12px);
        right: 1rem;
        left: 1rem;
        background: rgba(255,255,255,0.98);
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
        padding: 0.8rem 1rem;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        z-index: 1001;
    }

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

    .nav a {
        width: 100%;
        padding: 0.5rem 0.4rem;
    }

    .nav .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== 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;
}

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-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: 20%;
    left: 10%;
    z-index: 2;
    max-width: 1100px;
    color: white;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
    padding: 18px 22px;
    background: linear-gradient(120deg, rgba(10,37,64,0.38), rgba(10,37,64,0.18));
    border-radius: 16px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.08);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    max-width: 800px;
}

.hero-content p {
    margin-top: 1rem;
    font-size: 1.2rem;
    max-width: 700px;
    color: #e5e7eb;
}

.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: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
    z-index: 10;
}

.hero-indicators button {
    background: transparent;
        border: 1px solid rgba(255,255,255,0.7);
        color: #e5e7eb;
        padding: 0.6rem 1.1rem;
        border-radius: 22px;
        font-size: 0.95rem;
    cursor: pointer;
        opacity: 0.8;
        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);
}

.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 h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

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

    .hero-content {
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 92%;
        padding: 0.75rem 1rem 1.2rem;
    }

    .hero-content h1 {
        font-size: 1.65rem;
        margin: 0 auto;
    }

    .hero-content p {
        font-size: 0.92rem;
        margin: 0.65rem auto 0;
        max-width: 95%;
        line-height: 1.4;
    }

    .hero-indicators {
        bottom: 10px;
        gap: 0.5rem;
        flex-wrap: wrap;
        padding: 0 0.8rem;
    }

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

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

    .nav {
        padding: 1rem;
    }

    .logo img {
        height: 40px;
    }
     
}
