/* ============================================================
   VARIABLES Y BASE
   ============================================================ */
:root {
    --color-primary: #0d6efd;
    --color-success: #198754;
    --color-dark: #1a1d21;
    --color-light: #f8f9fa;
    --transition-base: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2c2c2c;
    overflow-x: hidden;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    padding: 0.8rem 0;
    transition: var(--transition-base);
}

.navbar-brand img {
    object-fit: contain;
    max-height: 40px;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem;
    transition: var(--transition-base);
}

.navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar .nav-link.active {
    color: var(--color-primary) !important;
    font-weight: 600;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #084298 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-icon {
    font-size: 15rem;
    opacity: 0.15;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ============================================================
   CARDS DE TRABAJOS
   ============================================================ */
.card-trabajo {
    transition: var(--transition-base);
    border-radius: 0.75rem;
    overflow: hidden;
}

.card-trabajo:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.12) !important;
}

.card-img-wrapper {
    height: 220px;
    background: #e9ecef;
}

.card-img-zoom {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-trabajo:hover .card-img-zoom {
    transform: scale(1.08);
}

/* ============================================================
   SLIDER DE RESEÑAS
   ============================================================ */
.swiper-resenas {
    padding-bottom: 50px;
}

.swiper-resenas .swiper-pagination-bullet {
    background: var(--color-primary);
    opacity: 0.4;
}

.swiper-resenas .swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 6px;
    transition: var(--transition-base);
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* ============================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1050;
    transition: var(--transition-base);
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    color: white;
    transform: scale(1.1);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: #1a1d21;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-base);
    font-weight: 500;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #1a1d21;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    right: 80px;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.7); }
    100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
}

/* ============================================================
   GALERÍA / DETALLE
   ============================================================ */
.galeria-thumb {
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition-base);
}

.galeria-thumb:hover {
    opacity: 0.85;
    transform: scale(1.03);
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer a {
    transition: var(--transition-base);
}

footer a:hover {
    color: var(--color-primary) !important;
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.bg-primary-subtle {
    background-color: #cfe2ff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-icon {
        font-size: 8rem;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 16px;
        right: 16px;
    }
    
    .card-img-wrapper {
        height: 200px;
    }
}

/* Accesibilidad: respetar preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}