/* =========================
   BASE
========================= */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: #f5f7fa;
    color: #1F3A56;
}

/* =========================
   CONTAINER
========================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =========================
   HEADER
========================= */
.header {
    position: sticky;
    top: 0;
    background: white;
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-weight: 700;
    font-size: 18px;
    color: #1F3A56;
    text-decoration: none;
}

.logo img {
    height: 55px;
    width: auto;
    display: block;
}

.logo-text {
    display: block;
    font-size: 12px;
    font-weight: 300;
    color: #9ca3af;
    margin-top: 2px;
    margin-bottom: 2px;
}

/* =========================
   NAV
========================= */
.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav a {
    text-decoration: none;
    color: #1F3A56;
    font-weight: 500;
}

.nav a:hover {
    color: #2EA44F;
}

.btn-header {
    background: #2EA44F;
    color: white !important;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* =========================
   HERO
========================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    animation: fadeInUp 1s ease;
}

.hero-text h1 {
    font-size: 42px;
}

.hero-text p {
    color: #555;
    margin: 20px 0;
}

.hero-image,
.alerts-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .hero-image img,
    .alerts-image img {
        width: 100%;
        max-width: 1024px;
        height: auto;
        border-radius: 10px;
        align-self: flex-end;
        box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    }

.image-caption {
    margin-top: 15px;
    text-align: center;
    font-size: 16px;
    color: #d1d5db;
    max-width: 500px;
}

.image-caption span {
    color: #60a5fa;
    font-weight: 600;
}

/* =========================
   BOTONES
========================= */
.btn {
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-right: 10px;
    display: inline-block;
}

.btn-primary {
    background: #2EA44F;
    color: white;
    box-shadow: 0 4px 10px rgba(46,164,79,0.4);
}

.btn-secondary {
    border: 2px solid #1F3A56;
    color: #1F3A56;
}

