/**
 * FastPaw Properties - Sistema de Diseño Global
 * Dark Mode Premium con Glassmorphism
 */

/* ========================================
   Tipografías - Inter + Playfair Display
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

/* ========================================
   Variables CSS - Sistema de Diseño
   ======================================== */
:root {
    /* Colores Principales - Dark Mode */
    --primary-dark: #121212;
    --secondary-dark: #1A1A1A;
    --accent-orange: #F58220;
    --accent-orange-hover: #E57310;
    --pure-white: #FFFFFF;
    --dark-overlay: #0A0A0A;
    
    /* Opacidades de Texto */
    --text-primary: rgba(255, 255, 255, 1);
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-subtle: rgba(255, 255, 255, 0.6);
    --text-ghost: rgba(255, 255, 255, 0.05);
    
    /* Opacidades de Fondo */
    --bg-glass: rgba(255, 255, 255, 0.1);
    --bg-border: rgba(255, 255, 255, 0.2);
    --bg-accent-soft: rgba(245, 130, 32, 0.2);
    --bg-accent-medium: rgba(245, 130, 32, 0.3);
    
    /* Colores de Estado */
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;
    
    /* Tipografía */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
    --font-family-accent: 'Playfair Display', Georgia, serif;
    
    /* Tamaños de Fuente */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    --font-size-5xl: 3rem;        /* 48px */
    --font-size-6xl: 3.75rem;     /* 60px */
    
    /* Espaciado */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 3rem;     /* 48px */
    --spacing-3xl: 4rem;     /* 64px */
    
    /* Border Radius */
    --radius-sm: 0.25rem;    /* 4px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow-orange: 0 0 40px rgba(245, 130, 32, 0.3);
    --shadow-glow-orange-strong: 0 0 50px rgba(245, 130, 32, 0.6);
    
    /* Transiciones */
    --transition-fast: 300ms ease;
    --transition-base: 500ms ease;
    --transition-slow: 1000ms ease;
    
    /* Contenedor */
    --container-max-width: 1280px;
}

/* ========================================
   Reset CSS
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-dark);
    font-weight: 400;
    letter-spacing: -0.01em;
    padding-top: 64px; /* Compensar navbar fijo */
}

/* ========================================
   Tipografía Base
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-base);
    font-weight: 700;
    line-height: 1.1;
    color: var(--pure-white);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--font-size-5xl);
    font-weight: 900;
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    h1 {
        font-size: var(--font-size-6xl);
    }
}

h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    h2 {
        font-size: var(--font-size-5xl);
    }
}

h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

h4 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

h5 {
    font-size: var(--font-size-lg);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

/* Clase para palabras destacadas en cursiva */
.text-accent {
    color: var(--accent-orange);
    font-family: var(--font-family-accent);
    font-style: italic;
    font-weight: 500;
}

/* Clase para textos secundarios */
.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.text-subtle {
    color: var(--text-subtle);
}

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
    color: var(--text-secondary);
}

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-orange-hover);
}

/* ========================================
   Utilidades Base
   ======================================== */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

/* Optimización de carga de imágenes */
img {
    height: auto;
    /* Lazy loading nativo del navegador */
    loading: lazy;
    /* Decodificación asíncrona para mejor rendimiento */
    decoding: async;
}

/* Prevenir layout shift durante la carga */
img[width][height] {
    height: auto;
}

/* Optimización para imágenes de fondo */
.bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Usar will-change con precaución */
    will-change: auto;
}

/* Placeholder mientras carga la imagen */
.img-loading {
    background: linear-gradient(
        90deg,
        var(--color-gray-200) 25%,
        var(--color-gray-100) 50%,
        var(--color-gray-200) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

input, button, textarea, select {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* ========================================
   Sistema de Animaciones
   ======================================== */

/* Animaciones de entrada con scroll */
.fade-in {
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--transition-slow);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-2xl);
}

/* Tarjetas con hover glow */
.card-glow {
    position: relative;
    background: var(--secondary-dark);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
}

.card-glow:hover {
    border-color: rgba(245, 130, 32, 0.5);
    box-shadow: var(--shadow-glow-orange);
}

.card-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(245, 130, 32, 0) 0%,
        rgba(245, 130, 32, 0) 50%,
        rgba(245, 130, 32, 0) 100%
    );
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
    pointer-events: none;
}

.card-glow:hover::before {
    background: linear-gradient(to bottom,
        rgba(245, 130, 32, 0.2) 0%,
        rgba(245, 130, 32, 0.1) 50%,
        rgba(245, 130, 32, 0.05) 100%
    );
}

/* Iconos circulares con hover */
.icon-circle {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--bg-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.card-glow:hover .icon-circle {
    background: var(--bg-accent-medium);
    transform: scale(1.1);
}

/* Botones con efecto glow */
.btn-primary {
    background: var(--accent-orange);
    color: var(--pure-white);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-orange-hover);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(245, 130, 32, 0.6);
}

/* Números decorativos */
.number-decoration {
    position: absolute;
    font-size: var(--font-size-6xl);
    font-weight: 700;
    color: var(--text-ghost);
    transition: all var(--transition-fast);
    pointer-events: none;
}

.card-glow:hover .number-decoration {
    color: rgba(245, 130, 32, 0.1);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange-hover);
}

/* Selection color */
::selection {
    background-color: var(--accent-orange);
    color: var(--pure-white);
}

/* Desactivar animaciones en dispositivos con preferencia 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;
    }
}


/* ========================================
   ESPACIADOR PARA NAVBAR FIJA
   ======================================== */

/* 
 * Clase utilitaria para agregar espaciador superior
 * cuando hay una navbar fija que cubre el contenido
 */
.navbar-spacer {
    padding-top: 100px; /* Altura aproximada de navbar (80px) + margen (20px) */
}

/* Espaciador más grande para páginas con títulos grandes */
.navbar-spacer-lg {
    padding-top: 120px; /* Altura navbar + margen extra */
}

/* Responsive: Ajustar espaciador en mobile */
@media (max-width: 768px) {
    .navbar-spacer {
        padding-top: 80px;
    }
    
    .navbar-spacer-lg {
        padding-top: 100px;
    }
}


/* ========================================
   BLOQUEO DE SCROLL PARA MENÚ MOBILE
   ======================================== */

body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100vh !important;
}


/* ========================================
   ANIMACIONES FADE-UP
   ======================================== */

/* Clase base para elementos con animación fade-up */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Estado visible cuando el elemento entra en viewport */
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delays escalonados */
.fade-up-delay-1 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}

.fade-up-delay-1.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.fade-up-delay-2.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Soporte para delays inline */
.fade-up[style*="transition-delay"] {
    transition: opacity 0.6s ease, transform 0.6s ease;
}
/* Infinite service area marquee */
.marquee-strip {
    overflow: hidden;
    background: #111111;
    border-top: 1px solid rgba(249, 115, 22, 0.2);
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
    padding: 14px 0;
    white-space: nowrap;
}

.marquee-track {
    display: inline-block;
    animation: marquee 28s linear infinite;
}

.marquee-strip:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.marquee-item {
    display: inline-block;
    margin: 0 28px;
    color: #888888;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.marquee-item::after {
    content: '·';
    margin-left: 28px;
    color: #f97316;
    opacity: 0.6;
}

.marquee-item::after {
    content: '\00B7';
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}
