* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-padding-top: 80px;
}

body {
    background-color: #05080e;
    color: #cbd5e1;
    line-height: 1.7;
    scroll-behavior: smooth;
    overflow-x: hidden;
    padding-top: 72px;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.page-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.08);
}

.hero,
.page-panel {
    position: relative;
    z-index: 1;
    scroll-margin-top: 80px;
}

.page-panel {
    background: rgba(2, 6, 23, 0.58);
    color: #f8fafc;
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

img {
    max-width: 100%;
    height: auto;
}

.page-bg img {
    max-width: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #010101;
    border-bottom: 1px solid #010101;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-logo {
    height: 38px;
    width: auto;
    display: block;
}

.navbar nav a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 25px;
    font-size: 1.05rem;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar nav a:hover {
    color: #38bdf8;
}

.btn-cta {
    background-color: #0284c7;
    padding: 9px 20px;
    border-radius: 4px;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.btn-cta:hover {
    background-color: #38bdf8;
    color: #05080e !important;
}

.btn-cta-quote {
    background: #0284c7;
    margin-left: 12px;
}

.btn-cta-outline {
    background: transparent !important;
    color: #e2e8f0 !important;
    border: 1px solid #38bdf8;
    box-shadow: none;
}

.btn-cta-outline:hover {
    background: #0284c7 !important;
    color: #fff !important;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid #1b283d;
    border-radius: 8px;
    background: #0d1522;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #e2e8f0;
    transition: transform 0.2s, opacity 0.2s;
}

/* Hero Section */
.hero {
    padding: 72px 20px 80px;
    text-align: left;
    position: relative;
    overflow: hidden;
    background: transparent;
    border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}

.hero-layout {
    position: relative;
    z-index: 3;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.22) 0%, rgba(2, 6, 23, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: none;
    margin: 0;
}

.hero-content h1 {
    font-size: 2.8rem;
    color: #f8fafc;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.9), 0 0 30px rgba(56, 189, 248, 0.4);
    font-weight: 700;
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.12rem;
    color: #e2e8f0;
    max-width: 640px;
    margin: 0 0 28px 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
    font-weight: 400;
}

.btn-main {
    display: inline-block;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    padding: 16px 38px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    box-shadow: 0 6px 30px rgba(2, 132, 199, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(56, 189, 248, 0.7);
}

/* Quiénes Somos / Misión / Visión */
.about-section {
    padding: 90px 20px;
    text-align: center;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
}

.about-logo-wrapper {
    margin: 0 auto 36px auto;
    max-width: 560px;
    background: #000000;
    border-radius: 20px;
    padding: 28px 36px 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.about-main-logo {
    width: 100%;
    height: auto;
    display: block;
}

.about-section h2 {
    font-size: 2.3rem;
    color: #f8fafc;
    margin-bottom: 25px;
}

.about-description {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 950px;
    margin: 0 auto 30px auto;
    line-height: 1.85;
    text-align: justify;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 30px;
    text-align: left;
    margin-top: 45px;
}

.mv-card {
    background-color: #0d1522;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #1b283d;
    border-top: 3px solid #38bdf8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.mv-card h3 {
    color: #38bdf8;
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.mv-card p {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.75;
}

/* Services Section */
.services {
    padding: 90px 20px;
    text-align: center;
}

.services h2,
.services .service-grid,
.services .portal-box {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.services h2 {
    font-size: 2.3rem;
    margin-bottom: 45px;
    color: #f8fafc;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 30px;
}

.service-card {
    background-color: #0d1522;
    padding: 40px 35px;
    border-radius: 16px;
    border: 1px solid #1b283d;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
    border-color: #38bdf8;
    transform: translateY(-3px);
}

.service-card h3 {
    color: #38bdf8;
    margin-bottom: 18px;
    font-size: 1.35rem;
}

.service-card p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Ventajas y Seguridad */
.advantages-section {
    padding: 90px 20px;
    text-align: center;
}

.advantages-container {
    max-width: 1150px;
    margin: 0 auto;
}

.advantages-section h2 {
    font-size: 2.3rem;
    color: #f8fafc;
    margin-bottom: 20px;
}

.advantages-intro {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
}

.subsection-title {
    font-size: 1.6rem;
    color: #38bdf8;
    margin-bottom: 35px;
    font-weight: 600;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 25px;
    text-align: left;
}

.advantage-card {
    background-color: #0d1522;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #1b283d;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: border-color 0.3s, transform 0.3s;
}

.advantage-card:hover {
    border-color: #38bdf8;
    transform: translateY(-3px);
}

.advantage-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0284c7;
    margin-bottom: 12px;
    opacity: 0.85;
}

.advantage-card h3 {
    color: #f8fafc;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.advantage-card p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
}

.advantage-card-full {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 25px;
}

.advantage-card-full .advantage-number {
    margin-bottom: 0;
    font-size: 2.5rem;
}

/* Coverage Section */
.coverage {
    padding: 90px 20px;
    text-align: center;
}

.coverage-container {
    max-width: 1050px;
    margin: 0 auto;
}

.coverage h2 {
    font-size: 2.3rem;
    color: #f8fafc;
    margin-bottom: 15px;
}

.coverage-subtitle {
    color: #cbd5e1;
    font-size: 1.15rem;
    margin-bottom: 35px;
}

.map-wrapper {
    margin: 20px 0 40px 0;
    padding: 20px;
    background-color: #0d1522;
    border: 1px solid #1b283d;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.coverage-map {
    width: 100%;
    max-width: 780px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
}

.route-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.route-list li {
    background-color: #0d1522;
    border: 1px solid #1b283d;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 1.05rem;
    color: #38bdf8;
    font-weight: 500;
}

/* Portal de Clientes y Proveedores */
.portal-section {
    padding: 90px 20px;
    text-align: center;
}

.portal-container {
    max-width: 1000px;
    margin: 0 auto;
}

.portal-section h2 {
    font-size: 2.3rem;
    color: #f8fafc;
    margin-bottom: 15px;
}

.portal-description {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

.portal-box {
    background-color: #0d1522;
    border: 1px solid #1b283d;
    border-top: 3px solid #38bdf8;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    margin-top: 50px;
}

.portal-info {
    flex: 1;
    min-width: 0;
}

.portal-info h3 {
    color: #38bdf8;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.portal-info p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
}

.portal-info ul {
    list-style: none;
    padding: 0;
}

.portal-info ul li {
    color: #cbd5e1;
    font-size: 1.05rem;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.portal-info ul li::before {
    content: "▪";
    color: #38bdf8;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.portal-action {
    display: flex;
    justify-content: center;
}

.btn-portal {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    padding: 16px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 6px 25px rgba(2, 132, 199, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    white-space: nowrap;
}

.btn-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.6);
    background: linear-gradient(135deg, #0369a1, #0284c7);
}

.portal-arrow {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

/* Footer / Contacto */
.footer-section {
    padding: 80px 20px 35px 20px;
    text-align: center;
}

.footer-container {
    max-width: 850px;
    margin: 0 auto;
}

.footer-section h2 {
    color: #f8fafc;
    font-size: 2.1rem;
    margin-bottom: 30px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: 45px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #cbd5e1;
    font-size: 1.1rem;
    text-align: left;
    width: 100%;
    max-width: 680px;
    background-color: #0d1522;
    padding: 16px 22px;
    border-radius: 16px;
    border: 1px solid #1b283d;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.contact-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    stroke: #38bdf8;
}

.contact-item a {
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    text-decoration: underline;
    color: #7dd3fc;
}

.copy {
    color: #94a3b8;
    font-size: 0.95rem;
    border-top: 1px solid #162235;
    padding-top: 25px;
}

.mv-card,
.service-card,
.advantage-card,
.portal-box,
.contact-item,
.map-wrapper {
    background-color: rgba(13, 21, 34, 0.9);
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.trust-badges span {
    background: rgba(2, 132, 199, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #e0f2fe;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cotizador-card {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid #1e3a5f;
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    scroll-margin-top: 90px;
}

.cotizador-card h2 {
    font-size: 1.25rem;
    margin-bottom: 6px;
    color: #f8fafc;
}

.cotizador-hint {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 14px;
    text-shadow: none;
}

.cotizador-card label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    margin: 10px 0 6px;
}

.cotizador-card input,
.cotizador-card select {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid #1e3a5f;
    background: #020617;
    color: #f8fafc;
    font-size: 16px;
}

.btn-calcular {
    width: 100%;
    margin-top: 16px;
    text-align: center;
}

.cotizador-resultado {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #1e3a5f;
    font-size: 0.95rem;
}

.cotizador-aviso,
.cotizador-error {
    font-size: 0.82rem;
    color: #94a3b8;
}

.cotizador-error {
    color: #fca5a5;
}

.btn-wa {
    display: inline-flex;
    margin-top: 10px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
}

#wa-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    padding: 14px 20px;
    border-radius: 50px;
    z-index: 9999;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

@media (max-width: 960px) {
    body {
        padding-top: 64px;
    }

    html {
        scroll-padding-top: 72px;
    }

    .navbar {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .navbar nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 0 8px;
    }

    .navbar nav.is-open {
        display: flex;
    }

    .navbar nav a {
        margin-left: 0;
        padding: 12px 14px;
        border-radius: 8px;
        font-size: 1rem;
    }

    .btn-cta,
    .btn-cta-quote {
        margin-left: 0;
        text-align: center;
    }

    body.nav-open {
        overflow: hidden;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 28px 16px 56px;
    }

    .hero-layout {
        gap: 20px;
    }

    .cotizador-card {
        order: -1;
    }

    .hero-content h1 {
        font-size: 1.85rem;
        letter-spacing: 0;
        line-height: 1.25;
    }

    .hero-content p {
        font-size: 1.05rem;
        margin-bottom: 24px;
    }

    .btn-main {
        width: 100%;
        max-width: 360px;
        padding: 14px 20px;
        font-size: 1.05rem;
    }

    .about-section,
    .services,
    .advantages-section,
    .coverage,
    .portal-section {
        padding: 56px 16px;
    }

    .footer-section {
        padding: 56px 16px 28px;
    }

    .about-section h2,
    .services h2,
    .advantages-section h2,
    .coverage h2,
    .portal-section h2,
    .footer-section h2 {
        font-size: 1.7rem;
    }

    .about-description,
    .advantages-intro,
    .portal-description,
    .coverage-subtitle {
        font-size: 1rem;
        text-align: left;
    }

    .mission-vision-grid,
    .service-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mv-card,
    .service-card,
    .advantage-card,
    .portal-box {
        padding: 22px 18px;
    }

    .advantage-card-full {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .map-wrapper {
        padding: 10px;
    }

    .portal-box {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .portal-info {
        min-width: 0;
    }

    .btn-portal {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .contact-item {
        align-items: flex-start;
        font-size: 0.98rem;
        padding: 14px 16px;
        word-break: break-word;
    }

    .route-list li {
        padding: 10px 16px;
        font-size: 0.95rem;
    }

    #wa-float {
        bottom: 16px;
        right: 16px;
        left: auto;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 420px) {
    .hero-content h1 {
        font-size: 1.55rem;
    }

    .nav-logo {
        height: 32px;
    }
}