/*
  EXPOROSE INTERNATIONAL - Estilos Principales
*/

:root {
  /* Paleta de colores */
  --color-primary: #0a192f;
  /* Azul oscuro corporativo */
  --color-primary-light: #172a45;
  /* Azul secundario */
  --color-accent: #f97316;
  /* Naranja vibrante para CTA */
  --color-accent-hover: #ea580c;
  /* Naranja oscuro */
  --color-bg: #ffffff;
  /* Blanco */
  --color-bg-alt: #f8fafc;
  /* Gris muy claro para secciones */
  --color-text: #334155;
  /* Gris oscuro para lectura */
  --color-text-light: #64748b;
  /* Gris industrial secundario */
  --color-heading: #0f172a;
  /* Casi negro para títulos */
  --color-border: #e2e8f0;
  /* Gris para bordes */
  --color-recycle: #10b981;
  /* Verde sutil para detalles */

  /* Tipografía */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;

  /* Sombras y transiciones */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease-in-out;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

/* =========================================
   Reset Básico
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 5rem 0;
}

/* =========================================
   Tipografía Común
========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-heading);
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.text-center {
  text-align: center;
}

/* =========================================
   Botones
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: white;
}

.btn-outline-light {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--color-primary);
}

/* =========================================
   Layout & Spacing for Buttons
========================================= */
.section-actions {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.card-actions {
  margin-top: 2.5rem;
  text-align: center;
}

/* =========================================
   Header & Navegación
========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-bg);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  height: 70px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-container img {
  height: 60px;
  object-fit: contain;
}

.logo-placeholder {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.logo-placeholder span {
  color: var(--color-accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text);
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--color-accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-btn-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn-current:hover {
  border-color: var(--color-primary);
  background-color: var(--color-bg-alt);
}

.lang-btn-current span {
  font-size: 1rem;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  min-width: 80px;
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1001;
  border: 1px solid var(--color-border);
}

.lang-selector:hover .lang-dropdown,
.lang-selector:focus-within .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

.lang-opt {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
  text-align: center;
  font-weight: 500;
}

.lang-opt:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
}

.nav-cta-desktop {
  display: block;
}

.nav-cta-mobile {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

/* =========================================
   Hero Section
========================================= */
.hero {
  margin-top: var(--header-height);
  padding: 6rem 0;
  background-color: var(--color-primary);
  color: white;
  position: relative;
  overflow: hidden;
}

/* Fondo animado y malla para el Hero */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.08) 0%, transparent 50%);
  animation: slowPan 25s infinite alternate linear;
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
}

@keyframes slowPan {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-15%, -15%);
  }
}

.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1.2;
  position: relative;
}

.hero-small {
  margin-top: var(--header-height);
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  color: white;
}

.hero-small h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 0.5rem;
}

.hero-small p {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 800px;
}

.hero-logo {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.4s;
}

.hero-logo img {
  width: 100%;
  max-width: 450px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
  transition: var(--transition);
}

.hero-logo img:hover {
  transform: scale(1.05) rotate(1deg);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}

/* =========================================
   Animaciones Hero (On Load)
========================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero p {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  max-width: 650px;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.4s;
}

.trust-badge {
  display: inline-block;
  font-size: 0.875rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.6s;
}

/* =========================================
   Qué Hacemos (Tarjetas)
========================================= */
.about {
  background-color: var(--color-bg);
}

.why-us {
  background-color: var(--color-bg);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  border-color: var(--color-accent);
}

.card:hover .card-icon {
  transform: scale(1.1);
}

.card-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(249, 115, 22, 0.1);
  color: var(--color-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =========================================
   Empresa
========================================= */
.company {
  background-color: var(--color-bg-alt);
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.company-grid h2 {
  margin-bottom: 1.25rem;
}

.company-grid h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.company-grid p {
  margin-bottom: 1.15rem;
  line-height: 1.75;
}

.company-points {
  margin: 2rem 0 0;
}

.company-points li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  color: var(--color-text);
  line-height: 1.65;
}

.company-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: bold;
}

.company-highlight {
  background-color: var(--color-primary);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
  font-size: 1.1rem;
  line-height: 1.5;
}

/* =========================================
   Servicios
========================================= */
.services {
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.services::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.02) 0%, transparent 70%);
  top: -150px;
  right: -150px;
  pointer-events: none;
  z-index: 0;
}

.services .container {
  position: relative;
  z-index: 1;
}

.services .card p {
  line-height: 1.7;
}

.services-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-col {
  padding: 2rem;
  background: var(--color-bg-alt);
  border-radius: 8px;
}

.service-col h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.service-col p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.service-col ul {
  margin-top: 1rem;
}

.service-col ul li {
  margin-bottom: 0.85rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.65;
}

.service-col ul li strong {
  display: inline;
  color: var(--color-primary);
}

.service-col ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

/* =========================================
   Materiales
========================================= */
.materials {
  background-color: var(--color-primary);
  color: white;
}

.materials h2 {
  color: white;
}

.materials .section-subtitle {
  color: #cbd5e1;
}

.materials-grid {
  /* margin-bottom handled by .section-actions */
}

