/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 40px;
    z-index: 1000;
    background: transparent;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 60px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 85px;
    transition: transform 0.3s ease;
}

.menu-icon {
    position: absolute;
    left: 40px;
    top: 30px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon:hover {
    color: #ff6a00;
}

.nav-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 70vh;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    z-index: 999;
    transition: top 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-menu.active {
    top: 0;
}

.nav-columna {
    flex: 0.7;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    transition-delay: calc(0.05s * var(--i, 0));
}

.nav-menu.active .nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.nav-item {
    color: #1a1a1a;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-size: 24px;
    font-weight: 400;
    transition: color 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
    color: #ff6a00;
}

.menu-footer {
    margin-top: 40px;
}

.menu-social {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.menu-social a {
    color: #888;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    transition: color 0.3s ease;
}

.menu-social a:hover {
    color: #ff6a00;
}

.menu-carrusel {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.carrusel-track {
    display: flex;
    gap: 20px;
    padding: 20px 40px;
}

.carrusel-item {
    flex-shrink: 0;
    width: 160px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
    filter: brightness(0.7);
    transform: scale(0.92);
}

.carrusel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carrusel-item .item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 15px 10px;
    color: white;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    text-align: center;
}

.carrusel-item:hover {
    filter: brightness(1);
    transform: scale(1.08);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 22px;
    color: #333;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== SLIDESHOW HERO ========== */
.slideshow-hero {
    height: 60vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-texto {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 100%;
    padding: 20px;
}

.hero-texto h1 {
    font-family: "Oooh Baby", cursive;
    font-size: 64px;
    margin-bottom: 15px;
}

.hero-texto p {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
}

/* ========== CATÁLOGO - GRID RESPONSIVO ========== */
.catalogo-grid {
    padding: 60px 8%;
    background: #ffffff;
}

/* CORREGIDO: Añadí este selector que faltaba */
.catalog {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 10px;
    border: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06);
}

/* ===== IMÁGENES ===== */
.image-box {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: #f5f5f5;
    aspect-ratio: 3 / 4;
    width: 100%;
}

.main-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #efefef;
    display: block;
}

/* ===== CORAZÓN ===== */
.favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
}

.favorite svg {
    width: 16px;
    height: 16px;
    stroke: #111;
    fill: transparent;
    stroke-width: 1.8;
    transition: all .25s ease;
}

.favorite:hover svg {
    stroke: #ff9800;
    fill: rgb(255, 153, 0);
    transform: scale(1.08);
}

.favorite.active svg {
    stroke: #ff9800;
    fill: #ff9800;
}

/* ===== MINIATURAS ===== */
.thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.thumb-frame {
    flex: 1;
    aspect-ratio: 2 / 3;
    position: relative;
}

.thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    cursor: pointer;
    touch-action: manipulation;
    border: 2px solid transparent;
    opacity: 0.45;
    transition: 0.3s;
}

.thumb.active {
    border-color: #ff9800;
    opacity: 1;
}

.thumb:hover {
    opacity: 0.8;
}

/* ===== INFO PRODUCTO ===== */
.info {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    position: relative;
}

.text {
    flex: 1;
}

.text h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.35;
    font-family: 'Raleway', sans-serif;
}

.price {
    color: #ff9800;
    font-size: 16px;
    font-weight: 700;
}

.variant-info {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #555;
    font-family: 'Raleway', sans-serif;
}

.variant-description {
    margin-top: 4px;
    font-size: 10px;
    color: #8a8a8a;
    line-height: 1.4;
    font-family: 'Raleway', sans-serif;
}

/* ===== BOTÓN COMPRA ===== */
.buy-btn {
    width: 100%;
    margin-top: 10px;
    border: 1.5px solid #ff6a00;
    background: white;
    color: #ff6a00;
    border-radius: 50px;
    padding: 8px 12px;
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all .35s ease;
}

.buy-btn:hover {
    background: #ff6a00;
    color: white;
}

