/* === 1850px: Laptop — monk contenido, floats organizados, escala proporcional === */
@media (max-width: 1850px) {
    /* Monk: más grande y saliendo de la franja dorada hacia el centro */
    .monje { width: 42vw; left: -10vw; right: auto; top: 50%; transform: translateY(-50%); }
    /* Floats: zig-zag compacto en zona central (26%–68%) */
    .f1 { top: 26%; left: 6px;  right: auto; }
    .f2 { top: 36%; right: 6px; left: auto;  }
    .f3 { top: 47%; left: 6px;  right: auto; }
    .f4 { top: 57%; right: 6px; left: auto;  }
    .f5 { top: 68%; left: 6px;  right: auto; }
    /* Contenido más arriba (nav termina a ~77px, dejamos 43px de respiro) */
    .content { top: 120px; }
    /* Reducir márgenes para que las tarjetas no queden fuera de pantalla */
    .badge { margin-bottom: 16px; }
    .hero h1 { margin-bottom: 20px; }
    .info { gap: 36px; margin-bottom: 30px; }
    .info p { width: auto; max-width: 280px; font-size: 14px; }
    /* Tarjetas: 118px + gap 14px → caben 4 en fila desde 1024px */
    .cards { gap: 14px; }
    .card { width: 118px; }
    /* Floats: más compactos */
    .float { font-size: 12px; padding: 9px 14px; }
}

/* === 1200–1850px: Laptop ancho — monje y floats siguen al centro === */
@media (min-width: 1200px) and (max-width: 1850px) {
    .monje { left: -18vw; }
    .f1 { left: -10vw; right: auto; }
    .f2 { right: 13vw;  left: auto; }
    .f3 { left: -10vw; right: auto; }
    .f4 { right: 13vw;  left: auto; }
    .f5 { left: -10vw; right: auto; }
}

/* === 1180px: Grids + reducir gap nav en laptop grande === */
@media (max-width: 1180px) {
    .menu { gap: 18px; }
    .products-grid, .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .expertos-grid, .testimonios-grid, .blog-grid { grid-template-columns: repeat(2,1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 24px; }
    .about-copy { max-width: none; margin-right: 0; }
    .about-visual { margin-left: 0; padding-top: 12px; min-height: 560px; }
}

/* === 1050px: Gap mínimo para 5 ítems en laptop pequeño === */
@media (max-width: 1050px) {
    .menu { gap: 10px; }
}

/* === 900px: Hero columna única + hamburger menu === */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .left { padding-bottom: 36px; }
    .left::before { left: -180px; top: -260px; width: 1380px; height: 1380px; }
    .header-left { position: relative; top: auto; left: auto; right: auto; height: auto; padding: 20px 56px 0 20px; display: flex; align-items: center; gap: 0; min-height: 64px; }
    .menu-toggle { display: inline-flex; position: absolute; top: 14px; right: 14px; }
    .menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 14px 18px;
        background: #ffffff;
        border: 1px solid rgba(138,99,49,0.14);
        border-radius: 0 0 14px 14px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        z-index: 45;
    }
    .header-left.menu-open .menu { display: flex; }
    .menu a { padding: 12px 0; border-bottom: 1px solid rgba(138,99,49,0.1); color: #21180f; }
    .menu a:last-of-type { border-bottom: 0; }
    .menu a::after { display: none; }
    .menu-login { display: inline-flex; align-items: center; justify-content: center; margin-top: 12px; }
    .header-right { display: none; }
    .content { position: relative; left: auto; top: auto; padding: 48px 24px 0; }
    .hero h1 { font-size: 50px; line-height: 1.05; }
    .info { flex-direction: column; gap: 24px; margin-bottom: 42px; }
    .info p { width: auto; max-width: 520px; }
    .cards { flex-wrap: wrap; gap: 18px; }
    .right { min-height: 600px; border-bottom-left-radius: 0; border-top-left-radius: 72px; }
    .monje { width: min(65vw, 420px); left: 50%; right: auto; top: 46%; transform: translateX(-50%); animation: none; }
    .float { font-size: 13px; padding: 12px 18px; }
    .f1 { top: 14%; left: 16px; right: auto; }
    .f2 { top: 30%; right: 16px; left: auto; }
    .f3 { top: 48%; left: 16px; right: auto; }
    .f4 { top: 66%; right: 16px; left: auto; }
    .f5 { top: 82%; left: 16px; right: auto; }
    .about-section { padding: 72px 24px 88px; }
    .about-title, .products-title, .catalog-title { font-size: 40px; }
    .products-section, .catalog-section { padding-left: 0; padding-right: 0; }
    .products-shell, .catalog-shell { padding: 0 24px; }
    .products-header { flex-direction: column; align-items: flex-start; }
    .products-link { align-self: flex-start; }
    .consulta-copy { width: 100%; padding: 64px 40px 300px; }
    .consulta-title { font-size: 42px; }
    .consulta-text { max-width: 580px; font-size: 17px; }
    .consulta-steps { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 380px; }
    .combos-productos { gap: 32px; }
    .combos-img--back  { width: 130px; height: 130px; }
    .combos-img--front { width: 110px; height: 110px; left: 80px; }
}

