/*
Theme Name: DiTeSa Logística
Theme URI: https://ditesalogistica.com.mx
Author: DiTeSa Logística
Author URI: https://ditesalogistica.com.mx
Description: Tema personalizado para DiTeSa Logística - Soluciones integrales de almacenaje y manejo de materiales. Más de 25 años de experiencia en racks industriales.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ditesa
Tags: business, industrial, logistics, custom-menu, featured-images, responsive-layout
*/

/* ============================================================
   DITESA LOGÍSTICA — Main Stylesheet
   Edit this file to change colors, fonts, and layout globally
   ============================================================ */

/* --- VARIABLES (change these to restyle the whole site) --- */
:root {
  --orange:      #E8640A;
  --orange-dark: #c5540a;
  --dark:        #2a2a2a;
  --gray:        #555;
  --light-gray:  #f5f5f5;
  --border:      #e0e0e0;
  --footer-bg:   #3a3a3a;
  --white:       #ffffff;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Source Sans 3', sans-serif; color: var(--dark); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* --- TYPOGRAPHY UTILITY --- */
.font-heading { font-family: 'Oswald', sans-serif; }

/* --- BUTTONS --- */
.btn-orange {
  background: var(--orange); color: var(--white);
  padding: 14px 36px;
  font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  border: none; cursor: pointer; display: inline-block;
  transition: background 0.2s;
}
.btn-orange:hover { background: var(--orange-dark); }

.btn-white {
  background: var(--white); color: var(--orange);
  padding: 14px 36px;
  font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  border: none; cursor: pointer; display: inline-block;
  transition: all 0.2s;
}
.btn-white:hover { background: var(--dark); color: var(--white); }

/* --- SECTION TITLES --- */
.section-title {
  font-family: 'Oswald', sans-serif; font-size: 32px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px;
  text-align: center; color: var(--dark); margin-bottom: 12px;
}
.section-divider {
  width: 60px; height: 3px; background: var(--orange);
  margin: 0 auto 16px;
}
.section-subtitle {
  text-align: center; color: var(--gray); font-size: 16px;
  margin-bottom: 48px; max-width: 680px; margin-left: auto; margin-right: auto;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 75px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.logo-box {
  background: #1a1a1a; color: var(--white);
  padding: 4px 18px; font-family: 'Oswald', sans-serif;
  font-size: 26px; font-weight: 700; letter-spacing: 3px;
  border: 3px solid var(--orange);
}
.logo-box span { color: var(--orange); }
.logo-sub {
  font-size: 10px; letter-spacing: 6px; color: var(--white);
  background: var(--orange); padding: 2px 10px;
  width: 100%; text-align: center; font-family: 'Oswald', sans-serif;
}
.logo-wrap { display: flex; flex-direction: column; align-items: center; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 500;
  color: var(--dark); text-transform: uppercase; letter-spacing: 1px;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--orange); border-bottom-color: var(--orange); }

/* Dropdown */
.nav-links .has-dropdown { position: relative; }
.nav-links .has-dropdown > a::after { content: ' ▾'; font-size: 11px; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--border);
  min-width: 200px; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  padding: 8px 0; list-style: none;
}
.has-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block; padding: 10px 20px; font-size: 13px;
  border-bottom: none;
}
.dropdown-menu li a:hover { background: var(--light-gray); color: var(--orange); }

/* ============================================================
   BREADCRUMB NAVIGATION
   ============================================================ */
.breadcrumb-bar {
  background: var(--light-gray);
  border-bottom: 1px solid var(--border);
  padding: 12px 40px;
}
.breadcrumb-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.breadcrumb-container a {
  color: var(--gray);
  transition: color 0.2s;
}
.breadcrumb-container a:hover {
  color: var(--orange);
}
.breadcrumb-separator {
  color: #aaa;
  user-select: none;
}
.breadcrumb-current {
  color: var(--orange);
  font-weight: 600;
}

/* ============================================================
   HERO VIDEO
   ============================================================ */
.hero-video {
  position: relative;
  height: 90vh;
  min-height: 500px;
  max-height: 700px;
  overflow: hidden;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

/* Background Video */
.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  object-fit: cover;
}

/* Dark overlay for better text readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
  pointer-events: none;
}

/* Content */
.hero-content {
  position: relative;
  z-index: 100;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
  animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: 50px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-shadow: 2px 2px 12px rgba(0,0,0,0.8), 0 0 30px rgba(0,0,0,0.5);
  color: var(--white);
  position: relative;
  z-index: 100;
}

.hero-subtitle {
  font-size: 18px;
  color: #fff;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
  position: relative;
  z-index: 100;
}

