/* style.css - CATÁLOGO EXTERNO Y FOOTER COMPLETO */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&family=Inter:wght@400;600&display=swap');

:root {
    --bg-white: #ffffff; 
    --grid-gray: #eeeeee; 
    --border-gray: #cccccc; 
    --text-main: #555555; 
    --text-light: #888888; 
}

/* 1. CORRECCIÓN GLOBAL: Bloquea el scroll horizontal y obliga a calcular márgenes hacia adentro para no desbordar */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif; background-color: var(--bg-white); color: var(--text-main);
    background-image: linear-gradient(var(--grid-gray) 1px, transparent 1px), linear-gradient(90deg, var(--grid-gray) 1px, transparent 1px);
    background-size: 40px 40px;
    position: relative;
}

.technical-text { font-family: 'Roboto Mono', monospace; font-size: 12px; letter-spacing: 1px; color: var(--text-light); text-transform: uppercase; }

/* --- Header y Menú --- */
header { background-color: rgba(255, 255, 255, 0.98); padding: 10px 40px; border-bottom: 1px solid var(--border-gray); display: flex; justify-content: space-between; align-items: center; backdrop-filter: blur(5px); z-index: 1000; position: sticky; top: 0; }
.brand-container { display: flex; align-items: center; gap: 15px; }
.header-icon { display: block; width: 40px !important; height: 40px !important; object-fit: contain; }
.brand-name { font-family: 'Roboto Mono', monospace; font-size: 18px; font-weight: 700; letter-spacing: 1.5px; color: var(--text-main); }
.menu-toggle { display: none; background: none; border: none; color: var(--text-main); cursor: pointer; padding: 5px; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; }
nav ul li a { text-decoration: none; color: var(--text-light); font-family: 'Roboto Mono', monospace; font-weight: 700; font-size: 14px; text-transform: uppercase; padding-bottom: 5px; border-bottom: 2px solid transparent; transition: all 0.3s ease; }
nav ul li a:hover { color: var(--text-main); border-bottom: 2px solid var(--border-gray); }

/* --- Hero Section --- */
main { width: 100%; }
.hero-section { padding: 60px 40px 100px 40px; min-height: 80vh; display: flex; justify-content: center; align-items: center; position: relative; border-bottom: 1px solid var(--border-gray); }
.hero-layout { display: flex; align-items: center; justify-content: space-between; gap: 50px; width: 100%; max-width: 1200px; z-index: 1; position: relative; margin: 0 auto; }

.flight-manual-card { flex: 1; max-width: 600px; background-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(5px); border: 1px solid var(--border-gray); padding: 60px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.03); text-align: center; }
.flight-manual-card::before, .flight-manual-card::after { content: ''; position: absolute; width: 20px; height: 20px; border: 1px solid var(--border-gray); }
.flight-manual-card::before { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.flight-manual-card::after { bottom: 20px; right: 20px; border-left: none; border-top: none; }
.manual-meta { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border-gray); padding-bottom: 10px; margin-bottom: 40px; }
.main-logo-container { margin: 0 auto 40px auto; width: 100%; max-width: 300px; height: auto; display: flex; justify-content: center; overflow: hidden; }
.main-logo { width: 100% !important; max-width: 300px !important; object-fit: contain; }
.hero-title { font-size: 32px; margin-bottom: 15px; font-weight: 600; color: var(--text-main); }
.hero-text { color: var(--text-light); max-width: 600px; margin: 0 auto; line-height: 1.8; }

/* --- Globo Terráqueo 3D Dinámico --- */
.globe-wrapper { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; min-width: 450px; }

.globe-3d {
    width: 420px; height: 420px; border-radius: 50%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/c/c3/Solarsystemscope_texture_2k_earth_daymap.jpg');
    background-size: 840px auto; background-repeat: repeat-x;
    box-shadow: 
        inset 20px 0px 40px rgba(0, 180, 255, 0.45), 
        inset -40px -40px 60px var(--globe-shadow), 
        inset 10px 10px 30px var(--globe-light), 
        0 15px 35px rgba(0,0,0,0.15);
    animation: spinEarth 35s linear infinite; z-index: 2; position: relative; transition: all 1s ease;
}

.globe-day { --globe-shadow: rgba(0, 0, 0, 0.7); --globe-light: rgba(255, 255, 255, 0.85); filter: contrast(125%) saturate(170%) brightness(1.15); }
.globe-night { --globe-shadow: rgba(0, 0, 0, 0.9); --globe-light: rgba(100, 150, 255, 0.4); filter: contrast(115%) saturate(130%) brightness(0.8); }

.globe-radar-ring { position: absolute; width: 480px; height: 480px; border: 1px dashed var(--border-gray); border-radius: 50%; animation: spinRing 50s linear infinite reverse; z-index: 1; }
.radar-plane { position: absolute; width: 24px; height: 24px; top: -12px; left: 50%; transform: translateX(-50%) rotate(-90deg); color: var(--text-light); }