/* === 768px: Tablet portrait (iPad) === */
@media (max-width: 768px) {
    .about-visual { min-height: 380px; }
    .about-wheel { width: min(420px, 100%); }
    .expertos-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonios-grid { grid-template-columns: 1fr; }
    .consulta-copy { padding: 52px 28px 260px; }
    .hero h1 { font-size: 44px; }
    .monje { width: min(60vw, 360px); }
}

/* === 640px: Móvil === */
@media (max-width: 640px) {
    body { overflow-x: hidden; }
    .header-left { position: relative; display: flex; align-items: center; min-height: 64px; padding: 16px 96px 0 16px; gap: 0; z-index: 60; }
    .logo { font-size: 12px; gap: 8px; flex: 1 1 auto; min-width: 0; white-space: nowrap; }
    .logo-icon { width: 22px; height: 22px; }
    .menu-toggle { position: fixed; top: 16px; right: 16px; width: 36px; height: 36px; border: 1px solid rgba(138,99,49,0.16); border-radius: 6px; flex: 0 0 36px; background: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); z-index: 100; }
    .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { height: 1px; background: #7b5628; }
    .menu { top: 64px; left: 0; right: 0; }
    .header-right { position: fixed; top: 16px; right: 60px; display: flex; align-items: center; gap: 0; z-index: 99; background: transparent; }
    .icon { color: #7b5628; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: transparent; }
    .content { padding: 30px 16px 0; }
    .badge { width: 100%; text-align: center; padding: 10px 14px; line-height: 1.4; }
    .hero h1 { font-size: 36px; line-height: 1.08; }
    .btn-main { width: 100%; }
    .info p { font-size: 14px; line-height: 1.65; }
    .cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
    .card { width: 100%; }
    .right { display: flex; flex-direction: column; align-items: center; overflow: hidden; border-top-left-radius: 40px; border-bottom-left-radius: 0; padding: 20px 12px 28px; min-height: auto; }
    .login { display: none; }
    .right::after { right: -34px; bottom: -34px; width: 220px; height: 220px; }
    .monje { position: relative; width: min(100%, 260px); left: auto; right: auto; top: auto; transform: none; animation: none; margin: 20px auto 16px; }
    .floats-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; padding: 0 8px; }
    .float { position: static; display: inline-flex; animation: none; white-space: nowrap; font-size: 12px; padding: 9px 14px; box-shadow: 0 4px 10px rgba(0,0,0,0.14); }
    .about-section { padding: 56px 18px 72px; }
    .about-title, .products-title, .catalog-title { font-size: 34px; line-height: 1.12; }
    .about-text { font-size: 15px; line-height: 1.8; }
    .about-visual { min-height: 320px; }
    .about-wheel { width: 100%; max-width: 300px; }
    .products-section { padding: 56px 0 68px; }
    .products-shell { padding: 0 18px; }
    .products-grid, .catalog-grid { grid-template-columns: repeat(2,1fr); }
    .catalog-section { padding: 60px 0 80px; }
    .catalog-shell { padding: 0 18px; }
    .catalog-filters { justify-content: flex-start; overflow-x: auto; padding-bottom: 6px; flex-wrap: nowrap; }
    .catalog-filter { flex: 0 0 auto; }
    .testimonios-grid, .blog-grid { grid-template-columns: 1fr; }
    .expertos-header { flex-direction: column; gap: 16px; }
    .expertos-header-right { padding-top: 0; }
    .expertos-grid { grid-template-columns: 1fr; }
    .consulta-shell { padding: 0 16px; }
    .consulta-copy { padding: 40px 22px 240px; }
    .consulta-title { font-size: 34px; margin-bottom: 14px; }
    .consulta-text { font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
    .consulta-steps { grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; max-width: none; }
    .consulta-step-icon { width: 44px; height: 44px; margin-bottom: 8px; }
    .consulta-step-icon svg { width: 24px; height: 24px; }
    .consulta-step span { font-size: 13px; }
    .consulta-button { min-width: 120px; min-height: 42px; margin-bottom: 24px; }
    .combos-productos { flex-direction: column; gap: 40px; }
    .combos-producto-imgs { height: 180px; }
}

/* === 400px: Móviles muy pequeños (iPhone SE) === */
@media (max-width: 400px) {
    .hero h1 { font-size: 30px; }
    .products-grid, .catalog-grid { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }
    .consulta-steps { grid-template-columns: 1fr; }
    .expertos-grid { grid-template-columns: 1fr; }
}