/* ===== FOOTER ===== */
.footer {
    background: transparent;
    padding: 40px 8%;
    font-family: 'Raleway', sans-serif;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-contenido {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    color: #666;
    font-size: 13px;
}

.footer-redes {
    display: flex;
    gap: 25px;
}

.footer-redes a {
    color: #333;
    font-size: 20px;
    transition: all 0.3s ease;
}

.footer-redes a:hover {
    color: #ff6a00;
    transform: translateY(-2px);
}

/* ===== BOTÓN FLOTANTE FAVORITOS ===== */
.favorites-floating {
    position: fixed;
    bottom: 24px;
    right: 24px;
    border: 1.5px solid #ff9800;
    background: white;
    color: #ff9800;
    border-radius: 50px;
    padding: 10px 16px;
    cursor: pointer;
    z-index: 1000;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.favorites-floating:hover {
    background: #ff9800;
    color: white;
    transform: translateY(-2px);
}

.favorites-floating span {
    background: #ff9800;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    margin-left: 6px;
    font-size: 11px;
}

.favorites-floating:hover span {
    background: white;
    color: #ff9800;
}

/* ===== PANEL DE FAVORITOS ===== */
.favorites-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    font-family: 'Raleway', sans-serif;
}

.favorites-panel.active {
    right: 0;
}

.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.favorites-header h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.close-favorites {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-favorites:hover {
    color: #ff6a00;
}

.favorites-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.favorite-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
}

.favorite-item:last-child {
    border-bottom: none;
}

.send-favorites-wa {
    margin: 20px;
    padding: 14px;
    background: #ff9800;
    border: none;
    border-radius: 50px;
    color: white;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.send-favorites-wa:hover {
    background: #e08900;
    transform: translateY(-2px);
}

/* ===== SECCIÓN MÉTODOS DE PAGO ===== */
.metodos-pago {
    background: #f8f8f8;
    padding: 60px 8%;
    margin-top: 40px;
}

.metodos-pago h3 {
    text-align: center;
    font-family: 'Raleway', sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 40px;
    position: relative;
}

.metodos-pago h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff9800;
    border-radius: 3px;
}

.metodos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 40px auto;
}

