/* FOOTER MODERNO Y COMPACTO - BuscaNube */
.footer-buscanube-pro {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    border-top: 1px solid rgba(255,255,255,0.05);
    width: 100%;
    min-width: 100%;
}

/* Contenedor compacto */
.footer-container-pro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 20px 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Grilla de 3 columnas (sin marca) */
.footer-grid-pro {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
    width: 100%;
}

/* Columnas de links */
.footer-links-pro,
.footer-legal-pro,
.footer-contact-pro {
    display: flex;
    flex-direction: column;
    height: fit-content;
}

/* Títulos más compactos */
.footer-links-pro h3,
.footer-legal-pro h3,
.footer-contact-pro h3 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
    font-weight: 600;
    position: relative;
    white-space: nowrap;
}

.footer-links-pro h3::after,
.footer-legal-pro h3::after,
.footer-contact-pro h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #3b82f6;
    border-radius: 1px;
}

/* Links más compactos */
.footer-links-pro a,
.footer-legal-pro a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    padding: 0.2rem 0;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.footer-links-pro a:hover,
.footer-legal-pro a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

/* Contacto compacto */
.footer-contact-pro {
    min-height: auto;
}

.footer-contact-pro p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #94a3b8;
    min-height: 24px;
}

/* Iconos de contacto */
.footer-contact-pro i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.footer-contact-pro .fa-envelope {
    color: #ea4335;
}

.footer-contact-pro .fa-whatsapp {
    color: #25d366;
}

.footer-contact-pro a {
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    white-space: nowrap;
}

.footer-contact-pro a:hover {
    color: #3b82f6;
}

/* Línea inferior compacta */
.footer-bottom-pro {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2rem;
    width: 100%;
}

.footer-bottom-pro strong {
    color: #cbd5e1;
}

.footer-bottom-pro .credits {
    font-size: 0.75rem;
    color: #64748b;
}

/* SSL y Seguridad en Footer */
.footer-security {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
    justify-content: center;
    margin: 0.3rem 0;
    width: 100%;
}

.ssl-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    font-weight: 600;
}

.security-text {
    color: #cbd5e1;
    font-size: 0.7rem;
}

/* Enlace destacado "Sobre mí" */
.sobre-mi-link {
    color: #ffb347;
    font-weight: 500;
    transition: color 0.3s, text-decoration 0.3s;
}

.sobre-mi-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Mini descripción personal */
.footer-about-mini {
    background: rgba(255, 255, 255, 0.05);
    padding: 14px 18px;
    border-radius: 8px;
    margin: 25px 0 10px;
    text-align: center;
    font-size: 13.5px;
    color: #ddd;
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
}

.footer-about-link {
    color: #ffb347;
    text-decoration: underline;
    transition: color 0.3s;
}

.footer-about-link:hover {
    color: #fff;
}

/* RESPONSIVE DESIGN */