/* Hero button */
.hero-content .btn-orange {
  position: relative;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  pointer-events: auto;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-video {
    height: 70vh;
    min-height: 400px;
  }

  .hero-title {
    font-size: 36px;
    letter-spacing: 2px;
  }

  .hero-subtitle {
    font-size: 16px;
  }
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  color: var(--white); padding: 50px 60px; text-align: center;
}
.page-header h1 {
  font-family: 'Oswald', sans-serif; font-size: 36px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 4px;
}
.breadcrumb { margin-top: 10px; font-size: 13px; color: #aaa; }
.breadcrumb a { color: #aaa; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--orange); }

/* ============================================================
   PRODUCT CARDS (shared by index and productos)
   ============================================================ */
.products { padding: 70px 60px; background: var(--white); }
.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; max-width: 1200px; margin: 0 auto;
}
.product-card {
  border: 1px solid var(--border); padding: 28px 20px; text-align: center;
  transition: all 0.25s; cursor: pointer; position: relative;
}
.product-card:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 20px rgba(232,100,10,0.12);
  transform: translateY(-3px);
}
.product-icon { font-size: 38px; margin-bottom: 14px; }
.product-image { width: 100%; height: 180px; margin-bottom: 14px; overflow: hidden; border-radius: 4px; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-card h3 {
  font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; color: var(--dark); margin-bottom: 10px;
}
.product-card p { font-size: 13px; color: var(--gray); line-height: 1.6; margin-bottom: 14px; }
.product-link {
  color: var(--orange); font-size: 13px; font-weight: 600;
  font-family: 'Oswald', sans-serif; letter-spacing: 1px; text-transform: uppercase;
}
.product-link:hover { text-decoration: underline; }
.product-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white); padding: 60px; text-align: center;
}
.cta-banner h2 {
  font-family: 'Oswald', sans-serif; font-size: 32px;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px;
}
.cta-banner p { font-size: 16px; opacity: 0.9; margin-bottom: 28px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--footer-bg); color: #ccc; padding: 50px 60px 20px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; margin-bottom: 40px;
}
.footer-col h4 {
  font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; color: var(--white);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
}
.footer-col p, .footer-col a {
  font-size: 13px; line-height: 2; color: #bbb; display: block;
}
.footer-col a:hover { color: var(--orange); }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input {
  padding: 10px 14px; background: #4a4a4a; border: 1px solid #555;
  color: var(--white); font-size: 13px; outline: none;
}
.newsletter-form input::placeholder { color: #999; }
.newsletter-form button {
  padding: 10px; background: var(--orange); color: var(--white);
  border: none; font-family: 'Oswald', sans-serif; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
}
.newsletter-form button:hover { background: var(--orange-dark); }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a {
  width: 36px; height: 36px; background: #555; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; font-family: 'Oswald', sans-serif;
  transition: background 0.2s;
}
.social-links a:hover { background: var(--orange); }
.footer-bottom {
  border-top: 1px solid #555; padding-top: 20px;
  text-align: center; font-size: 12px; color: #888;
}
.footer-bottom a { color: var(--orange); display: inline; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-section { padding: 70px 60px; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; max-width: 1100px; margin: 0 auto;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--dark);
}
.form-group input, .form-group textarea {
  padding: 12px 14px; border: 1px solid var(--border);
  font-size: 14px; font-family: 'Source Sans 3', sans-serif;
  outline: none; transition: border 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--orange); }
