@import url('https://fonts.googleapis.com/css2?family=Alata&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alata&family=Comfortaa:wght@300..700&display=swap');

:root {
  --platinum: #e6e8e6;
  --platinum-dark: #ced0ce;
  --white: #ffffff;
  --black: #000000;
  --gray-light: #f5f5f7;
  --gray-mid: #8e8e93;
  --gold: #d4af37;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.08);
  --section-spacing: 80px;
  --font-family: "alata-regular", sans-serif;
  --overlay-gradient-start: rgba(0, 0, 0, 0.85);
  --overlay-gradient-mid: rgba(0, 0, 0, 0.7);
  --overlay-gradient-end: rgba(0, 0, 0, 0.5);
}

/* Reset y base responsive */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Footer */
.footer {
    padding: 50px 0 30px;
    text-align: center;
    color: var(--white);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--black);
    position: relative;
    z-index: 2;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: var(--font-family);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer p {
    margin: 10px 0;
    line-height: 1.5;
    font-family: var(--font-family);
    color: var(--white);
}

.footer strong {
    color: var(--white);
    font-weight: 500;
}

/* Sección redes sociales */
.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.social-link:hover .social-icon {
    fill: var(--gold);
}

.social-link:active {
    transform: translateY(0);
    background: var(--gray-mid);
}

.social-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    transform: scale(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-link:hover::after {
    opacity: 0.1;
    transform: scale(1);
}

/* Dirección con enlace a Google Maps */
.footer-address {
    color: var(--white);
    font-size: 0.9rem;
    font-style: normal;
    letter-spacing: 0.3px;
    margin: 12px 0;
    font-family: var(--font-family);
}

.address-link {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    padding: 2px 4px;
    border-radius: 4px;
    position: relative;
    font-family: var(--font-family);
}

.address-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 4px;
    right: 4px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.address-link:hover {
    color: var(--gold);
}

.address-link:active {
    color: var(--gray-mid);
}

.address-link:hover::after {
    transform: scaleX(1);
}

/* Copyright */
.footer-copyright {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-family: var(--font-family);
}

/* Sección desarrollador */
.footer-dev {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-family: var(--font-family);
}

.dev-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0 5px;
    font-family: var(--font-family);
}

.dev-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 5px;
    right: 5px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.dev-link:hover {
    color: var(--gold);
}

.dev-link:active {
    color: var(--gray-mid);
}

.dev-link:hover::after {
    transform: scaleX(1);
}

.dev-desc {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    letter-spacing: 0.2px;
    font-family: var(--font-family);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 25px;
    }
    
    .footer-social {
        gap: 20px;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-icon {
        width: 18px;
        height: 18px;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
    
    .footer-address {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 16px 20px;
    }
    
    .footer-social {
        gap: 16px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }
    
    .social-icon {
        width: 16px;
        height: 16px;
    }
    
    .footer p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .footer-dev {
        flex-direction: column;
        text-align: center;
    }
}

/* Optimizaciones WebKit */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .social-link {
        -webkit-backface-visibility: hidden;
        -webkit-transform: translateZ(0) scale(1.0, 1.0);
    }
    
    .social-icon {
        -webkit-font-smoothing: antialiased;
        backface-visibility: hidden;
    }
}

/* Optimizaciones Firefox */
@-moz-document url-prefix() {
    .social-link {
        will-change: transform;
    }
    
    .social-icon {
        shape-rendering: geometricPrecision;
    }
}

/* Soporte táctil */
@media (hover: none) and (pointer: coarse) {
    .social-link:hover {
        transform: none;
    }
    
    .address-link:hover::after,
    .dev-link:hover::after {
        transform: scaleX(0);
    }
    
    .social-link:active {
        background: var(--gray-mid);
    }
    
    .address-link:active {
        color: var(--gray-mid);
    }
    
    .dev-link:active {
        color: var(--gray-mid);
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .social-link:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .footer {
        border-top: 2px solid var(--white);
    }
    
    .social-link {
        border: 2px solid var(--white);
    }
    
    .address-link {
        text-decoration: underline;
    }
}

/* Dark mode (ya está en modo oscuro por defecto) */
@media (prefers-color-scheme: dark) {
    .footer {
        background: var(--black);
        color: var(--white);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .social-link {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .social-link:hover {
        background: rgba(212, 175, 55, 0.15);
    }
    
    .social-link:active {
        background: var(--gray-mid);
    }
}