body {
    margin: 0;
    background: #f4f4f4;
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

header {
    position: relative;
    text-align: center;
    color: #fff;
    background: url("https://i.imgur.com/Rh8qCJR.png") center/cover no-repeat;
}

/* ---------- HERO CONTENT ---------- */
header .content {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 15px;
    background: rgba(0, 0, 0, 0.35);
}

header h1 {
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 700;
    margin-bottom: 8px;
}

header p {
    font-size: clamp(14px, 2vw, 18px);
    max-width: 640px;
    margin: 0 auto 12px auto;
}

header a {
    display: inline-block;
    background: #2E7D32;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

header a:hover {
    background: #256628;
}

/* ---------- HEADER TOP (LOGO + NAV) ---------- */
.header-top {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between; /* logo izq - menú der */
    align-items: center;            /* centrados verticalmente */
    z-index: 1200;
}

.header-top .logo img {
    height: 40px; /* ajusta al gusto */
    width: auto;
    display: block; /* elimina espacio fantasma */
}

/* ---------- NAV DESKTOP ---------- */
.header-top nav {
    margin-left: auto;
    display: flex;
    gap: 24px;
}

.header-top nav a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 0;               /* 👈 eliminamos padding extra lateral */
    background: transparent !important; /* 🔥 fuerza quitar fondo verde */
    border-radius: 0 !important;       /* 🔥 quita redondeado */
    transition: color 0.3s;
}

.header-top nav a:hover,
.header-top nav a.active {
    color: #a8f5b0;
}

/* ---------- NAV MOBILE ---------- */
@media (max-width: 1023px) {
    .header-top nav {
        display: none;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(10px);
        position: absolute;
        top: 70px;
        right: 20px;
        padding: 20px;
        border-radius: 10px;
        gap: 15px;
    }

    .header-top nav.active {
        display: flex;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background: #fff;
    }
}

@media (min-width: 1024px) {
    .hamburger {
        display: none;
    }
}

/* ---------- SECTIONS ---------- */
section {
    max-width: 1100px;
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

section h2 {
    margin: 0;
    font-size: clamp(10px, 1.5vw, 30px);
    line-height: 1.3;
    font-weight: 700;
}

section p,
section ul {
    font-size: 16px;
    margin-bottom: 14px;
}

section ul {
    padding-left: 22px;
}

.col-text,
.col-img {
    flex: 1 1 500px;
    min-width: 280px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    padding: 32px 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.col-img {
    padding: 20px;
}

.col-img img {
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 12px;
}

/* ---------- NOTE ---------- */
.note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #F4F4F4;
    border-left: 5px solid #2E7D32;
    border-radius: 10px;
    padding: 12px 14px;
}

.note p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

/* ---------- ICON + TITLE ---------- */
.icon-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.icon-title span {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8f5e9;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-title.small span {
    width: 32px;
    height: 32px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
    section {
        padding: 20px 16px;
    }

    header .content {
        padding-bottom: 20px;
    }

    /* ✅ Icono + título en móvil: centrados */
    .icon-title {
        justify-content: center;
        text-align: center;
    }

    .icon-title span {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 1024px) {
    .col-img {
        display: none;
    }

    .col-text p,
    .col-text ul,
    .note p {
        font-size: 18px;
        line-height: 1.7;
    }

    .col-text h2 {
        font-size: 22px;
    }

    .col-text ul {
        padding-left: 24px;
    }

    section {
        flex-direction: column;
        margin: 20px auto;
        padding: 0 20px;
    }

    .col-text {
        width: 100%;
        margin: 0 auto;
        border-radius: 16px;
    }

    header .content {
        min-height: 40vh;
        padding: 40px 15px;
    }

    header h1 {
        font-size: 20px;
    }

    header p {
        font-size: 14px;
    }
}

/* ---------- FOOTER ---------- */
footer {
    background: #2E7D32;
    color: #fff;
    padding: 1px 10px;   /* antes 40px → más compacto */
    margin-top: 1px;     /* antes 60px → menos espacio arriba */
}

footer .footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
}

footer h3 {
    margin-bottom: 8px;  /* antes 12px → menos aire */
    font-size: 16px;     /* antes 18px → más compacto */
    font-weight: 600;
}

footer p,
footer a {
    font-size: 13px;     /* antes 14px → más chico */
    line-height: 1.4;    /* antes 1.6 → menos espacio */
    color: #f4f4f4;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: #fff;
}

/* ---------- SOCIAL ICONS ---------- */
footer .social {
    display: flex;
    justify-content: center;   /* centra horizontal */
    align-items: center;       /* centra vertical */
    gap: 10px;                 /* espacio entre iconos */
    margin-top: 6px;
}

footer .social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;               /* tamaño círculo */
    height: 40px;
    border-radius: 50%;
    background: #25D366;       /* color oficial WhatsApp */
    transition: background 0.3s ease;
}

footer .social a:hover {
    background: #1ebe5b;       /* hover más oscuro */
}

footer .social a img {
    width: 20px;
    height: 20px;
    display: block;
    filter: brightness(0) invert(1); /* convierte icono a blanco */
}

/* ---------- FIX UNIFORMIDAD ---------- */
html, body {
  overflow-x: hidden;   /* evita movimiento lateral en mobile */
  max-width: 100%;      /* evita desbordes */
}

/* Hero igual en todas las páginas */
@media (max-width: 1024px) {
  header .content {
    min-height: 36vh;    /* mismo alto que otras páginas */
    padding: 28px 12px;  /* menos padding */
    text-align: center;
  }
}