.form-group textarea { height: 120px; resize: vertical; }
.required { color: var(--orange); }
.contact-info h3 {
  font-family: 'Oswald', sans-serif; font-size: 22px;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 24px;
}
.info-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.info-icon {
  width: 40px; height: 40px; background: var(--orange); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.info-item h4 {
  font-family: 'Oswald', sans-serif; font-size: 14px;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
}
.info-item p, .info-item a { font-size: 13px; color: var(--gray); line-height: 1.7; }
.sucursales { margin-top: 30px; }
.sucursales h4 {
  font-family: 'Oswald', sans-serif; font-size: 16px;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 14px; color: var(--dark);
}
.sucursal-item {
  font-size: 13px; color: var(--gray);
  padding: 6px 0; border-bottom: 1px solid var(--border);
}
.sucursal-item strong { color: var(--dark); }

/* Form feedback messages */
.form-msg {
  padding: 14px; font-size: 14px; text-align: center;
  display: none; margin-top: 10px;
}
.form-msg.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.form-msg.error   { background: #fdecea; color: #c62828; border: 1px solid #ef9a9a; }

/* ============================================================
   WHATSAPP BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: white;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  80%, 100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ============================================================
   RESPONSIVE - MOBILE OPTIMIZED
   ============================================================ */

/* Tablets and smaller (900px and below) */
@media (max-width: 900px) {
  /* Layout */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid   { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .contact-grid  { grid-template-columns: 1fr; }

  /* Navigation */
  nav { padding: 0 20px; }
  .nav-links { gap: 20px; font-size: 14px; }

  /* Typography */
  .section-title { font-size: 28px; }
  h1 { font-size: 36px !important; }
  h2 { font-size: 24px !important; }

  /* Spacing */
  section { padding: 50px 30px !important; }
  .products { padding: 50px 30px; }
}

/* Mobile devices (768px and below) */
@media (max-width: 768px) {
  /* Navigation - Stacked */
  nav {
    flex-direction: column;
    height: auto;
    padding: 16px 20px;
    gap: 12px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
  }
  .nav-links a { padding: 8px 12px; }

  /* Breadcrumb */
  .breadcrumb-bar { padding: 10px 20px; }
  .breadcrumb-container { font-size: 12px; gap: 6px; }

  /* Dropdown Menu */
  .dropdown-menu {
    position: static;
    display: none;
    background: var(--light-gray);
    padding: 8px;
    margin-top: 8px;
  }
  .has-dropdown:hover .dropdown-menu { display: block; }

  /* Typography */
  .section-title { font-size: 24px; letter-spacing: 2px; }
  .section-subtitle { font-size: 14px; }
  h1 { font-size: 32px !important; }
  h2 { font-size: 22px !important; }
  p { font-size: 15px !important; }

  /* Buttons - Larger for touch */
  .btn-orange, .btn-white {
    padding: 16px 32px;
    font-size: 14px;
    width: 100%;
    text-align: center;
  }

  /* Product cards */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { padding: 16px 12px; }
  .product-card h3 { font-size: 13px; }
  .product-card p { font-size: 12px; }
  .product-image { height: 140px; }

  /* WhatsApp button - Smaller on mobile */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* Small mobile devices (600px and below) */
@media (max-width: 600px) {
  /* Layout - Single column */
  .products-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid   { grid-template-columns: 1fr; gap: 24px; }
  .form-row      { grid-template-columns: 1fr; }

  /* Navigation - Compact */
  nav { padding: 12px 16px; }
  .logo-wrap img { max-height: 50px; }
  .nav-links {
    width: 100%;
    gap: 8px;
    font-size: 12px;
  }
  .nav-links a {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* Breadcrumb - Smaller on mobile */
  .breadcrumb-bar { padding: 8px 16px; }
  .breadcrumb-container {
    font-size: 11px;
    gap: 4px;
    flex-wrap: wrap;
  }
  .breadcrumb-separator { font-size: 10px; }

  /* Typography - Mobile optimized */
  .section-title { font-size: 22px; }
  h1 { font-size: 28px !important; }
  h2 { font-size: 20px !important; }
  h3 { font-size: 16px !important; }
  p, li { font-size: 14px !important; line-height: 1.6 !important; }

  /* Spacing - Tighter on mobile */
  section, .products, .contact-section { padding: 40px 20px !important; }
  .page-header { padding: 30px 20px !important; }
  .page-header h1 { font-size: 26px !important; }

  /* Forms - Full width inputs */
  .contact-form input,
  .contact-form textarea,
  .contact-form button { width: 100%; }

  /* Product cards - Larger touch targets */
  .product-card { padding: 20px 16px; }
  .product-card h3 { font-size: 14px; margin-bottom: 8px; }
  .product-card p { font-size: 13px; line-height: 1.5; }
  .product-link { font-size: 12px; }
  .product-image { height: 200px; }

  /* Footer */
  footer { padding: 40px 20px 20px; }
  .footer-col h4 { font-size: 14px; }
  .footer-col p, .footer-col a { font-size: 13px; }
  .footer-bottom { font-size: 11px; padding: 16px 0; }

  /* Social links - Larger for touch */
  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  /* Contact info */
  .contact-info { padding: 24px 20px; }
  .info-item { margin-bottom: 20px; }

  /* CTA Banner */
  .cta-banner { padding: 40px 20px !important; }
  .cta-banner h2 { font-size: 22px !important; }
  .cta-banner p { font-size: 14px !important; }
}

/* Extra small devices (400px and below) */
@media (max-width: 400px) {
  /* Minimum readable sizes */
  nav { padding: 10px; }
  .nav-links { gap: 6px; }
  .nav-links a {
    padding: 6px 8px;
    font-size: 11px;
  }

  .section-title { font-size: 20px; }
  h1 { font-size: 24px !important; }
  h2 { font-size: 18px !important; }

  .btn-orange, .btn-white {
    padding: 14px 24px;
    font-size: 13px;
  }

  .product-image { height: 180px; }

  section, .products, .contact-section { padding: 30px 16px !important; }
}

/* Landscape mobile devices */
@media (max-width: 900px) and (orientation: landscape) {
  nav { height: auto; }
  .page-header { padding: 30px 20px !important; }
  section { padding: 40px 20px !important; }
}