/* Para móviles */
@media (max-width: 768px) {
    .footer-container-pro {
        padding: 2rem 20px 1rem;
    }
    
    .footer-grid-pro {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: left;
    }
    
    .footer-links-pro h3::after,
    .footer-legal-pro h3::after,
    .footer-contact-pro h3::after {
        left: 0;
        transform: none;
    }
    
    .footer-bottom-pro {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .footer-contact-pro p {
        justify-content: flex-start;
    }
    
    .footer-security {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .ssl-badge {
        font-size: 0.7rem;
    }
    
    .security-text {
        font-size: 0.65rem;
    }
    
    .footer-about-mini {
        font-size: 12.5px;
        padding: 10px;
    }
}

/* Para tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-grid-pro {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .footer-contact-pro {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-contact-pro p {
        justify-content: center;
    }
}

/* Para pantallas grandes */
@media (min-width: 1400px) {
    .footer-container-pro {
        max-width: 1400px;
        padding: 3rem 40px 1.5rem;
    }
}

@media (min-width: 1600px) {
    .footer-container-pro {
        max-width: 1600px;
        padding: 3rem 60px 1.5rem;
    }
}

@media (min-width: 1920px) {
    .footer-container-pro {
        max-width: 1800px;
        padding: 3rem 80px 1.5rem;
    }
}

/* Asegurar que todos los elementos ocupen el 100% del contenedor */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* HEADER BUSCANUBE - BOTONES PEGADOS A LA DERECHA */
.header-buscanube {
    background: linear-gradient(135deg, #0078d7, #005a9e);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.header-buscanube::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0,0 Q500,80 1000,0 L1000,100 L0,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    background-position: bottom;
    pointer-events: none;
}

/* CONTENEDOR PRINCIPAL CON GRID */
.header-container {
    width: 100%;
    margin: 0 auto;
    padding: 0.8rem clamp(0.5rem, 2vw, 1rem);
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo buscador botones";
    align-items: center;
    gap: 1rem;
    min-height: 70px;
    box-sizing: border-box;
}

.header-buscanube.compact .header-container {
    min-height: 60px;
    padding: 0.6rem clamp(0.5rem, 2vw, 1rem);
}

/* LOGO SECTION - IZQUIERDA */
.logo-section {
    grid-area: logo;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: inherit;
    padding: 0.5rem;
    transition: background 0.3s ease;
}

.logo-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.logo-img {
    height: 45px;
    width: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    border-radius: 8px;
}

.header-buscanube.compact .logo-img {
    height: 35px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text h1 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #ffffff, #e6f7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    white-space: nowrap;
}

.header-buscanube.compact .logo-text h1 {
    font-size: 1.1rem;
}

.tagline {
    font-size: 0.7rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
    white-space: nowrap;
    color: #e6f7ff;
    margin-top: 2px;
}

.header-buscanube.compact .tagline {
    font-size: 0.6rem;
}

/* BUSCADOR - CENTRO */
.buscador-header {
    grid-area: buscador;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.header-buscanube.compact .buscador-header {
    display: none;
}

.buscador-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    flex: 1;
    transition: all 0.3s ease;
    height: 45px;
}

.buscador-container:focus-within {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.buscador-form {
    flex: 1;
    margin: 0;
    display: flex;
    align-items: center;
}

.buscador-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    width: 100%;
    padding: 0;
    outline: none;
    margin: 0;
    font-weight: 400;
}

.buscador-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.buscador-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 40px;
    flex-shrink: 0;
}

.buscador-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* BOTONES DE SESIÓN - DERECHA */
.session-buttons {
    grid-area: botones;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

/* BOTONES CON TEXTO COMPLETO */
.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    min-height: 40px;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.2;
    width: auto;
    min-width: min-content;
}

.nav-btn .btn-text {
    display: inline !important;
    font-size: 0.8rem;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: visible !important;
    text-overflow: clip !important;
    flex-shrink: 0;
}

.btn-icon {
    font-size: 0.8rem;
    flex-shrink: 0;
}


.login-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: 1px solid #1e7e34;
}

.login-btn:hover {
    background: linear-gradient(135deg, #218838, #1ca87a);
    transform: translateY(-1px);
}

.cta-btn {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-btn:hover {
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
    transform: translateY(-1px);
}

.header-buscanube.compact .nav-btn {
    min-height: 35px;
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
}

.header-buscanube.compact .nav-btn .btn-text {
    font-size: 0.75rem;
}

/* BOTÓN DE MENÚ TOGGLE - MÓVIL */
.mobile-menu-toggle {
    display: none;
    flex-shrink: 0;
}

.menu-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.menu-toggle-btn.active {
    background: linear-gradient(135deg, #0078d7, #005a9e);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.menu-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toggle-icon {
    font-size: 1rem;
}

.toggle-text {
    font-size: 0.8rem;
}

/* MENÚ MÓVIL DESPLEGABLE */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0078d7, #005a9e);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.8rem;
    align-items: center;
    max-width: 280px;
    margin: 0 auto;
}

.mobile-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 220px;
}

.mobile-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}


.mobile-nav-btn.tiendas-btn {
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color:black;
}



.mobile-nav-btn.login-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: 1px solid #1e7e34;
}

.mobile-nav-btn.cta-btn {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-nav-btn.panel-btn {
    background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
    color: #000;
    border: none;
}

.mobile-nav-btn.logout-btn-header {
    background: linear-gradient(135deg, #ff4d4d 0%, #e74c3c 100%);
    color: #fff;
    border: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .header-container {
        padding: 0.7rem 1rem;
    }
    
    .buscador-header {
        max-width: 400px;
    }
    
    .nav-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.8rem;
    }
    
    .nav-btn .btn-text {
        font-size: 0.75rem;
    }
}

/* MÓVIL - GRID CORREGIDO */
@media (max-width: 868px) {
    .header-container {
        grid-template-columns: 1fr auto;
        grid-template-areas: 
            "logo menu"
            "buscador buscador";
        gap: 0.8rem;
        padding: 0.8rem 1rem;
    }
    
    .session-buttons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        grid-area: menu;
    }
    
    .buscador-header {
        grid-area: buscador;
        max-width: 100%;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.6rem 0.8rem;
    }
    
    .nav-btn {
        font-size: 0.65rem;
        padding: 0.35rem 0.6rem;
        min-height: 32px;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
    }
    
    .tagline {
        display: none;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .menu-toggle-btn {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
        min-height: 35px;
    }
    
    .mobile-menu-content {
        max-width: 240px;
        padding: 1rem;
        gap: 0.6rem;
    }
    
    .mobile-nav-btn {
        max-width: 180px;
        padding: 0.6rem 0.9rem;
        font-size: 0.8rem;
    }
}

/* ESTILOS ADICIONALES */
.session-buttons .panel-btn {
    background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
    color: #000;
    border: none;
}

.session-buttons .logout-btn-header {
    background: linear-gradient(135deg, #ff4d4d 0%, #e74c3c 100%);
    color: #fff;
    border: none;
}

.nav-btn.tiendas-btn {
    background: white !important;
    color: #000 !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}
/* BOTONES ESPECÍFICOS - SIN IMPORTANT */
.guias-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.guias-btn:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    transform: translateY(-1px);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

/* Para la versión móvil también */
.mobile-nav-btn.guias-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.mobile-nav-btn.guias-btn:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    border: 1px solid rgba(255, 255, 255, 0.7);
}