/*
Theme Name: Transportes Pizarro
Theme URI: https://transportespizarro.cl
Author: Desarrollo Custom
Author URI: https://transportespizarro.cl
Description: Tema personalizado industrial para Transportes Pizarro - Empresa de transportes y áridos con más de 15 años de trayectoria. Diseño agresivo y profesional con animaciones GSAP.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: transportes-pizarro
Tags: custom-template, full-width-template, one-column, featured-images, theme-options, custom-colors

Transportes Pizarro WordPress Theme
Copyright (C) 2026
*/

/* ========================================================================
   CUSTOM PROPERTIES - Brand Colors
   ======================================================================== */
:root {
  --color-rojo-principal: #E31E24;
  --color-amarillo-acento: #FFD100;
  --color-negro: #1a1a1a;
  --color-gris-oscuro: #2d2d2d;
  --color-gris-medio: #666666;
  --color-blanco: #ffffff;
  --color-fondo-oscuro: #0a0a0a;
  
  /* Tipografía */
  --font-heading: 'Archivo Black', 'Impact', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.25);
  
  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ========================================================================
   RESET & BASE STYLES
   ======================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gris-oscuro);
  background-color: var(--color-blanco);
  overflow-x: hidden;
}

/* ========================================================================
   TYPOGRAPHY
   ======================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 2rem); }

/* ========================================================================
   UTILITIES
   ======================================================================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 8rem 0;
  }
}

/* ========================================================================
   ANIMATIONS
   ======================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback para elementos GSAP - Asegurar visibilidad */
[data-gsap] {
  opacity: 1 !important;
  transform: none !important;
  transition: all 0.6s ease;
}

/* Hero content siempre visible */
.hero-section .container {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ========================================================================
   WORDPRESS CORE
   ======================================================================== */
.wp-block-image {
  margin: 0;
}

.alignwide {
  max-width: 1400px;
}

.alignfull {
  max-width: 100%;
}

/* Screen Reader Text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

/* ========================================================================
   WHATSAPP FLOAT BUTTON
   ======================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  text-decoration: none;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
  }
}
