/* src/css/layout.css - ESTILOS GLOBALES, HEADER Y FOOTER */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&family=Poppins:wght@300;400;600&display=swap');

/* =======================================
   VARIABLES Y BASE
   ======================================== */
:root {
    --bg: #0a0f1a;
    --navy: #00172d;
    --ocean: #002b4f;
    --gold: #e3b505;
    --gold-light: #f8d76e;
    --gold-dark: #d4a017;
    --text: #f5f7fa;
    --text-muted: #b8c7e0;
    --glass: rgba(10, 15, 25, 0.75);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    --error: #e63946;
    --success: #2a9d8f;
    --bg-deep: #0f1a2e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    font-size: 16px;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

p, .form-group label {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
}

a { text-decoration: none; color: inherit; }

/* =======================================
   BOTONES GLOBALES
   ======================================== */
.btn, .btn-cta, .btn.secondary {
    padding: 14px 30px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block; /* Ajuste para uso general */
}

.btn {
    background: var(--gold);
    color: #000;
    box-shadow: 0 6px 20px rgba(227, 181, 5, 0.4);
    display: block;
    margin: 0 auto;
    max-width: 350px;
    border: none;
}

.btn:hover {
    background: var(--gold-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(227, 181, 5, 0.5);
}

.btn-cta {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 12px 24px;
    box-shadow: 0 3px 10px rgba(227, 181, 5, 0.3);
}

.btn-cta:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-4px);
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn.secondary:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-4px);
}

.btn:focus, .btn-cta:focus, .btn.secondary:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* =======================================
   HEADER & NAV
   ======================================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 15, 25, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Montserrat', sans-serif;
}

.header.scrolled {
    padding: 8px 0;
    background: rgba(10, 15, 25, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 68px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.header.scrolled .logo img {
    height: 58px;
}

.social-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icon {
    color: var(--text-muted) !important;
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon:hover {
    background: var(--gold);
    color: #000 !important;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 16px rgba(227, 181, 5, 0.3);
}

.social-icon[aria-label*="Facebook"]:hover { background: #1877f2; color: white !important; }
.social-icon[aria-label*="Instagram"]:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white !important; }

/* NAVEGACIÓN */
.nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.4px;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

.nav a:hover {
    color: var(--gold);
}

.nav a:hover::after {
    width: 100%;
}

/* HAMBURGUESA */
.nav-toggle {
    display: none; 
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 5px;
    z-index: 1001; 
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* RESPONSIVE HEADER */
@media (min-width: 771px) {
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }
    .header-top { flex: 1; justify-content: flex-start; width: auto; }
    .nav { flex: 1; display: flex; justify-content: center; }
    .nav ul { gap: 32px; }
    .nav a { font-size: 1.05rem; }
}

@media (max-width: 770px) {
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        gap: 6px;
        padding: 0 18px;
    }
    .header-top { gap: 20px; width: auto; }
    .logo img { height: 64px; }
    .header.scrolled .logo img { height: 56px; }
    .social-header { display: none !important; }
    .nav { display: none; }
    .nav-toggle { display: block; }
    
    .header.mobile-active .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .header.mobile-active .nav-toggle span:nth-child(2) { opacity: 0; }
    .header.mobile-active .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

    .header.mobile-active .nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed; 
        top: 0; left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 15, 25, 0.9);
        backdrop-filter: blur(15px);
        z-index: 998; 
        padding-top: 100px; 
    }
    .header.mobile-active .nav ul { flex-direction: column; gap: 30px; text-align: center; }
    .header.mobile-active .nav a { font-size: 1.8rem; font-weight: 700; }
}

@media (max-width: 480px) {
    .header { padding: 8px 0; }
    .logo img { height: 58px; }
    .header.scrolled .logo img { height: 50px; }
}

/* ========================================
   WHATSAPP FLOAT
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 40px; right: 40px;
    width: 60px; height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float.hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
.whatsapp-float img { width: 35px; height: auto; }

/* ========================================
   FOOTER - VERSIÓN PREMIUM
   ======================================== */
.footer {
    background: var(--navy);
    padding: 60px 0 40px; 
    position: relative;
    width: 100%;
    border-top: 1px solid var(--glass-border); 
    font-family: 'Poppins', sans-serif;
    z-index: 10; 
}

.footer .container {
    max-width: 1400px; 
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

.footer-content { display: contents; }

.footer-brand {
    text-align: left;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.footer .social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.footer .social-links a {
    color: var(--text-muted);
    font-size: clamp(1.2rem, 2.2vw, 1.4rem);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.footer .social-links a:hover {
    color: var(--gold);
    background: var(--gold-light);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 16px rgba(227, 181, 5, 0.3);
}

.footer .social-links a:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.footer .social-links a[aria-label*="Facebook"]:hover { background: #1877f2; color: white; }
.footer .social-links a[aria-label*="Instagram"]:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.footer .social-links a[aria-label*="WhatsApp"]:hover { background: #25d366; color: white; }

.footer-credits {
    text-align: right;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    color: var(--text-muted);
    font-weight: 400;
}

.footer-credits strong { color: var(--text); font-weight: 600; }

.footer-credits a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credits a:hover { color: var(--gold-light); text-decoration: underline; }

/* Responsive Footer */
@media (max-width: 770px) {
    .footer { padding: 40px 0 30px; }
    .footer .container { grid-template-columns: 1fr; text-align: center; gap: 24px; }
    .footer-brand, .footer-credits { text-align: center; }
    .footer .social-links { gap: 10px; }
    .footer .social-links a { width: 36px; height: 36px; font-size: clamp(1.1rem, 2vw, 1.3rem); }
}

@media (max-width: 480px) {
    .footer { padding: 30px 0 20px; }
    .footer .container { padding: 0 16px; gap: 20px; }
    .footer-brand, .footer-credits { font-size: clamp(0.8rem, 1.6vw, 0.9rem); }
    .footer .social-links a { width: 32px; height: 32px; font-size: clamp(1rem, 1.8vw, 1.2rem); }
}