/* ================================
   ESTILOS COMUNES - Compartidos entre todas las páginas
   ================================ */

/* Prevenir efecto rebote en iOS/macOS */
html, body {
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

/* Custom styles to integrate Google Fonts with Tailwind */
body {
    font-family: 'Archivo', sans-serif;
    background-color: #000000;
    color: #FFFFFF;
}

.font-archivo-black {
    font-family: 'Archivo Black', sans-serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* ================================
   HEADER
   ================================ */
#main-header {
    transition: all 0.3s ease;
}

#main-header .logo img {
    transition: height 0.3s ease;
}

#main-header.scrolled {
    background-color: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Header reducido al hacer scroll hacia abajo */
#main-header.shrink {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(0, 0, 0, 0.98) !important;
    backdrop-filter: blur(12px);
}

#main-header.shrink .logo img {
    height: 3rem; /* h-12 */
}

@media (min-width: 768px) {
    #main-header.shrink .logo img {
        height: 4rem; /* h-16 en md */
    }
}

@media (min-width: 1024px) {
    #main-header.shrink .logo img {
        height: 5rem; /* h-20 en lg */
    }
}

/* ================================
   BOTÓN VOLVER ARRIBA
   ================================ */
.scroll-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ff7a2a 0%, #ff6a00 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 122, 42, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 122, 42, 0.6);
}

.scroll-to-top-btn:active {
    transform: translateY(-2px);
}

/* ================================
   ANIMACIONES DE REVEAL
   ================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   ICONOS SOCIALES (Footer y páginas)
   ================================ */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem auto;
}

.footer-socials a,
.social-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Iconos SVG de redes sociales */
.social-icon-svg {
    width: 48px;
    height: 48px;
    color: white;
    transition: transform 0.3s ease, color 0.3s ease, filter 0.3s ease;
    display: inline-block;
}

.social-icon-svg:hover {
    transform: translateY(-8px) scale(1.1);
    color: #ff7a2a;
    filter: drop-shadow(0 8px 16px rgba(255,122,42,0.6));
}

/* ================================
   SECCIÓN DE CONTACTO
   ================================ */
.contact-section {
    padding: 6rem 1.5rem;
    text-align: center;
    background: linear-gradient(
        180deg,
        #000000 0%,
        #1a0800 20%,
        #2d1205 50%,
        #3d1a08 75%,
        #4a2010 100%
    );
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 80%, rgba(255, 122, 42, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(255, 106, 0, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.contact-section > * {
    position: relative;
    z-index: 1;
}

/* ================================
   FOOTER
   ================================ */
.contact-copyright {
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.85rem;
}

.site-footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 0;
    background: #000;
    position: relative;
    z-index: 10;
}

/* ================================
   ANIMACIONES GENERALES
   ================================ */
.swing-once {
    animation: swing 0.9s ease-in-out 1;
}

@keyframes swing {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(10deg); }
    40% { transform: rotate(-8deg); }
    60% { transform: rotate(6deg); }
    80% { transform: rotate(-4deg); }
    100% { transform: rotate(0deg); }
}

/* Micro-animación del logo al click */
.logo-tap {
    animation: softBounce 420ms ease;
}

@keyframes softBounce {
    0%   { transform: scale(1) translateY(0); }
    30%  { transform: scale(1.06) translateY(-2px); }
    60%  { transform: scale(1.03) translateY(-1px); }
    100% { transform: scale(1) translateY(0); }
}

/* Resalte sutil del título de sección */
.section-pop {
    animation: sectionPop 360ms ease;
}

@keyframes sectionPop {
    0%   { transform: translateY(0) scale(1); }
    35%  { transform: translateY(-1px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}
