/* ============================================
   LLANTERA DEL NORTE - CUSTOM STYLES
   ============================================ */

:root {
    /* Color Palette */
    --primary-color: #ffc107;
    --secondary-color: #212529;
    --accent-color: #25D366;
    --text-dark: #212529;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.navbar-brand {
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand:hover .logo-img {
    transform: scale(1.1);
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Hero Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rating-badge {
    animation: fadeInUp 1s ease-in 0.9s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: white;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    transition: var(--transition-smooth);
    border-radius: 15px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-icon {
    font-size: 4rem;
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ============================================
   ADVANTAGES SECTION
   ============================================ */
.advantage-card {
    transition: var(--transition-smooth);
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.advantage-icon {
    font-size: 3rem;
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.2);
}

/* ============================================
   BRANDS SECTION
   ============================================ */
.brand-item {
    transition: var(--transition-smooth);
}

.brand-badge {
    display: inline-block;
    padding: 15px 30px;
    background: var(--bg-light);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-weight: 700;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.brand-item:hover .brand-badge {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

/* ============================================
   SUCURSALES CARDS
   ============================================ */
.sucursal-card {
    transition: var(--transition-smooth);
    border-radius: 15px;
    overflow: hidden;
}

.sucursal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3) !important;
}

.sucursal-card .card-body {
    position: relative;
}

.sucursal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff9800);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-info {
    transition: var(--transition-smooth);
}

.contact-info:hover {
    transform: translateY(-5px);
}

.map-container {
    height: 100%;
    min-height: 400px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #ff9800);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-weight: 600;
    transition: var(--transition-smooth);
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-warning {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-success {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-success:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 37, 41, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    border-top: 3px solid var(--primary-color);
}

.social-links a {
    transition: var(--transition-smooth);
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
    .hero-section {
        min-height: 80vh;
        background-attachment: scroll;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .service-icon,
    .advantage-icon {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 70px;
    }
    
    .display-3 {
        font-size: 1.75rem;
    }
    
    .display-4 {
        font-size: 1.5rem;
    }
    
    .display-5 {
        font-size: 1.25rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .navbar-brand span {
        font-size: 1rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
    
    .btn-lg {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .brand-badge {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states for accessibility */
a:focus,
button:focus,
.btn:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.box-shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .whatsapp-float,
    .scroll-indicator,
    .navbar,
    footer {
        display: none;
    }
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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