/**
 * Custom CSS para Transportes Pizarro
 * Estilos adicionales y personalizaciones
 * 
 * @package Transportes_Pizarro
 */

/* ========================================================================
   NAVEGACIÓN
   ======================================================================== */
#site-header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#site-header.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.custom-logo img {
    max-height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.custom-logo:hover img {
    transform: scale(1.05);
}

/* Menú Items */
nav a {
    position: relative;
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-amarillo-acento);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* ========================================================================
   HERO SECTION
   ======================================================================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.hero-background video,
.hero-background > div {
filter: brightness(1) contrast(1);
}

/* Hero Logo centrado */
.hero-custom-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-custom-logo a {
    display: inline-block;
}

.hero-custom-logo img {
    max-height: 180px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

@media (min-width: 768px) {
    .hero-custom-logo img {
        max-height: 250px;
    }
}

@media (min-width: 1024px) {
    .hero-custom-logo img {
        max-height: 320px;
    }
}

/* Badge animación */
.hero-badge span {
    animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 209, 0, 0.3);
    }
    50% {
        box-shadow: 0 6px 30px rgba(255, 209, 0, 0.6);
    }
}

/* ========================================================================
   BOTONES
   ======================================================================== */
.btn-hero-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-hero-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-hero-secondary {
    position: relative;
    overflow: hidden;
}

.btn-hero-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-hero-secondary:hover::before {
    left: 100%;
}

/* ========================================================================
   SERVICE CARDS
   ======================================================================== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-rojo-principal), var(--color-amarillo-acento));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 1rem;
}

.service-card:hover::before {
    opacity: 1;
}

/* ========================================================================
   PRODUCT CARDS
   ======================================================================== */
.product-card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.1), rgba(255, 209, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 1rem;
}

.product-card:hover::after {
    opacity: 1;
}

/* ========================================================================
   TABS SYSTEM
   ======================================================================== */
.tabs-nav {
    position: relative;
}

.tab-btn {
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-amarillo-acento);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.tab-btn.active::before {
    transform: translateX(0);
}

.tab-panel {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================================================
   DIFERENCIADORES (CHECKS)
   ======================================================================== */
.differentiators li {
    position: relative;
    padding-left: 1rem;
}

.differentiators li::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--color-amarillo-acento);
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    transition: transform 0.3s ease;
}

.differentiators li:hover::before {
    transform: translateY(-50%) scale(1);
}

/* ========================================================================
   FOOTER
   ======================================================================== */
footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    transform: translateX(5px);
}

/* ========================================================================
   TOOLTIP
   ======================================================================== */
.tooltip {
    position: absolute;
    background: rgba(26, 26, 26, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(26, 26, 26, 0.95);
}

/* ========================================================================
   LOADING SPINNER
   ======================================================================== */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(227, 30, 36, 0.2);
    border-top-color: var(--color-rojo-principal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================================================
   PRELOADER
   ======================================================================== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--color-fondo-oscuro);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

/* ========================================================================
   SCROLLBAR PERSONALIZADO
   ======================================================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-gris-oscuro);
}

::-webkit-scrollbar-thumb {
    background: var(--color-rojo-principal);
    border-radius: 6px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-amarillo-acento);
}

/* ========================================================================
   UTILIDADES
   ======================================================================== */
.text-gradient-red-yellow {
    background: linear-gradient(135deg, var(--color-rojo-principal) 0%, var(--color-amarillo-acento) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-pattern-industrial {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.125rem !important;
    }
    
    .section-padding {
        padding: 3rem 0 !important;
    }
}

/* ========================================================================
   PRINT STYLES
   ======================================================================== */
@media print {
    .whatsapp-float,
    #back-to-top,
    header,
    footer {
        display: none !important;
    }
}

/* ========================================================================
   DARK MODE SUPPORT (Opcional para el futuro)
   ======================================================================== */
@media (prefers-color-scheme: dark) {
    /* Estilos para modo oscuro si se implementa */
}
