/* ===== MODERN RESTMARGARITASBAR INDEX STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- GLOBAL SECTION STYLES --- */
section {
    position: relative;
}

/*
 * El theme (style.css) aplica a todos los section: padding: 80px 0.
 * El hero es un <section class="hero-slider">; ese padding superior se pinta
 * con el fondo oscuro del slider y parece una franja negra bajo el header.
 */
section.hero-slider {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* --- MAP / LOCATION --- */
.iframe_mapa {
    width: 100%;
    height: 700px;
    float: left;
    display: flex;
    justify-content: center;
    align-items: center;
}

#map {
    width: 100%;
    height: 100%;
    display: inline-block;
    background: #414141;
}

/* --- MODERN LOCATION SECTION --- */
.heading-text.heading-section {
    padding: 60px 0 30px;
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%);
}

.heading-text.heading-section h2 {
    font-family: 'Playfair Display', serif !important;
    font-weight: 700;
    font-size: 3rem;
    color: #fff;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
}

.heading-text.heading-section h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    border-radius: 2px;
}

/* --- MAP IFRAME MODERN --- */
.body-inner > iframe {
    width: 100%;
    height: 450px;
    border: none !important;
    filter: grayscale(0.2) contrast(1.05);
    transition: filter 0.4s ease;
}

.body-inner > iframe:hover {
    filter: grayscale(0) contrast(1.1);
}

/* --- MODERN SECTION TRANSITIONS --- */
section[id^="section-"] {
    overflow: hidden;
}

/* Fade-in animation for sections */
@keyframes sectionReveal {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- SMOOTH SCROLL --- */
html {
    scroll-behavior: smooth;
}

/* --- MODERN FOOTER AREA --- */
#footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- MODERN CONTACT SECTION --- */
.modern-contact-section {
    position: relative;
}

/* Glass-morphism Form Inputs */
.modern-input,
.modern-contact-section .form-control {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    padding: 14px 18px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modern-input:focus,
.modern-contact-section .form-control:focus {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(231, 76, 60, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1) !important;
    outline: none !important;
    color: #fff !important;
}

.modern-input::placeholder,
.modern-contact-section .form-control::placeholder {
    color: rgba(255,255,255,0.35) !important;
}

.modern-contact-section select.modern-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 40px !important;
}

.modern-contact-section select.modern-input option {
    background: #1a1a2e;
    color: #fff;
}

/* Submit Button Hover */
.modern-submit-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 40px rgba(231,76,60,0.5) !important;
}

/* --- MODERN SOCIAL ICONS --- */
.social-icon-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--icon-color, #e74c3c);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 14px;
}

.social-icon-modern svg {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.social-icon-modern:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--icon-color, #e74c3c);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--icon-color, #e74c3c) 40%, transparent);
    color: #fff;
    text-decoration: none;
}

.social-icon-modern:hover::before {
    opacity: 0.15;
}

.social-icon-modern:hover svg {
    fill: var(--icon-color, #e74c3c);
    transform: scale(1.1);
}

/* --- FOOTER LINK HOVER --- */
#footer .widget .list li a:hover,
.footer-content .list li a:hover {
    color: #fff !important;
    transform: translateX(4px);
}

.footer-content .list li a svg {
    transition: all 0.3s ease;
}

.footer-content .list li a:hover svg {
    stroke: #e74c3c;
    transform: scale(1.2);
}

/* Footer Logo Glow & Hover */
.footer-logo-link {
    display: inline-block;
    transition: all 0.5s ease;
}

.footer-logo-link:hover {
    transform: scale(1.02) translateY(-2px);
}

.footer-content .logo-height {
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255,255,255,0.1));
    opacity: 0.9;
}

.footer-content .logo-height:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 25px rgba(255,255,255,0.35)) !important;
    opacity: 1;
}

/* --- RESPONSIVE FOOTER --- */
@media (max-width: 768px) {
    .modern-social-icons ul,
    .modern-social-icons-footer {
        justify-content: center;
    }
    
    .social-icon-modern {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    
    .modern-contact-section .container {
        padding: 0 20px;
    }
}

/* --- Imágenes home: desenfoque + transición al cargar (index.js) --- */
.body-inner img.img-blur-loading {
    filter: blur(14px);
    opacity: 0.92;
    transform: scale(1.02);
    transition: filter 0.55s ease, opacity 0.55s ease, transform 0.55s ease;
    will-change: filter;
}

.body-inner img.img-blur-loaded {
    filter: none;
    opacity: 1;
    transform: none;
    will-change: auto;
}

.body-inner img.img-blur-error {
    filter: none;
    opacity: 0.45;
    transition: opacity 0.35s ease;
}

.body-inner .img-blur-load-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
    background: linear-gradient(110deg, #1f1f1f 8%, #2d2d2d 18%, #1f1f1f 33%);
    background-size: 200% 100%;
    animation: img-blur-shimmer 1.25s ease-in-out infinite;
}

.body-inner .img-blur-load-wrap.img-blur-wrap-done {
    animation: none;
    background: transparent;
}

.body-inner .img-blur-load-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(231, 76, 60, 0.9);
    border-radius: 50%;
    animation: img-blur-spin 0.75s linear infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
}

.body-inner .img-blur-load-wrap.img-blur-wrap-done::after {
    display: none;
}

@keyframes img-blur-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes img-blur-spin {
    to { transform: rotate(360deg); }
}
