/* =========================
   CONFIGURACIÓN GENERAL
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f8fb;
    color: #1f2937;
}


/* =========================
   HEADER
========================= */

.header {
    height: 75px;
    background: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 8%;

    border-bottom: 1px solid #e5e7eb;

    position: sticky;
    top: 0;
    z-index: 100;
}


/* LOGO */

.header .logo {
    height: 100px;

    display: flex;
    align-items: center;

    gap: 10px;

    overflow: hidden;
}

.header .logo-image {
    width: 250px;
    height: 150px;

    max-width: 180px;
    max-height: 65px;

    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.logo span {
    font-size: 22px;
    font-weight: bold;
    color: #182b49;
    white-space: nowrap;
}


/* NAVEGACIÓN */

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
}

.nav a:hover {
    color: #18a3e4;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 650px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 70px;

    padding: 80px 10%;

    background: linear-gradient(
        135deg,
        #f8fbff,
        #eaf6fc
    );
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;

    background: #e0f4fd;
    color: #1687bf;

    padding: 8px 15px;
    border-radius: 30px;

    font-size: 14px;
    font-weight: bold;

    margin-bottom: 25px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;

    color: #182b49;

    margin-bottom: 25px;
}

.hero h1 span {
    color: #18a3e4;
}

.hero-description {
    font-size: 20px;
    line-height: 1.7;

    color: #64748b;

    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}


/* =========================
   BOTONES
========================= */

.button {
    display: inline-block;

    padding: 14px 25px;

    border-radius: 8px;

    text-decoration: none;

    font-weight: bold;

    transition: 0.3s;
}

.primary {
    background: #18a3e4;
    color: white;
}

.primary:hover {
    transform: translateY(-3px);
    background: #0d8dcc;
}

.secondary {
    background: white;
    color: #18a3e4;

    border: 1px solid #18a3e4;
}

.secondary:hover {
    background: #eaf8fe;
}


/* =========================
   DASHBOARD
========================= */

.hero-visual {
    width: 400px;
    max-width: 100%;
}

.dashboard-card {
    background: white;

    border-radius: 20px;

    padding: 25px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;

    font-size: 13px;
    font-weight: bold;

    color: #64748b;
}

.status {
    color: #22c55e;
}

.tank {
    width: 180px;
    height: 250px;

    margin: 30px auto;

    border: 6px solid #182b49;

    border-radius: 20px;

    position: relative;
    overflow: hidden;
}

.tank-level {
    position: absolute;

    bottom: 0;

    width: 100%;
    height: 72%;

    background: linear-gradient(
        to top,
        #1687bf,
        #18a3e4
    );
}

.percentage {
    position: absolute;

    top: 45%;
    left: 50%;

    transform: translate(-50%, -50%);

    font-size: 30px;
    font-weight: bold;

    color: white;

    z-index: 2;
}

.stats {
    display: flex;
    justify-content: space-around;

    text-align: center;
}

.stats div {
    display: flex;
    flex-direction: column;
}

.stats strong {
    font-size: 20px;
    color: #182b49;
}

.stats span {
    font-size: 13px;
    color: #64748b;

    margin-top: 5px;
}


/* =========================
   SOLUCIONES
========================= */

.solutions {
    padding: 100px 10%;
}

.section-title {
    max-width: 700px;

    margin-bottom: 50px;
}

.section-title span {
    color: #18a3e4;

    font-size: 13px;
    font-weight: bold;
}

.section-title h2 {
    font-size: 40px;

    color: #182b49;

    margin: 15px 0;
}

.section-title p {
    color: #64748b;
    font-size: 18px;
}

.cards {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}

.service-card {
    background: white;

    padding: 30px;

    border-radius: 15px;

    border: 1px solid #e5e7eb;

    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.icon {
    font-size: 35px;

    margin-bottom: 20px;
}

.service-card h3 {
    color: #182b49;

    margin-bottom: 12px;
}

.service-card p {
    color: #64748b;

    line-height: 1.6;
}


/* =========================
   TECNOLOGÍA
========================= */

.technology {
    background: #182b49;

    color: white;

    padding: 100px 10%;
}

.technology div {
    max-width: 750px;
}

.technology h2 {
    font-size: 42px;

    margin-bottom: 20px;
}

.technology p {
    font-size: 19px;

    line-height: 1.7;

    color: #cbd5e1;
}


/* =========================
   FOOTER
========================= */

footer {
    background: #101c30;

    color: white;

    padding: 50px 10%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    color: #94a3b8;

    margin-top: 10px;
}

.copyright {
    font-size: 13px;
}


/* =========================
   RESPONSIVE - TABLET
========================= */

@media (max-width: 900px) {

    .hero {
        flex-direction: column;

        text-align: center;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================
   RESPONSIVE - CELULAR
========================= */

@media (max-width: 600px) {

    .header {
        padding: 0 5%;
    }

    .nav {
        display: none;
    }

    .header .logo-image {
        width: 90px !important;
        height: 40px !important;
        max-width: 90px !important;
        max-height: 40px !important;
    }

    .logo span {
        font-size: 17px;
    }

    .hero {
        padding: 60px 7%;
    }

    .hero h1 {
        font-size: 35px;
    }

    .hero-visual {
        width: 100%;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .solutions,
    .technology {
        padding: 70px 7%;
    }

    .section-title h2,
    .technology h2 {
        font-size: 32px;
    }

    footer {
        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }

}


/* =========================
   CONTACTO
========================= */

.contact {
    padding: 100px 10%;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 80px;

    background: #ffffff;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-label {
    color: #18a3e4;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;

    margin-bottom: 15px;
}

.contact-info h2 {
    font-size: 42px;
    color: #182b49;

    margin-bottom: 20px;
}

.contact-info > p {
    color: #64748b;
    font-size: 18px;
    line-height: 1.7;

    margin-bottom: 25px;
}

.contact-details p {
    margin-bottom: 10px;
}

.contact-details a {
    color: #18a3e4;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}


/* FORMULARIO */

.contact-form {
    background: #f6f8fb;

    padding: 40px;

    border-radius: 20px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;

    gap: 18px;
}

.contact-form h3 {
    color: #182b49;
    font-size: 24px;

    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 15px;

    border: 1px solid #dbe3ea;

    border-radius: 8px;

    font-family: inherit;
    font-size: 16px;

    outline: none;

    transition: 0.3s;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #18a3e4;
    box-shadow: 0 0 0 3px rgba(24, 163, 228, 0.12);
}

.contact-form button {
    border: none;
    cursor: pointer;

    font-size: 16px;

    align-self: flex-start;
}


.flash-message {
    padding: 15px 20px;
    margin: 20px auto;
    max-width: 800px;

    border-radius: 8px;
    text-align: center;
}

.flash-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.flash-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}