/* =========================
   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: 12px;
    align-self: flex-end;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.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);
}

/* =========================
   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;
    }
}