/* variables */
:root {
    --primary-color: #18943e; /* Verde Comafra */
    --primary-dark: #127530;
    --secondary-color: #333333;
    --accent-color: #d8211f; /* Rojo Comafra */
    --accent-dark: #b31a18;
    --dark-color: #111111;
    --light-color: #f8fafc;
    --font-family-sans: 'Inter', sans-serif;
    --font-family-serif: 'Playfair Display', serif;
}

body {
    font-family: var(--font-family-sans);
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-family-serif);
}

/* Utilities */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.border-primary { border-color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.border-accent { border-color: var(--accent-color) !important; }
.z-index-1 { z-index: 1; }
.z-index-2 { z-index: 2; }
.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.text-shadow-sm { text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.object-fit-cover { object-fit: cover; }

/* Buttons */
.btn-primary { 
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}
.btn-primary:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: white;
}
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.btn-hero-outline {
    background-color: rgba(255,255,255,0.9) !important;
    border-color: white !important;
}
.btn-hero-outline:hover {
    background-color: white !important;
    color: var(--primary-color) !important;
}

/* Navbar & Topbar */
.topbar { 
    font-size: 0.85rem; 
}
.transition-hover {
    transition: color 0.3s ease;
}
.transition-hover:hover {
    color: var(--primary-color) !important;
}

.navbar { transition: all 0.3s ease; z-index: 1030; }
.navbar .nav-link {
    font-weight: 500;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}
.navbar .nav-link:hover, .navbar .nav-link.active {
    color: var(--primary-color) !important;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 9999;
    transition: opacity 0.8s ease;
}
.page-loader.loaded {
    opacity: 0;
    pointer-events: none;
}
.loader-logo {
    width: 150px;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Hero Section */
.hero-section {
    min-height: 85vh;
}

/* Custom Divider */
.divider-custom {
    height: 3px;
    width: 60px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important;
}
.service-icon-wrapper {
    position: absolute;
    bottom: -25px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(24,148,62,0.4);
    border: 4px solid white;
}

/* Premium Footer - Designed by Scorpio Towers Graphics */
.premium-footer {
    background-color: #0b0b0b !important;
    color: #e2e8f0;
    font-family: 'Inter', 'Roboto', sans-serif;
    position: relative;
    border-top: 1px solid #1e293b;
}

.premium-footer .footer-title {
    font-family: 'Playfair Display', serif;
    color: #18943e !important; /* Verde Corporativo */
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
}

.premium-footer .footer-desc {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.premium-footer .footer-link {
    color: #94a3b8 !important;
    font-size: 0.95rem;
    padding: 0.45rem 0; /* Padding táctil ideal para pulgar en móviles */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
    text-decoration: none;
}

.premium-footer .footer-link:hover {
    color: #d8211f !important; /* Rojo Acento */
    transform: translateX(6px);
}

.premium-footer .footer-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1a1a1a;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.premium-footer .footer-social-icon:hover {
    background-color: #d8211f !important; /* Rojo Acento */
    color: #ffffff !important;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 12px rgba(216, 33, 31, 0.4);
}

.premium-footer .contact-item {
    font-size: 0.95rem;
    color: #94a3b8;
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.95rem;
}

.premium-footer .footer-address-text {
    color: #cbd5e1 !important; /* Silver de alto contraste para visibilidad óptima en fondo negro */
}

.premium-footer .contact-item i {
    color: #d8211f; /* Iconos en Rojo */
    font-size: 1.1rem;
    margin-top: 2px;
}

.premium-footer .contact-link {
    color: #94a3b8 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.premium-footer .contact-link:hover {
    color: #d8211f !important;
    transform: translateX(4px);
}

.premium-footer .bottom-bar {
    border-top: 1px solid #1e293b;
    background-color: #050505;
}

.premium-footer .bottom-link {
    color: #64748b !important;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    padding: 0.35rem 0.5rem;
    display: inline-block;
}

.premium-footer .bottom-link:hover {
    color: #d8211f !important;
}

.premium-footer .credit-text {
    font-size: 0.85rem;
    color: #64748b;
}

.premium-footer .credit-text a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.premium-footer .credit-text a:hover {
    color: #d8211f;
}




/* WhatsApp Floating & Custom Interactive Chat Window Styles */
.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1020;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-float {
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
}

/* Pulsing outer ring animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid #25D366;
    border-radius: 50%;
    animation: wa-ring-pulse 2s infinite;
    opacity: 0.8;
}

@keyframes wa-ring-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-bubble {
    width: 320px;
    background-color: #f0f2f5; /* Light WhatsApp gray background */
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 16px;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
}

.whatsapp-bubble.is-active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.wa-bubble-header {
    background-color: #075e54; /* Dark WhatsApp green */
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wa-avatar-container {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wa-avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.wa-online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #4cd964;
    border: 2px solid #075e54;
    border-radius: 50%;
}

.wa-avatar-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
}

.wa-avatar-status {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    display: block;
    font-weight: 400;
}

.wa-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.wa-close-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.wa-bubble-body {
    padding: 20px 16px;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-repeat: repeat;
    background-size: contain;
    max-height: 240px;
    overflow-y: auto;
}

.wa-chat-bubble {
    background-color: #ffffff;
    padding: 10px 14px;
    border-radius: 0px 12px 12px 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
    position: relative;
    max-width: 90%;
}

.wa-chat-tail {
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 0px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 8px solid #ffffff;
}

.wa-chat-bubble p {
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    color: #303030;
    line-height: 1.45;
}

.wa-chat-time {
    font-size: 0.65rem;
    color: #8f9296;
    display: block;
    text-align: right;
    margin-top: 4px;
}

.wa-bubble-footer {
    padding: 12px 16px;
    background-color: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.wa-action-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.wa-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* Highly Responsive adjustments for Mobile viewports */
@media (max-width: 576px) {
    .whatsapp-container {
        bottom: 20px;
        right: 20px;
        left: 20px;
        align-items: stretch;
    }
    
    .whatsapp-float {
        align-self: flex-end;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .whatsapp-bubble {
        width: 100%;
        margin-bottom: 12px;
        transform-origin: bottom right;
    }
}

/* Background Pattern */
.pattern-bg {
    background-image: radial-gradient(var(--secondary-color) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    background-color: var(--light-color);
}