/* =========================
   SECTIONS
========================= */
.section {
    padding: 70px 0;
    background: white;
    margin-top: 20px;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   ISSUES
========================= */
.issues {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.issu-box {
    text-align: center;
    flex: 1;
    min-width: 250px;
    background: #f5f7fa;
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s;
}

.issu-box.highlight {
    border: 2px solid #F28C28;
}

.issu-icon {
    width: 60px;
    margin-bottom: 10px;
}

/* =========================
   FEATURES (ALERTAS)
========================= */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.feat-box {
    text-align: center;
    flex: 1;
    min-width: 250px;
    background: #f5f7fa;
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s;
}

.feat-box.highlight {
    border: 2px solid #2EA44F;
}

.feat-box.normal.highlight { border: 2px solid ForestGreen; }
.feat-box.critico.highlight { border: 2px solid Red; }
.feat-box.premium.highlight { border: 2px solid RoyalBlue; }

.feat-icon {
    width: 60px;
    margin-bottom: 10px;
}

/* =========================
   FACILITY
========================= */
.facility {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.faci-box {
    text-align: center;
    flex: 1;
    min-width: 250px;
    background: #f5f7fa;
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s;
}

.faci-box.highlight {
    border: 2px solid #1F3A56;
}

.faci-icon {
    width: 60px;
    margin-bottom: 10px;
}

/* =========================
   BENEFITS
========================= */
.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.benefit-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 28px;
    background: #f5f7fa;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin: 0 auto 15px;
}

.benefit-card h3 {
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 14px;
    color: #555;
}

/* =========================
   ARCHITECTURE
========================= */
.architecture {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.arch-box {
    text-align: center;
    background: #f5f7fa;
    padding: 20px;
    border-radius: 12px;
    width: 260px;
    transition: 0.3s;
}

.arch-box.highlight {
    border: 2px solid #2EA44F;
}

.arch-icon {
    width: 60px;
    margin-bottom: 10px;
}

/* FLECHAS */
.arch-arrow.dashboard {
    font-size: 30px;
    color: #2EA44F;
    animation: pulse-green 1.5s infinite;
}

.arch-arrow.notification {
    font-size: 30px;
    color: #F28C28;
    animation: pulse-orange 1.5s infinite;
}

@keyframes pulse-green {
    50% { transform: scale(1.1); }
}

@keyframes pulse-orange {
    50% { transform: scale(1.1); }
}

/* =========================
   TEXTOS CIERRE
========================= */
.arch-description {
    text-align: center;
    margin-top: 30px;
    color: #555;
}

.arch-description span {
    color: #60a5fa;
    font-weight: 600;
}

/* =========================
   FORM
========================= */
.form-box {
    max-width: 500px;
    margin: auto;
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    width: 100%;
    padding: 12px;
    background: #2EA44F;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 5px;
}

/* =========================
   FOOTER
========================= */
footer {
    background: #1F3A56;
    color: white;
    text-align: center;
    padding: 20px;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.6s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   Configuración servicios
========================= */

.use-case-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 25px 0;
}

/* ===== TARJETAS ===== */
.use-case-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    width: 260px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .use-case-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }

    /* ===== TÍTULO ===== */
    .use-case-item h4 {
        font-size: 17px;
        font-weight: 700;
        margin-bottom: 10px;
        color: #111;
    }

/* ===== TAG DE CRITICIDAD ===== */
.tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

    /* Colores modernos */
    .tag.premium {
        background: #1e88e5;
    }

    .tag.critico {
        background: #e53935;
    }

    .tag.normal {
        background: #43a047;
    }

/* ===== DESCRIPCIÓN ===== */
.use-case-item p {
    font-size: 14px;
    color: #444;
    margin-top: 5px;
}

/* ===== FONDOS SUAVES + BORDE ===== */
.use-case-item.premium {
    background: #eef4ff;
    border: 1px solid rgba(30,136,229,0.25);
}

.use-case-item.critico {
    background: #fdecec;
    border: 1px solid rgba(229,57,53,0.25);
}

.use-case-item.normal {
    background: #edf7ee;
    border: 1px solid rgba(67,160,71,0.25);
}

/* ===== CONTENEDOR ===== */
.partners {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

/* ===== TARJETA ===== */
.partner-box {
    max-width: 420px;
    padding: 25px;
    border-radius: 12px;
    background: #f9f9f9;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ===== LOGO ===== */
.partner-logo {
    max-width: 180px;
    margin-bottom: 15px;
}

/* ===== TEXTO ===== */
.partner-box p {
    font-size: 14px;
    color: #444;
}

.prelaunch-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
}

.prelaunch-benefits {
    list-style: none;
    padding: 0;
    max-width: 300px;
}

    .prelaunch-benefits li {
        margin-bottom: 10px;
        font-size: 14px;
        color: #333;
    }

.prelaunch-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 280px;
}

    .prelaunch-form input {
        padding: 10px;
        border-radius: 6px;
        border: 1px solid #ccc;
    }

    .prelaunch-form button {
        padding: 12px;
        border: none;
        border-radius: 6px;
        background: #1e88e5;
        color: white;
        font-weight: 600;
        cursor: pointer;
    }

        .prelaunch-form button:hover {
            background: #1565c0;
        }

/* =========================
   RESPONSIVE
========================= */
@media(max-width:768px) {

    .menu-toggle { display: block; }

    .logo img { height: 32px; }

    .nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .btn-header {
        width: 80%;
        text-align: center;
    }
}

/* =========================
   FOOTER
========================= */

.footer {
    background: #072b36;
    color: white;
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    width: 180px;
    margin-bottom: 20px;
}

.footer-description {
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .footer-social a {
        color: white;
        text-decoration: none;
        font-weight: 600;
    }

        .footer-social a:hover {
            color: #00d084;
        }

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-column p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-column a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 12px;
}

    .footer-column a:hover {
        color: #00d084;
    }

.footer-whatsapp-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 14px 20px;
    background: #25D366;
    color: white !important;
    border-radius: 8px;
    font-weight: 700;
}

    .footer-whatsapp-btn:hover {
        opacity: 0.9;
    }

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}