.material-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.material-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background-color: var(--color-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.material-card:hover::before {
  transform: scaleY(1);
}

.material-card h3 {
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.material-card h3::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
  opacity: 0.5;
  transition: var(--transition-fast);
}

.material-card:hover h3::before {
  opacity: 1;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
}

.material-card p {
  color: #cbd5e1;
}

.material-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.materials-note {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: #94a3b8;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   Mercados
========================================= */
.markets {
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.markets::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.02) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  pointer-events: none;
  z-index: 0;
}

.markets .container {
  position: relative;
  z-index: 1;
}

.map-schematic {
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 2rem;
  background: var(--color-bg-alt);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.route-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.route-arrow {
  color: var(--color-accent);
  font-size: 1.2rem;
  display: inline-block;
  animation: slideArrow 2s infinite ease-in-out;
}

@keyframes slideArrow {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(4px);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.stat-item {
  background: white;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  border-color: rgba(249, 115, 22, 0.4);
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
  line-height: 1;
}

.stat-item p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin: 0;
  font-weight: 500;
}

/* =========================================
   CTA y Contacto
========================================= */
.cta-section {
  background-color: var(--color-bg-alt);
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact {
  background-color: var(--color-bg);
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-heading);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.35rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.checkbox-group label {
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0;
}

/* =========================================
   Footer
========================================= */
/* Legal Pages */
.legal-content {
  padding: 8rem 0 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-heading);
}

.legal-content p,
.legal-content ul {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.legal-content ul {
  padding-left: 2rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.footer {
  background-color: var(--color-primary);
  color: #94a3b8;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  filter: brightness(0) invert(1);
  height: 40px;
  object-fit: contain;
  object-position: left;
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.footer-logo-text span {
  color: var(--color-accent);
}

.footer h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

/* =========================================
   Utilidades
========================================= */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.rounded-lg {
  border-radius: 12px;
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* =========================================
   Media Queries y Utilidades
========================================= */
@media (max-width: 992px) {
  .hero-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-logo img {
    max-width: 300px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .company-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-columns {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .logo-container img {
    height: 50px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-bg);
    flex-direction: column;
    padding: 2rem;
    transition: var(--transition);
    border-top: 1px solid var(--color-border);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.25rem;
    padding: 1rem 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link:last-of-type {
    border-bottom: none;
  }

  .lang-selector {
    margin: 0;
  }

  .nav-cta-desktop {
    display: none;
  }

  .nav-cta-mobile {
    display: block;
    margin-top: 2rem;
    text-align: center;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-buttons,
  .cta-buttons,
  .section-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-buttons .btn,
  .cta-buttons .btn,
  .section-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
    gap: 0 !important;
  }

  .logo-container img {
    height: 45px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .nav-menu {
    overflow-y: auto;
    padding-bottom: 4rem;
  }

  .service-col ul li {
    margin-bottom: 1rem;
  }

  .company-grid h3 {
    margin-top: 1.75rem;
  }
}

@media (max-width: 480px) {
  .section-padding {
    padding: 3rem 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-logo img {
    max-width: 220px;
  }

  .hero-small h1 {
    font-size: 1.75rem;
  }

  .legal-content {
    padding: 6rem 1.5rem 3rem;
  }

  .legal-content h1 {
    font-size: 2rem;
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--color-primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 9999;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* =========================================
   RTL Arabic Layout
========================================= */
html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', var(--font-main);
  text-align: right;
}

html[dir="rtl"] .nav-container,
html[dir="rtl"] .nav-menu,
html[dir="rtl"] .header-right,
html[dir="rtl"] .hero-wrapper,
html[dir="rtl"] .hero-buttons,
html[dir="rtl"] .cta-buttons,
html[dir="rtl"] .section-actions,
html[dir="rtl"] .route-item,
html[dir="rtl"] .checkbox-group {
  direction: rtl;
}

html[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

html[dir="rtl"] .hero p,
html[dir="rtl"] .hero-small p {
  margin-right: 0;
  margin-left: auto;
}

html[dir="rtl"] .section-subtitle {
  text-align: center;
}

html[dir="rtl"] .card,
html[dir="rtl"] .service-col,
html[dir="rtl"] .legal-content,
html[dir="rtl"] .contact-form,
html[dir="rtl"] .footer {
  text-align: right;
}

html[dir="rtl"] .card-icon {
  margin-right: 0;
  margin-left: auto;
}

html[dir="rtl"] .company-points li,
html[dir="rtl"] .service-col ul li {
  padding-left: 0;
  padding-right: 2rem;
}

html[dir="rtl"] .service-col ul {
  padding-left: 0;
  padding-right: 1.25rem;
}

html[dir="rtl"] .company-points li::before,
html[dir="rtl"] .service-col ul li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .company-highlight {
  border-left: none;
  border-right: 4px solid var(--color-accent);
}

html[dir="rtl"] .material-card::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .material-card h3 {
  justify-content: flex-start;
}

html[dir="rtl"] .form-control,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
  direction: rtl;
  text-align: right;
  font-family: 'Noto Sans Arabic', var(--font-main);
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"] {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .checkbox-group input[type="checkbox"] {
  margin-left: 0.75rem;
  margin-right: 0;
}

html[dir="rtl"] .legal-content ul {
  padding-left: 0;
  padding-right: 2rem;
}

html[dir="rtl"] .footer-logo {
  object-position: right;
}

@media (max-width: 768px) {
  html[dir="rtl"] .nav-menu {
    left: auto;
    right: -100%;
  }

  html[dir="rtl"] .nav-menu.active {
    right: 0;
  }

  html[dir="rtl"] .form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================
   Animaciones Scroll (Intersection Observer)
========================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delays para elementos escalonados */
.delay-1 {
  transition-delay: 100ms;
}

.delay-2 {
  transition-delay: 200ms;
}

.delay-3 {
  transition-delay: 300ms;
}

.delay-4 {
  transition-delay: 400ms;
}

.delay-5 {
  transition-delay: 500ms;
}

.delay-6 {
  transition-delay: 600ms;
}

.delay-7 {
  transition-delay: 700ms;
}

.delay-8 {
  transition-delay: 800ms;
}

/* =========================================
   Prefers Reduced Motion
========================================= */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero::before {
    display: none;
  }

  .hero h1,
  .hero p,
  .hero-buttons,
  .trust-badge,
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