.metodo-item {
    text-align: center;
    padding: 25px 20px;
    background: white;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.metodo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.metodo-item i {
    font-size: 42px;
    color: #ff9800;
    margin-bottom: 15px;
}

.metodo-item span {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.metodo-item p {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

.metodo-nota {
    background: #fff3e0;
    border-radius: 16px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
    border: 1px solid #ffe0b3;
    max-width: 800px;
    margin: 0 auto;
}

.metodo-nota i {
    font-size: 28px;
    color: #ff9800;
}

.metodo-nota p {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* Tarjetas de métodos de pago más pequeñas en tablet/iPad (768-1024px,
   incluye los iPad viejos con iOS anterior a 12 y los más actuales) */
@media (min-width: 769px) and (max-width: 1024px) {
    .metodos-pago {
        padding: 45px 6%;
    }

    .metodos-pago h3 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .metodos-grid {
        gap: 18px;
    }

    .metodo-item {
        padding: 16px 12px;
    }

    .metodo-item i {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .metodo-item span {
        font-size: 15px;
    }

    .metodo-item p {
        font-size: 12px;
    }

    .metodo-nota {
        padding: 14px 20px;
        gap: 12px;
    }

    .metodo-nota i {
        font-size: 22px;
    }

    .metodo-nota p {
        font-size: 12px;
    }
}

/* ===== RESPONSIVE CON AUTO-FIT ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 20px 25px;
    }
    
    .logo {
        margin-top: 40px;
    }
    
    .logo img {
        width: 55px;
    }
    
    .menu-icon {
        left: 20px;
        font-size: 24px;
    }
    
    .nav-menu {
        flex-direction: column;
        height: auto;
        min-height: 80vh;
        padding: 80px 30px 40px;
    }
    
    .nav-columna {
        width: 100%;
        flex: none;
    }
    
    .nav-links {
        text-align: center;
        width: 100%;
    }
    
    .nav-links li {
        margin-bottom: 20px;
    }
    
    .nav-item {
        font-size: 20px;
    }
    
    .menu-footer {
        text-align: center;
        margin-top: 30px;
    }
    
    .menu-social {
        justify-content: center;
    }
    
    .menu-carrusel {
        width: 100%;
        padding-left: 0;
        margin-top: 20px;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }
    
    .carrusel-track {
        gap: 10px;
        padding: 10px 15px 15px 15px;
        width: max-content;
    }
    
    .carrusel-item {
        width: 110px;
        height: 145px;
    }
    
    .carrusel-item .item-overlay {
        font-size: 10px;
        padding: 8px 5px;
    }
    
    .hero-texto h1 {
        font-size: 42px;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .hero-texto p {
        font-size: 13px;
        white-space: normal;
    }
    
    .slideshow-hero {
        min-height: 350px;
        margin-top: 60px;
    }
    
    .hero-texto {
        top: 55%;
    }
    
    .catalog {
        gap: 12px;
        padding: 20px 12px;
    }
    
    .card {
        padding: 8px;
        border-radius: 14px;
    }
    
    .image-box {
        border-radius: 10px;
    }
    
    .thumbs {
        gap: 5px;
        margin-top: 6px;
    }
    
    .thumb {
        border-radius: 6px;
    }
    
    .text h3 {
        font-size: 11px;
    }
    
    .price {
        font-size: 13px;
    }
    
    .variant-info {
        font-size: 9px;
    }
    
    .variant-description {
        display: none;
    }
    
    .buy-btn {
        margin-top: 6px;
        padding: 5px 8px;
        font-size: 9px;
    }
    
    .favorite {
        top: 6px;
        right: 6px;
        width: 20px;
        height: 20px;
    }
    
    .favorite svg {
        width: 12px;
        height: 12px;
    }
    
    .metodos-pago {
        padding: 40px 5%;
    }
    
    .metodos-pago h3 {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .metodos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .metodo-item {
        padding: 14px 8px;
    }
    
    .metodo-item i {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .metodo-item span {
        font-size: 14px;
    }
    
    .metodo-item p {
        font-size: 11px;
    }
    
    .metodo-nota {
        flex-direction: column;
        padding: 12px;
        gap: 8px;
    }
    
    .metodo-nota i {
        font-size: 20px;
    }
    
    .metodo-nota p {
        font-size: 12px;
    }
    
    .footer {
        padding: 30px 5%;
    }
    
    .footer-contenido {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 45px;
    }
    
    .menu-icon {
        font-size: 22px;
        left: 15px;
    }
    
    .hero-texto h1 {
        font-size: 32px;
    }
    
    .hero-texto p {
        font-size: 11px;
    }
    
    .slideshow-hero {
        min-height: 300px;
    }
    
    .catalog {
        gap: 10px;
        padding: 15px 8px;
    }
    
    .card {
        padding: 6px;
    }
    
    .text h3 {
        font-size: 10px;
    }
    
    .price {
        font-size: 11px;
    }
    
    .buy-btn {
        padding: 4px 6px;
        font-size: 8px;
    }
    
    .favorite {
        top: 4px;
        right: 4px;
        width: 18px;
        height: 18px;
    }
    
    .favorite svg {
        width: 10px;
        height: 10px;
    }
    
    .metodos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .metodo-item {
        display: block;
        text-align: center;
        padding: 14px 8px;
    }
    
    .metodo-item i {
        margin-bottom: 8px;
        font-size: 22px;
        width: auto;
    }
    
    .metodo-item span {
        font-size: 12px;
    }
    
    .metodo-item p {
        font-size: 10px;
    }
    
    .metodo-nota {
        padding: 10px;
        gap: 8px;
    }
    
    .metodo-nota i {
        font-size: 18px;
    }
    
    .metodo-nota p {
        font-size: 11px;
    }
    
    .favorites-panel {
        width: 100%;
        right: -100%;
    }
    
    .favorites-floating {
        bottom: 16px;
        right: 16px;
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ===== ARREGLO LOGO Y MENÚ EN MÓVIL ===== */
@media (max-width: 768px) {
    .navbar {
        background: transparent !important;
        padding: 15px 20px !important;
    }
    
    .logo {
        margin-top: 0 !important;
        top: 15px !important;
    }
    
    .logo img {
        filter: brightness(0) invert(1) !important;
    }
    
    .menu-icon {
        color: white !important;
        background: rgba(0, 0, 0, 0.4) !important;
        border-radius: 50% !important;
        width: 38px !important;
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        top: 10px !important;
    }
    
    .slideshow-hero {
        margin-top: 0 !important;
        min-height: 400px !important;
    }
    
    .hero-texto {
        top: 55% !important;
    }
}

@media (max-width: 480px) {
    .navbar {
        background: transparent !important;
    }
    
    .logo {
        top: 10px !important;
    }
    
    .logo img {
        width: 40px !important;
    }
    
    .menu-icon {
        width: 34px !important;
        height: 34px !important;
        top: 5px !important;
    }
    
    .slideshow-hero {
        min-height: 320px !important;
    }
}

/* ===== COMPORTAMIENTO BOTÓN COMPRA ===== */
@media (min-width: 769px) {
    .buy-btn {
        opacity: 0;
        transform: translateY(12px);
        pointer-events: none;
        transition: all .35s ease;
    }
    
    .card:hover .buy-btn {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    .buy-btn {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
}

/* ===== LUPA CON CLIC - LIGHTBOX (solo computador) ===== */
.image-box {
    position: relative;
    cursor: pointer;
}

/* En móviles y tablets (iPad) ya no se abre la vista grande al tocar,
   así que quitamos el cursor tipo "pointer" que sugería esa acción */
@media (max-width: 1024px) {
    .image-box {
        cursor: default;
    }
}

.image-box::after {
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 18px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: 0.3s;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #ff9800;
}

/* ===== FALLBACK PARA NAVEGADORES SIN SOPORTE DE "aspect-ratio" =====
   Safari no soporta "aspect-ratio" antes de iOS 15. En vez de adivinar
   un rango de ancho de pantalla (que no cubre todos los iPads viejos
   en todas sus orientaciones), preguntamos directamente si el
   navegador entiende la propiedad con @supports. Si no la entiende,
   usamos el truco clásico de padding-bottom para fijar la proporción;
   si la entiende, este bloque no se aplica y se usan las reglas
   normales de arriba. */
@supports not (aspect-ratio: 1 / 1) {
    /* El padding-bottom se calcula sobre el ancho del contenedor PADRE
       (.thumbs), no sobre el 33.33% que ocupa cada miniatura, así que
       el valor real es 150% × 33.33% = 50%. */
    .thumb-frame {
        width: 33.33%;
        flex: none;
        height: 0;
        padding-bottom: 50%;
        position: relative;
    }
    
    .thumb {
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .image-box {
        height: auto;
        padding-bottom: 133.33%;
    }
    
    .main-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* ===== ICONO DE MENÚ SIN CÍRCULO ===== */
.menu-icon {
    color: white;
    transition: all 0.3s ease;
    font-size: 28px;
    width: auto;
    height: auto;
    background: transparent !important;
    backdrop-filter: none !important;
}

.nav-menu.active ~ .menu-icon,
body.menu-open .menu-icon,
.navbar.scrolled .menu-icon {
    color: #1a1a1a !important;
}

.menu-icon:hover {
    color: #ff6a00 !important;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .menu-icon {
        font-size: 24px;
        background: transparent !important;
    }
}

/* ===== LIGHTBOX ===== */
.image-box {
    cursor: pointer;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-family: Arial;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: #ff9800;
}

/* ===== CORAZÓN TÁCTIL PARA IPAD VIEJO ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .favorite {
        min-width: 44px !important;
        min-height: 44px !important;
        width: 44px !important;
        height: 44px !important;
        background: rgba(255,255,255,0.8) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .favorite svg {
        width: 24px !important;
        height: 24px !important;
        pointer-events: none !important;
    }
}

/* ===== OCULTAR LUPA VIEJA (::after) ===== */
.image-box::after {
    display: none !important;
}

.lupa-boton {
    z-index: 25;
}

@media (max-width: 768px) {
    .lupa-boton {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }
}

/* ===== ÁREA TÁCTIL PARA CORAZÓN EN IPAD ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .favorite {
        min-width: 48px !important;
        min-height: 48px !important;
        width: 48px !important;
        height: 48px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border-radius: 50% !important;
        z-index: 100 !important;
    }
    
    .favorite svg {
        width: 26px !important;
        height: 26px !important;
        pointer-events: none !important;
    }
}

/* Ajuste logo/ícono hamburguesa para tablets (iPad, iOS 12+) */
@media (min-width: 769px) and (max-width: 1024px) {
    .logo {
        margin-top: 40px;
    }

    .logo img {
        width: 55px;
    }

    .menu-icon {
        left: 20px;
        font-size: 24px;
    }
}
/* ===== FALLBACK DE ESPACIADO PARA iOS 12 / SAFARI ANTIGUO ===== */
/* Estos navegadores no soportan "gap" en flexbox (llego en Safari 14.1 / iOS 14.5).
   Sin este fallback, los enlaces del menu, el carrusel y los iconos del footer
   se ven pegados entre si en iPad Air y otros dispositivos con iOS 12. */
@supports not (gap: 1px) {
    .menu-social a:not(:last-child) {
        margin-right: 24px;
    }
    .carrusel-track .carrusel-item:not(:last-child) {
        margin-right: 20px;
    }
    .footer-redes a:not(:last-child) {
        margin-right: 25px;
    }
}