@keyframes spinEarth { 0% { background-position: 0px 0; } 100% { background-position: 840px 0; } }
@keyframes spinRing { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- Call to Action --- */
.scroll-cta { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text-light); transition: color 0.3s ease; z-index: 10; }
.scroll-cta:hover { color: var(--text-main); }
.scroll-cta .technical-text { font-size: 10px; margin-bottom: 5px; letter-spacing: 2px; }
.scroll-arrow { width: 28px; height: 28px; animation: bounceCTA 2s infinite; }
@keyframes bounceCTA { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(10px); } 60% { transform: translateY(5px); } }
.desktop-cta { display: flex; }
.mobile-cta { display: none; }

/* --- Slider de Postales y Sellos --- */
.slider-section { padding: 80px 40px 20px 40px; display: flex; justify-content: center; align-items: center; background-color: transparent; position: relative; overflow: hidden; z-index: 1; }
.card-stack { position: relative; width: 100%; max-width: 700px; height: 350px; z-index: 5; }
.postal-card { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: transparent; transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.postal-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; border: 10px solid #ffffff; box-shadow: 0 10px 25px rgba(0,0,0,0.1); background-color: #ffffff; }
.postal-card[data-pos="0"] { z-index: 3; transform: scale(1) translateY(0); opacity: 1; }
.postal-card[data-pos="1"] { z-index: 2; transform: scale(0.95) translateY(25px); opacity: 0.8; }
.postal-card[data-pos="2"] { z-index: 1; transform: scale(0.90) translateY(50px); opacity: 0.5; }
.postal-card.animating-out { z-index: 4; transform: translateY(-80px) translateX(60px) rotate(8deg) scale(1.05); opacity: 0; }

.stamps-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.bg-stamp { position: absolute; opacity: 0.85; mix-blend-mode: multiply; animation: floatStamp ease-in-out infinite; }

.stamp-left-1 { top: 8%; left: 5%; width: 130px; --base-rot: -15deg; animation-duration: 6s; animation-delay: 0s; }
.stamp-left-2 { top: 32%; left: 14%; width: 150px; --base-rot: 12deg; animation-duration: 7.5s; animation-delay: 1.2s; }
.stamp-left-3 { top: 60%; left: 6%; width: 120px; --base-rot: -22deg; animation-duration: 5.5s; animation-delay: 2.5s; }
.stamp-left-4 { bottom: 8%; left: 16%; width: 140px; --base-rot: 18deg; animation-duration: 6.8s; animation-delay: 0.8s; }
.stamp-right-1 { top: 10%; right: 8%; width: 145px; --base-rot: 20deg; animation-duration: 7s; animation-delay: 0.5s; }
.stamp-right-2 { top: 35%; right: 16%; width: 135px; --base-rot: -12deg; animation-duration: 6.2s; animation-delay: 2s; }
.stamp-right-3 { top: 62%; right: 5%; width: 155px; --base-rot: 25deg; animation-duration: 8s; animation-delay: 1.5s; }
.stamp-right-4 { bottom: 10%; right: 14%; width: 125px; --base-rot: -18deg; animation-duration: 5.8s; animation-delay: 3s; }

@keyframes floatStamp {
    0%, 100% { transform: translateY(0) rotate(var(--base-rot)); }
    50% { transform: translateY(-15px) rotate(calc(var(--base-rot) + 5deg)); }
}

/* Botón Flecha Curva (Slider) */
.manual-slide-btn { position: absolute; left: 0; top: 50%; transform: translateY(-50%); background: var(--bg-white); border: 1px solid var(--border-gray); border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; color: var(--text-main); cursor: pointer; z-index: 10; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.manual-slide-btn:hover { background: var(--text-main); color: var(--bg-white); border-color: var(--text-main); }

/* Barra de Cupones */
.coupon-bar-section { width: 100%; background-color: #1a1a1a; border-top: 1px solid #333; border-bottom: 1px solid #333; overflow: hidden; position: relative; z-index: 10; margin-top: 50px; }
.coupon-bar-link { display: block; width: 100%; text-decoration: none; padding: 12px 20px; text-align: center; transition: background-color 0.3s; }
.coupon-bar-link:hover { background-color: #000; }
.coupon-track { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; font-family: 'Roboto Mono', monospace; font-size: 12px; color: #00ff66; letter-spacing: 1px; line-height: 1.5; }
.blink-dot { display: inline-block; width: 8px; height: 8px; background-color: #00ff66; border-radius: 50%; margin-left: 10px; animation: blinker 1.5s linear infinite; box-shadow: 0 0 8px #00ff66; }

/* --- Catálogo: Index --- */
.products-section { padding: 80px 40px 100px 40px; max-width: 1200px; margin: 0 auto; background-color: transparent; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 28px; font-weight: 600; color: var(--text-main); letter-spacing: 2px; margin-bottom: 10px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px 20px; }
.product-card.vertical-card { aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-decoration: none; background-color: var(--bg-white); border: 1px solid var(--border-gray); padding: 20px; text-align: center; transition: all 0.3s ease; position: relative; }
.product-card.vertical-card::before { content: ''; position: absolute; top: 0; left: 0; width: 10px; height: 10px; border-top: 2px solid var(--text-main); border-left: 2px solid var(--text-main); opacity: 0; transition: opacity 0.3s ease; }
.product-card.vertical-card:hover { border-color: var(--text-main); background-color: #fafafa; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.04); }
.product-card.vertical-card:hover::before { opacity: 1; }
.card-ref { display: block; width: 100%; text-align: left; color: #aaaaaa; margin-bottom: 10px; }
.product-title { font-size: 15px; font-weight: 600; color: var(--text-main); margin: 10px 0 0 0; height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; }
.card-icon-wrapper { flex: 1; width: 100%; display: flex; justify-content: center; align-items: center; padding: 10px; }
.floating-item { width: 100%; height: 100%; max-height: 200px; object-fit: contain; filter: drop-shadow(0 10px 4px rgba(0,0,0,0.06)); animation: levitateSutil 4s ease-in-out infinite; }
@keyframes levitateSutil { 0%, 100% { transform: translateY(0); filter: drop-shadow(0 10px 4px rgba(0,0,0,0.06)); } 50% { transform: translateY(-8px); filter: drop-shadow(0 15px 6px rgba(0,0,0,0.03)); } }
.delay-1 { animation-delay: 0s; } .delay-2 { animation-delay: 0.7s; } .delay-3 { animation-delay: 1.4s; }

/* 2. CORRECCIÓN FLECHAS INDEX: Ancladas y ocultas en PC */
.catalog-slider-wrapper { position: relative; width: 100%; }
.slider-arrow { display: none; } 

/* --- Tarjeta del Creador --- */
.founder-section { padding: 40px 40px 80px 40px; max-width: 900px; margin: 0 auto; }
.founder-card { display: flex; align-items: center; gap: 40px; background-color: var(--bg-white); border: 1px solid var(--border-gray); padding: 50px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.founder-corners::before, .founder-corners::after { content: ''; position: absolute; width: 20px; height: 20px; border: 1px solid var(--border-gray); }
.founder-corners::before { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.founder-corners::after { bottom: 20px; right: 20px; border-left: none; border-top: none; }
.founder-photo-wrapper { flex-shrink: 0; width: 220px; height: 220px; border-radius: 50%; border: 5px solid var(--grid-gray); overflow: hidden; background-color: var(--grid-gray); }
.founder-photo { width: 100%; height: 100%; object-fit: cover; }
.founder-info { flex: 1; }
.founder-name { margin: 0 0 5px 0; font-size: 32px; font-weight: 700; color: var(--text-main); }
.founder-title { display: block; margin-bottom: 20px; color: #aaaaaa; }
.founder-bio { line-height: 1.8; color: var(--text-light); margin: 0; font-size: 15px;}

/* --- Footer --- */
footer { background-color: var(--bg-white); border-top: 1px solid var(--border-gray); padding: 60px 40px 20px 40px; display: flex; flex-direction: column; align-items: center; }
.footer-container { width: 100%; max-width: 1200px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--grid-gray); padding-bottom: 40px; }
.footer-column { display: flex; flex-direction: column; gap: 15px; }
.footer-info { color: var(--text-light); font-size: 14px; line-height: 1.6; margin: 0; }
.footer-title { margin: 0; color: var(--text-main); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links li a { text-decoration: none; color: var(--text-light); font-size: 14px; transition: color 0.3s ease; }
.footer-links li a:hover { color: var(--text-main); }
.reclamaciones-btn { display: inline-block; padding: 12px 20px; border: 1px solid var(--border-gray); color: var(--text-main); text-decoration: none; text-align: center; transition: all 0.3s ease; background-color: #fafafa; }
.reclamaciones-btn:hover { background-color: var(--text-main); color: var(--bg-white); border-color: var(--text-main); }
.footer-credit { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; text-align: center; width: 100%; }
.canchita-logo { height: 22px; width: auto; object-fit: contain; }

/* ============================================================================== */
/* === CÓDIGO ORIGINAL INTACTO DE LAS PÁGINAS INTERNAS (Tienda, Blog, Prod) === */
/* ============================================================================== */

.header-right { display: flex; align-items: center; gap: 30px; }
.header-actions { display: flex; align-items: center; gap: 15px; border-left: 1px solid var(--border-gray); padding-left: 20px; }
.action-icon { position: relative; color: var(--text-light); transition: color 0.3s ease; display: flex; align-items: center; }
.action-icon:hover { color: var(--text-main); }
.cart-badge { position: absolute; top: -8px; right: -10px; background-color: #d32f2f; color: white; font-size: 10px; padding: 2px 5px; border-radius: 10px; font-weight: bold; }

.page-header-container { padding: 40px; text-align: center; border-bottom: 1px solid var(--border-gray); background-color: #fafafa; }
.page-title { font-size: 32px; letter-spacing: 2px; color: var(--text-main); margin-bottom: 10px; }

/* Estructura Tienda */
.shop-layout { display: flex; gap: 40px; padding: 40px; max-width: 1200px; margin: 0 auto; }
.shop-sidebar { width: 250px; flex-shrink: 0; }
.shop-grid-container { flex: 1; }
.filter-title { border-bottom: 1px solid var(--text-main); padding-bottom: 10px; margin-bottom: 20px; }
.filter-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.filter-list li a { text-decoration: none; color: var(--text-light); transition: color 0.3s; font-size: 14px; }
.filter-list li a:hover { color: var(--text-main); font-weight: 600; }
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; }
.item-card { background: var(--bg-white); border: 1px solid var(--border-gray); padding: 20px; text-align: center; transition: all 0.3s; }
.item-card:hover { border-color: var(--text-main); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.item-img { width: 100%; height: 180px; object-fit: contain; margin-bottom: 15px; }
.item-price { font-family: 'Roboto Mono', monospace; font-size: 18px; font-weight: 700; margin-top: 10px; color: var(--text-main); }
.btn-add { display: inline-block; margin-top: 15px; padding: 10px 20px; background-color: transparent; border: 1px solid var(--text-main); color: var(--text-main); font-family: 'Roboto Mono', monospace; font-size: 12px; cursor: pointer; transition: all 0.3s; text-decoration: none; width: 100%; text-transform: uppercase;}
.btn-add:hover { background-color: var(--text-main); color: var(--bg-white); }

/* Estructura Blog */
.blog-layout { padding: 40px; max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.blog-post { display: flex; gap: 30px; border: 1px solid var(--border-gray); padding: 20px; background: var(--bg-white); transition: all 0.3s; }
.blog-post:hover { border-color: var(--text-main); box-shadow: 0 10px 25px rgba(0,0,0,0.03); }
.blog-img { width: 300px; height: 200px; object-fit: cover; flex-shrink: 0; }
.blog-content { display: flex; flex-direction: column; justify-content: center; }
.blog-date { color: #aaaaaa; margin-bottom: 10px; }
.blog-title { font-size: 22px; margin: 0 0 15px 0; color: var(--text-main); }
.blog-excerpt { color: var(--text-light); line-height: 1.6; margin-bottom: 20px; }
.btn-read { align-self: flex-start; text-decoration: none; color: var(--text-main); border-bottom: 1px solid var(--text-main); padding-bottom: 2px; font-family: 'Roboto Mono', monospace; font-size: 12px; text-transform: uppercase; }

/* Contacto, Carrito y Perfil */
.contact-layout { display: flex; gap: 60px; padding: 60px 40px 100px 40px; max-width: 1000px; margin: 0 auto; }
.contact-info-panel, .contact-form-panel { flex: 1; }
.info-block { margin-bottom: 30px; }
.info-block p { margin: 8px 0 0 0; color: var(--text-main); font-size: 16px; line-height: 1.6; }
.technical-form .form-group { margin-bottom: 25px; }
.technical-form label { display: block; margin-bottom: 10px; color: var(--text-light); }
.technical-form input, .technical-form textarea { width: 100%; padding: 15px; border: 1px solid var(--border-gray); background-color: transparent; color: var(--text-main); font-family: 'Inter', sans-serif; font-size: 15px; transition: all 0.3s ease; }
.technical-form input:focus, .technical-form textarea:focus { outline: none; border-color: var(--text-main); box-shadow: 0 4px 10px rgba(0,0,0,0.03); background-color: var(--bg-white); }
.technical-form textarea { resize: vertical; }

.cart-layout { display: flex; gap: 40px; padding: 60px 40px; max-width: 1200px; margin: 0 auto; align-items: flex-start; }
.cart-items-container { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.cart-header { display: flex; border-bottom: 2px solid var(--border-gray); padding-bottom: 10px; color: var(--text-light); }
.cart-item { display: flex; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--grid-gray); position: relative; }
.cart-col-product { flex: 2; display: flex; align-items: center; gap: 20px; }
.cart-col-price, .cart-col-qty, .cart-col-total { flex: 1; text-align: center; }
.cart-item-img { width: 80px; height: 80px; object-fit: contain; background: #fafafa; border: 1px solid var(--grid-gray); padding: 5px; }
.cart-item-title { margin: 5px 0 0 0; font-size: 16px; color: var(--text-main); }
.qty-input { width: 60px; padding: 8px; text-align: center; border: 1px solid var(--border-gray); font-family: 'Roboto Mono', monospace; }
.remove-btn { position: absolute; right: 0; background: none; border: none; font-size: 24px; color: #ff5252; cursor: pointer; }
.cart-summary { width: 350px; background: #fafafa; border: 1px solid var(--border-gray); padding: 30px; position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 20px; color: var(--text-main); }
.total-row { border-top: 2px solid var(--border-gray); padding-top: 20px; margin-top: 20px; font-weight: bold; align-items: center; }
.total-price { font-family: 'Roboto Mono', monospace; font-size: 24px; color: var(--text-main); }
.btn-checkout { background-color: var(--text-main); color: var(--bg-white); text-align: center; padding: 15px; font-size: 14px; margin-top: 10px; display: block; width: 100%;}
.btn-checkout:hover { background-color: #333333; color: var(--bg-white); }

.profile-layout { display: flex; gap: 60px; padding: 60px 40px; max-width: 1200px; margin: 0 auto; }
.profile-content { flex: 1; }
.profile-form { max-width: 600px; }
.orders-table-wrapper { width: 100%; overflow-x: auto; }
.technical-table { width: 100%; border-collapse: collapse; text-align: left; font-family: 'Roboto Mono', monospace; font-size: 14px; }
.technical-table th { padding: 15px; border-bottom: 2px solid var(--border-gray); color: var(--text-light); }
.technical-table td { padding: 15px; border-bottom: 1px solid var(--grid-gray); color: var(--text-main); }
.technical-table tbody tr:hover { background-color: #fafafa; }

/* Controles Tienda y Buscador */
.shop-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; gap: 20px; }
.technical-search-form { display: flex; flex: 1; max-width: 500px; margin-left: auto; }
.search-input { flex: 1; padding: 12px 15px; border: 1px solid var(--border-gray); border-right: none; font-family: 'Inter', sans-serif; font-size: 14px; background-color: var(--bg-white); color: var(--text-main); outline: none; }
.search-input:focus { border-color: var(--text-main); }
.search-btn { padding: 12px 20px; background-color: var(--text-main); color: var(--bg-white); border: 1px solid var(--text-main); cursor: pointer; transition: background-color 0.3s; }
.search-btn:hover { background-color: #333333; }
.btn-mobile-filters { display: none; padding: 12px 20px; background-color: transparent; border: 1px solid var(--text-main); color: var(--text-main); cursor: pointer; }
.sidebar-mobile-header { display: none; }
.filter-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.5); z-index: 1050; backdrop-filter: blur(2px); }

/* --- PRODUCTO INDIVIDUAL --- */
.breadcrumb-container { padding: 20px 40px; background-color: #fafafa; border-bottom: 1px solid var(--border-gray); color: var(--text-light); }
.breadcrumb-container a { color: var(--text-light); text-decoration: none; transition: color 0.3s; }
.breadcrumb-container a:hover { color: var(--text-main); }
.product-detail-layout { display: flex; gap: 60px; padding: 60px 40px 100px 40px; max-width: 1200px; margin: 0 auto; }
.product-gallery { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.main-image-container { width: 100%; height: 500px; border: 1px solid var(--border-gray); background-color: var(--bg-white); display: flex; justify-content: center; align-items: center; padding: 20px; }

/* 3. CORRECCIÓN VITAL IMAGEN DE PRODUCTO: Asegura que no se desborde nunca */
.main-image-container img { width: 100%; height: 100%; object-fit: contain; }

.thumbnail-list { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 10px; }
.thumbnail { width: 80px; height: 80px; object-fit: contain; border: 1px solid var(--border-gray); background-color: var(--bg-white); padding: 5px; cursor: pointer; opacity: 0.6; transition: all 0.3s; }
.thumbnail:hover, .thumbnail.active { opacity: 1; border-color: var(--text-main); }
.product-info { flex: 1; display: flex; flex-direction: column; }
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.detail-title { font-size: 36px; margin: 0 0 15px 0; color: var(--text-main); line-height: 1.2; }
.detail-price { font-family: 'Roboto Mono', monospace; font-size: 32px; font-weight: 700; color: var(--text-main); margin: 0 0 30px 0; }
.detail-description { line-height: 1.8; color: var(--text-light); margin-bottom: 40px; }
.add-to-cart-form { background-color: #fafafa; border: 1px solid var(--border-gray); padding: 30px; }
.quantity-selector input { width: 100px; padding: 12px; font-family: 'Roboto Mono', monospace; font-size: 16px; text-align: center; border: 1px solid var(--border-gray); background-color: var(--bg-white); margin-bottom: 20px; }
.btn-large { width: 100%; padding: 18px; font-size: 14px; font-weight: bold; background-color: var(--text-main); color: var(--bg-white); }
.btn-large:hover:not([disabled]) { background-color: #333333; }

/* Menú Desplegable y Auth */
.profile-dropdown-container { position: relative; display: flex; align-items: center; }
#profile-btn { background: none; border: none; padding: 0; cursor: pointer; display: flex; align-items: center; }
.profile-dropdown { position: absolute; top: 150%; right: -10px; width: 200px; background-color: var(--bg-white); border: 1px solid var(--border-gray); box-shadow: 0 15px 30px rgba(0,0,0,0.1); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1001; }
.profile-dropdown-container:hover .profile-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-header { padding: 15px; background-color: #fafafa; border-bottom: 1px solid var(--grid-gray); color: var(--text-light); font-size: 10px; text-align: center; }
.profile-dropdown a { padding: 12px 15px; text-decoration: none; color: var(--text-main); font-size: 14px; border-bottom: 1px solid var(--grid-gray); transition: background-color 0.2s; }
.profile-dropdown a:hover { background-color: #fafafa; color: #000; }
.profile-dropdown a.logout-link { color: #d32f2f; }
.profile-dropdown a.logout-link:hover { background-color: #ffebee; }
.auth-layout { display: flex; justify-content: center; align-items: center; min-height: 75vh; padding: 40px; }
.auth-card { width: 100%; max-width: 450px; background-color: var(--bg-white); border: 1px solid var(--border-gray); padding: 50px 40px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.auth-corners::before, .auth-corners::after { content: ''; position: absolute; width: 15px; height: 15px; border: 1px solid var(--border-gray); }
.auth-corners::before { top: 15px; left: 15px; border-right: none; border-bottom: none; }
.auth-corners::after { bottom: 15px; right: 15px; border-left: none; border-top: none; }
.auth-header { text-align: center; margin-bottom: 40px; border-bottom: 1px solid var(--grid-gray); padding-bottom: 20px; }
.auth-footer { margin-top: 30px; text-align: center; display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--grid-gray); }
.auth-link { font-family: 'Roboto Mono', monospace; font-size: 12px; color: var(--text-main); text-decoration: none; font-weight: bold; transition: color 0.3s; }
.auth-link:hover { color: #000; text-decoration: underline; }
.system-alert { padding: 15px; margin-bottom: 20px; text-align: center; border: 1px solid; background-color: #fafafa; }
.system-alert.error { border-color: #d32f2f; color: #d32f2f; }
.system-alert.error .technical-text { color: #d32f2f; font-weight: bold; }
.system-alert.success { border-color: #2e7d32; color: #2e7d32; }
.system-alert.success .technical-text { color: #2e7d32; font-weight: bold; }

/* --- NUEVOS ESTILOS: BOLETÍN TIPO PERIÓDICO (BLOG.PHP) --- */
.newspaper-layout { 
    display: flex; 
    gap: 60px; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 60px 40px; 
    align-items: flex-start; 
}

.newspaper-column { 
    flex: 1; 
}

.column-header {
    font-size: 20px;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 10px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* Divisor vertical tipo diario */
.newspaper-divider { 
    width: 1px; 
    background-color: var(--border-gray); 
    align-self: stretch; 
}

.news-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px dashed var(--border-gray);
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.news-title {
    font-size: 20px;
    margin: 15px 0 5px 0;
    color: var(--text-main);
    line-height: 1.3;
}

.news-date {
    margin-bottom: 15px;
}

.news-excerpt {
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

/* Envoltorio Responsive para el iFrame de YouTube */
.yt-wrapper { 
    position: relative; 
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    height: 0; 
    overflow: hidden; 
    border: 1px solid var(--border-gray);
    background-color: #000;
}

.yt-wrapper iframe { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
}

/* Adaptación a folleto apilado en Móviles */
@media (max-width: 768px) {
    .newspaper-layout { 
        flex-direction: column; 
        gap: 40px; 
        padding: 40px 20px; 
    }
    
    /* El divisor vertical se convierte en una línea horizontal separadora */
    .newspaper-divider { 
        width: 100%; 
        height: 2px; 
        background-color: var(--text-main); 
    }
}

/* ==================================================================================== */
/* === RESPONSIVE GENERAL: GRID PC Y ADAPTACIONES PARA MÓVILES === */
/* ==================================================================================== */

@media (min-width: 1025px) {
    .products-grid { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; gap: 20px !important; width: 100% !important; margin: 0 auto !important; padding: 0 !important; }
    .product-card.vertical-card { width: calc(20% - 16px) !important; max-width: 215px !important; flex: 0 0 auto !important; margin: 0 !important; }
}

@media (max-width: 1024px) {
    .menu-toggle { display: block; }
    nav ul { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--bg-white); flex-direction: column; gap: 0; border-bottom: 1px solid var(--border-gray); box-shadow: 0 10px 15px rgba(0,0,0,0.05); }
    nav ul.active { display: flex; }
    nav ul li { text-align: center; border-top: 1px solid var(--grid-gray); }
    nav ul li a { display: block; padding: 20px; font-size: 16px; }

    .hero-layout { flex-direction: column-reverse; text-align: center; gap: 60px; }
    .flight-manual-card { max-width: 100%; padding: 40px 20px; }
    
    .globe-wrapper { margin-top: 40px; margin-bottom: 70px; min-width: auto; }
    /* Globo más pequeño que el anillo para que se vea el avión en móvil */
    .globe-3d { width: 260px !important; height: 260px !important; background-size: 520px auto !important; }
    .globe-radar-ring { width: 310px !important; height: 310px !important; }
    
    .desktop-cta { display: none !important; }
    .mobile-cta { display: flex; position: absolute; bottom: -70px; left: 50%; transform: translateX(-50%); }
    .card-stack { height: 250px; }
    .founder-card { flex-direction: column; text-align: center; padding: 40px 20px; gap: 25px; }
    .footer-container { text-align: center; }
    .footer-column { align-items: center; }
    .header-right { gap: 15px; }
    .header-actions { border-left: none; padding-left: 0; }
    .profile-dropdown { right: auto; left: -100px; }
    .bg-stamp { opacity: 0.35; }
    .stamp-left-1 { top: 5%; left: -20px; width: 90px; }
    .stamp-left-2 { top: 30%; left: -35px; width: 100px; }
    .stamp-left-3 { top: 55%; left: -15px; width: 85px; }
    .stamp-left-4 { bottom: 5%; left: -25px; width: 95px; }
    .stamp-right-1 { top: 8%; right: -25px; width: 100px; }
    .stamp-right-2 { top: 35%; right: -15px; width: 90px; }
    .stamp-right-3 { top: 60%; right: -30px; width: 105px; }
    .stamp-right-4 { bottom: 8%; right: -20px; width: 85px; }

    /* Slider Deslizable del Catálogo Móvil */
    .slider-arrow { display: flex; position: absolute; top: calc(50% - 15px); transform: translateY(-50%); z-index: 10; background: rgba(255, 255, 255, 0.95); border: 1px solid var(--border-gray); border-radius: 50%; width: 44px; height: 44px; align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(0,0,0,0.15); color: var(--text-main); cursor: pointer; transition: opacity 0.3s, visibility 0.3s; }
    .left-arrow { left: -10px; }
    .right-arrow { right: -10px; }
    .slider-arrow.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
    
    .products-grid { display: flex; overflow-x: auto; flex-wrap: nowrap; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; padding: 10px 0 30px 0; gap: 20px; }
    .products-grid::-webkit-scrollbar { display: none; }
    .product-card.vertical-card { flex: 0 0 240px; scroll-snap-align: center; }
}

@media (max-width: 900px) {
    .product-detail-layout { flex-direction: column; gap: 40px; padding: 40px 20px; }
    .main-image-container { height: 400px; }
    .shop-controls { flex-direction: column-reverse; align-items: stretch; gap: 15px; }
    .technical-search-form { max-width: 100%; margin-left: 0; }
    .search-input, .search-btn, .btn-mobile-filters { padding: 15px 20px; font-size: 16px; }
    .btn-mobile-filters { display: block; }
    .shop-sidebar { position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; background-color: var(--bg-white); z-index: 1100; box-shadow: -5px 0 25px rgba(0,0,0,0.15); padding: 0; transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow-y: auto; }
    .shop-sidebar.open { right: 0; }
    .filter-overlay.open { display: block; }
    .sidebar-mobile-header { display: flex; justify-content: space-between; align-items: center; padding: 25px; border-bottom: 1px solid var(--border-gray); background-color: #fafafa; }
    .filter-title { display: none; }
    .close-sidebar-btn { background: none; border: none; font-size: 28px; color: var(--text-main); cursor: pointer; line-height: 1; }
    .shop-sidebar .filter-list { padding: 20px 25px; }
}

/* 4. AJUSTE DE MÁRGENES MÓVILES (Reemplazando el padding de 40px por 20px, sin afectar max-width ni margin central) */
@media (max-width: 768px) {
    header { padding: 10px 20px; }
    .hero-section { padding: 40px 20px 80px 20px; }
    .slider-section { padding: 60px 20px 20px 20px; }
    .products-section { padding: 60px 20px 80px 20px; }
    .founder-section { padding: 30px 20px 60px 20px; }
    footer { padding: 40px 20px 20px 20px; }
    
    .shop-layout { padding: 30px 20px; flex-direction: column; }
    
    .blog-layout { padding: 30px 20px; }
    .blog-post { flex-direction: column; }
    .blog-img { width: 100%; height: auto; }
    
    .contact-layout { padding: 40px 20px; flex-direction: column; gap: 50px; }
    
    .cart-layout { padding: 40px 20px; flex-direction: column; }
    .cart-summary { width: 100%; box-sizing: border-box; position: static; }
    .cart-header { display: none; }
    .cart-item { flex-direction: column; align-items: flex-start; gap: 15px; }
    .cart-col-product, .cart-col-price, .cart-col-qty, .cart-col-total { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; }
    .cart-col-price::before { content: 'PRECIO:'; font-size: 12px; color: var(--text-light); }
    .cart-col-total::before { content: 'TOTAL:'; font-size: 12px; color: var(--text-light); }
    .remove-btn { top: 20px; right: 0; }
    
    .profile-layout { padding: 40px 20px; flex-direction: column; gap: 40px; }
    .manual-slide-btn { left: -10px; width: 40px; height: 40px; }
    .coupon-track { font-size: 10px; flex-direction: column; gap: 8px; text-align: center; }
    .blink-dot { display: none; }
    
    /* PRODUCTO: Imagen contenida estrictamente en móvil */
    .detail-title { font-size: 24px; line-height: 1.3; }
    .detail-price { font-size: 26px; margin-bottom: 20px; }
    .add-to-cart-form { padding: 20px; }
    .main-image-container { height: 280px; padding: 10px; }
}

/* --- NUEVOS ESTILOS: MENÚ DE PERFIL Y MODAL FRONT-END --- */

/* Sidebar Perfil (Activo) */
.profile-sidebar-list li a { text-decoration: none; color: var(--text-light); transition: color 0.3s; font-size: 14px; display: block; padding: 8px 0; }
.profile-sidebar-list li a:hover, .profile-sidebar-list li a.active { color: var(--text-main); font-weight: 700; border-left: 2px solid var(--text-main); padding-left: 10px; }

/* Modal Front-End */
.frontend-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); z-index: 9999; justify-content: center; align-items: center; backdrop-filter: blur(2px); }
.frontend-modal-card { width: 100%; max-width: 500px; background: var(--bg-white); border: 1px solid var(--border-gray); padding: 40px; position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.15); margin: 20px; }
.close-modal-btn { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 24px; color: var(--text-light); cursor: pointer; }

/* --- NAVEGACIÓN MÓVIL PARA EL PERFIL --- */
.btn-profile-menu { 
    display: none; 
    width: 100%; 
    padding: 15px 20px; 
    background: var(--bg-white); 
    border: 1px solid var(--border-gray); 
    font-family: 'Roboto Mono', monospace; 
    font-size: 14px; 
    color: var(--text-main); 
    cursor: pointer; 
    margin-bottom: 20px; 
    justify-content: space-between; 
    align-items: center; 
}

@media (max-width: 768px) {
    .btn-profile-menu { display: flex; }
    .shop-sidebar .filter-title { display: none; } /* Oculta el título estático en móvil */
    .profile-sidebar-list { display: none; background: #fafafa; border: 1px solid var(--border-gray); padding: 15px; margin-bottom: 30px; }
    .profile-sidebar-list.active { display: flex; flex-direction: column; }
}

/* Estilo para las Tarjetas de Dirección */
.address-card { border: 1px solid var(--border-gray); padding: 20px; background: var(--bg-white); position: relative; transition: all 0.3s; }
.address-card:hover { border-color: var(--text-main); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* --- NUEVOS ESTILOS: CHECKOUT PASO A PASO --- */
.checkout-layout {
    display: flex;
    gap: 40px;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.checkout-forms { flex: 2; }
.checkout-summary { flex: 1; }

.checkout-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.checkout-step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--text-main);
    color: white;
    padding: 15px 20px;
}

.step-number {
    background: var(--bg-white);
    color: var(--text-main);
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.step-title { margin: 0; font-size: 18px; letter-spacing: 1px; }

/* Selector de Métodos de Pago */
.payment-methods-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-method-label {
    border: 1px solid var(--border-gray);
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.payment-method-label:hover {
    border-color: var(--text-main);
    background: var(--bg-white);
}

.payment-method-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-method-header input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--text-main);
}

.payment-icons {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

/* Responsive Checkout */
@media (max-width: 900px) {
    .checkout-layout { flex-direction: column; padding: 40px 20px; }
    .checkout-forms, .checkout-summary { width: 100%; }
}
/* --- ESTILOS DE VARIACIONES (PRODUCTO Y PANEL) --- */

/* Selector de Variaciones en producto.php */
.variations-container {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px dashed var(--border-gray);
    border-bottom: 1px dashed var(--border-gray);
}

.variations-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.variation-option {
    display: none; /* Oculta el radio button real */
}

.variation-label {
    padding: 8px 15px;
    border: 1px solid var(--border-gray);
    background-color: var(--bg-white);
    color: var(--text-main);
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variation-label:hover {
    border-color: var(--text-main);
}

/* Efecto visual cuando la variación está seleccionada */
.variation-option:checked + .variation-label {
    background-color: var(--text-main);
    color: var(--bg-white);
    border-color: var(--text-main);
}

/* Tabla dinámica en agregar_producto.php */
.dynamic-var-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    align-items: center;
}

/* ==================================================================================== */
/* --- REDISEÑO DEL HEADER: 2 FRANJAS (BLANCO Y AZUL) --- */
/* ==================================================================================== */

/* 1. Reset del header original */
header.main-header {
    display: block !important; 
    padding: 0 !important; 
    background: transparent !important; 
    border: none !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 2. Franja Superior (Logos e Íconos) */
.header-top {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-gray);
}

.header-actions-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 3. Franja Inferior (Azul Aviación) */
.header-bottom {
    background-color: #0b1d3a; /* Tono azul naval técnico */
    border-bottom: 1px solid #061124;
}

.header-bottom nav ul {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
    margin: 0;
    padding: 12px 40px;
    list-style: none;
}

.header-bottom nav ul li a {
    color: #ffffff !important; /* Letras blancas sobre azul */
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-bottom nav ul li a:hover {
    color: #93c5fd !important; /* Azul celeste al iluminar */
    border-bottom: 2px solid #93c5fd !important;
}

/* 4. Adaptación para Móviles */
@media (max-width: 1024px) {
    .header-top {
        padding: 10px 20px;
    }
    
    .header-bottom nav ul {
        display: none !important; /* Oculto por defecto en móvil */
        flex-direction: column !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0b1d3a; /* El menú móvil baja en azul naval */
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 0;
    }

    .header-bottom nav ul.active {
        display: flex !important; /* Aparece al presionar la hamburguesa */
    }

    .header-bottom nav ul li {
        border-top: 1px solid rgba(255,255,255,0.1) !important;
        text-align: center;
    }

    .header-bottom nav ul li a {
        padding: 20px !important;
        font-size: 16px !important;
    }
    
    .header-actions {
        border-left: none !important;
        padding-left: 0 !important;
    }
}