/* Pierini & Asoc - Estilos Personalizados */
/* Este archivo sobrescribe estilos específicos del main.css para Pierini & Asoc */

/* Glacial Indifference — misma familia que la firma PDF (Blue Modern Professional). */
@font-face {
  font-family: 'Glacial Indifference';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/glacial-indifference/GlacialIndifference-Regular.woff') format('woff');
}
@font-face {
  font-family: 'Glacial Indifference';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/glacial-indifference/GlacialIndifference-Bold.woff') format('woff');
}

/* Variables CSS para colores de marca (según manual de marca) */
:root {
  --default-font: "Glacial Indifference", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-font: "Glacial Indifference", sans-serif;
  --nav-font: "Glacial Indifference", sans-serif;
  --pierini-dark: #0d223f;       /* azul oscuro JP */
  --pierini-medium: #388dd8;     /* celeste JP */
  --pierini-coral: #388dd8;      /* usamos el celeste como acento principal */
  --pierini-light: #ffffff;
  --primary-color: #388dd8;
  --secondary-color: #0d223f;
  --bg-dark: radial-gradient(circle at top, #0d223f 0%, #030813 100%);
  --glass-bg: radial-gradient(circle at top, #e5e7eb 0, #d1d5db 45%, #9ca3af 100%);
  scroll-behavior: smooth;
}

/* Tipografías y base responsive */
body {
  font-family: 'Glacial Indifference', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

/* Evitar scroll del documento cuando el menú móvil está abierto */
html.mobile-menu-open {
  overflow: hidden;
  height: 100%;
}

body.mobile-menu-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

/* Sección servicios: padding responsive */
.section-servicios {
  background: var(--glass-bg);
  padding: 4.5rem 1rem;
}
@media (max-width: 768px) {
  .section-servicios {
    padding: 3rem 0.75rem;
  }
}
@media (max-width: 576px) {
  .section-servicios {
    padding: 2.5rem 0.5rem;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Glacial Indifference', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
}

button, input, select, textarea, .btn {
  font-family: inherit;
}

#portal-clientes {
  scroll-margin-top: 6rem;
}

.footer-links-title {
  font-family: var(--heading-font);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.85rem;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.footer-links-list a {
  color: #fff;
  text-decoration: none;
}

.footer-links-list a:hover {
  color: var(--pierini-medium);
}

.footer-link-icon {
  color: #388dd8;
}

.footer-newsletter-text {
  color: #fff;
  margin-bottom: 2rem;
}

.footer-contact-text a {
  color: rgba(255, 255, 255, 0.95);
}

/* ===========================================
   HEADER COMPLETAMENTE NUEVO - Sistema Limpio
   =========================================== */

/* Header Principal - Pierini: oscuro */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 31, 59, 0.95);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(30, 139, 255, 0.2);
  transition: all 0.3s ease;
}
.index-page .header .nav-link {
  color: rgba(255, 255, 255, 0.9);
}
.index-page .header .nav-link:hover,
.index-page .header .nav-link.active {
  color: var(--pierini-coral);
  background: rgba(245, 176, 65, 0.15);
}
.index-page .header .nav-link::after {
  background: var(--pierini-coral);
}
.index-page .header .btn-cta {
  background: #1e8bff;
  border-color: #1e8bff;
  color: #fff !important;
}
.index-page .header .btn-cta:hover {
  background: transparent;
  color: #1e8bff !important;
}
.index-page .header .logo img {
  filter: brightness(0) invert(1); /* logo blanco en el header */
}
.index-page .mobile-menu {
  background: var(--pierini-dark);
}
.index-page .hamburger-line {
  background: #fff;
}
.index-page .mobile-menu-close .close-icon,
.index-page .mobile-nav-link {
  color: rgba(255, 255, 255, 0.95);
}
.index-page .mobile-nav-link:hover,
.index-page .mobile-nav-link.active {
  color: #fff;
  background: rgba(56, 141, 216, 0.15);
}
.index-page .mobile-nav-link i {
  color: var(--pierini-coral);
}
.index-page .mobile-nav-link::before {
  background: var(--pierini-medium);
}
.index-page .mobile-menu-cta {
  background: var(--pierini-medium);
  color: #fff;
}
.index-page .mobile-menu-wa {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.index-page .mobile-menu-wa:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo Section */
.logo-section {
  flex-shrink: 0;
}

.logo img {
  height: 100px;
  width: auto;
  transition: all 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  font-family: 'Glacial Indifference', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #0b1f3b;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  line-height: 1.2;
}

.nav-link:hover,
.nav-link.active {
  color: #f5b041;
  background: rgba(242, 140, 90, 0.1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #f5b041;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* CTA Button */
.cta-section {
  flex-shrink: 0;
}

.btn-cta {
  background: #f5b041;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-family: 'Glacial Indifference', sans-serif;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  border: 2px solid #f5b041;
  white-space: nowrap;
}

.btn-cta:hover {
  background: transparent;
  color: #f5b041;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(242, 140, 90, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: rgba(242, 140, 90, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.mobile-menu-btn:hover {
  background: rgba(242, 140, 90, 0.2);
  transform: scale(1.1);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: #0b1f3b;
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 34, 63, 0.55);
  backdrop-filter: blur(6px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-overlay:not(.active) {
  pointer-events: none;
}

/* ========== Menú móvil rediseñado ========== */

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100%;
  background: var(--pierini-dark);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

.mobile-menu.active {
  transform: translateX(0);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
  visibility: visible;
}

/* Cerrado: no capturar clics */
.mobile-menu:not(.active) {
  pointer-events: none;
}

#mobileMenu.mobile-menu .mobile-nav-link {
  display: flex !important;
  opacity: 1 !important;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
  background: var(--pierini-dark);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
}

.mobile-menu-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1); /* logo blanco en el nav mobile */
}

.mobile-menu-close {
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
  position: relative;
  color: #fff;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.mobile-menu-close .close-icon {
  width: 20px;
  height: 20px;
  position: relative;
  display: block;
}

.mobile-menu-close .close-icon::before,
.mobile-menu-close .close-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-close .close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0.5rem 0;
  display: block !important;
  visibility: visible !important;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0 0.75rem;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-height: 0 !important;
  visibility: visible !important;
}

#mobileMenu .mobile-nav-list li {
  display: list-item !important;
}

.mobile-nav-list li {
  margin-bottom: 0;
  flex-shrink: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  font-family: 'Glacial Indifference', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
  position: relative;
  border-radius: 10px;
}

.mobile-nav-link i {
  font-size: 1.1rem;
  flex-shrink: 0;
  opacity: 0.9;
}

.mobile-nav-link span {
  flex: 1;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 4px;
  height: 60%;
  border-radius: 0 4px 4px 0;
  background: var(--pierini-medium);
  transition: transform 0.25s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(56, 141, 216, 0.12);
  color: #fff;
}

.mobile-nav-link:hover::before,
.mobile-nav-link.active::before {
  transform: translateY(-50%) scaleY(1);
}

.mobile-menu-footer {
  flex-shrink: 0;
  padding: 0.85rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-family: 'Glacial Indifference', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  color: #fff;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.mobile-menu-wa i {
  font-size: 1.1rem;
}

.mobile-menu-cta {
  display: block;
  text-align: center;
  padding: 0.7rem 1.25rem;
  font-family: 'Glacial Indifference', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 10px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-menu-cta:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 991px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .header-content {
    padding: 1rem;
  }
  
  .logo img {
    height: 80px;
  }
  
  .btn-cta {
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 0.8rem;
  }
  
  .logo img {
    height: 70px;
  }
  
  .btn-cta {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .mobile-menu {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0.5rem;
  }
  
  .logo img {
    height: 60px;
  }
  
  .btn-cta {
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .mobile-menu {
    width: 100%;
  }
}

/* ===========================================
   FULL RESPONSIVE - Secciones, contenedores, touch
   =========================================== */
@media (max-width: 991px) {
  .section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .section-title h2 {
    font-size: 1.75rem;
  }
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 576px) {
  .section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .section-title h2 {
    font-size: 1.5rem;
  }
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  /* Touch targets mínimos 44px (accesibilidad) */
  .btn-send,
  .btn-hero,
  .btn-footer-cta,
  .mobile-menu-cta,
  .mobile-menu-wa {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
  }
  .mobile-nav-link {
    min-height: 44px;
    padding: 0.6rem 1rem;
  }
  .scroll-top,
  .floating-whatsapp {
    min-width: 44px;
    min-height: 44px;
  }
  .team-card .caption .linkedin-link {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 360px) {
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Imágenes responsive en footer */
.footer .logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* ===========================================
   FONDO ANIMADO - Efectos modernos
   =========================================== */

/* Ondas sutiles en el hero section */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(242, 140, 90, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(73, 73, 73, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 60%, rgba(242, 140, 90, 0.05) 0%, transparent 50%);
  animation: waveMotion 30s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes waveMotion {
  0%, 100% { 
    transform: scale(1) rotate(0deg);
    opacity: 0.6;
  }
  33% { 
    transform: scale(1.1) rotate(1deg);
    opacity: 0.4;
  }
  66% { 
    transform: scale(0.9) rotate(-1deg);
    opacity: 0.7;
  }
}

/* Partículas flotantes sutiles */
.header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(242, 140, 90, 0.15) 2px, transparent 2px),
    radial-gradient(circle at 80% 80%, rgba(242, 140, 90, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 40% 40%, rgba(242, 140, 90, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 60% 10%, rgba(73, 73, 73, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 10% 70%, rgba(73, 73, 73, 0.08) 1px, transparent 1px);
  background-size: 60px 60px, 100px 100px, 40px 40px, 80px 80px, 50px 50px;
  animation: floatParticles 25s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.4;
}

@keyframes floatParticles {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
    opacity: 0.4;
  }
  25% { 
    transform: translateY(-8px) rotate(1deg);
    opacity: 0.6;
  }
  50% { 
    transform: translateY(-15px) rotate(0deg);
    opacity: 0.3;
  }
  75% { 
    transform: translateY(-5px) rotate(-1deg);
    opacity: 0.5;
  }
}

/* Líneas geométricas animadas */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(45deg, transparent 48%, rgba(242, 140, 90, 0.1) 49%, rgba(242, 140, 90, 0.1) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(73, 73, 73, 0.08) 49%, rgba(73, 73, 73, 0.08) 51%, transparent 52%);
  background-size: 100px 100px, 80px 80px;
  animation: geometricLines 40s linear infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

@keyframes geometricLines {
  0% { 
    transform: translateX(0) translateY(0);
  }
  100% { 
    transform: translateX(100px) translateY(100px);
  }
}

/* ===========================================
   VIDEO DE FONDO - Hero Section
   =========================================== */

/* Video de fondo del Hero */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Mostrar el video cuando esté cargado */
.hero-video.loaded {
  opacity: 1;
}

/* Si el video no está disponible, mostrar el gradiente */
.hero:not(:has(.hero-video.loaded)) {
  background: linear-gradient(135deg, #0b1f3b 0%, #1e4b86 100%);
}

/* Overlay oscuro para mejorar legibilidad del texto sobre el video */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(73, 73, 73, 0.75) 0%,
    rgba(127, 127, 127, 0.65) 50%,
    rgba(73, 73, 73, 0.75) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Asegurar que el contenido esté por encima del video y overlay */
.hero .container {
  position: relative;
  z-index: 3;
}

/* Logo destacado sobre el video - Pierini (glassbox blanco) */
.hero .hero-logo-wrap {
  display: inline-block;
  padding: 2.25rem 3.5rem;
  margin-top: -3rem;
  margin-bottom: 2.5rem;
  border-radius: 28px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.247), rgba(255, 255, 255, 0.192));
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.4),
    0 0 60px rgba(56, 141, 216, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  z-index: 1;
}
.hero .hero-logo-wrap img {
  max-width: 360px;
  width: 100%;
  min-width: 260px;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}

/* Subtítulo opcional bajo el logo del hero */
.hero-subtitle {
  margin-top: 0.75rem;
  text-align: center;
}

.hero-subtitle h2 {
  margin: 0;
  font-family: 'Glacial Indifference', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--secondary-color);
}

.hero-subtitle h2 span {
  color: var(--primary-color) !important;
}
@media (max-width: 768px) {
  .hero .hero-logo-wrap {
    padding: 1.75rem 2.75rem;
    margin-bottom: 2rem;
  }
  .hero .hero-logo-wrap img {
    max-width: 280px;
    min-width: 200px;
  }
}
@media (max-width: 576px) {
  .hero .hero-logo-wrap {
    padding: 1.35rem 1.75rem;
    margin-bottom: 1.5rem;
  }
  .hero .hero-logo-wrap img {
    max-width: 230px;
    min-width: 160px;
  }
}

/* Ajustar z-index de los elementos decorativos del hero */
.hero::before,
.hero::after {
  z-index: 2;
}

/* ===========================================
   RESPONSIVE - Video de Fondo Hero
   =========================================== */

/* Desktop Grande (1400px+) - Video completo */
@media (min-width: 1400px) {
  .hero-video {
    opacity: 1;
  }
  
  .hero-overlay {
    background: linear-gradient(
      135deg,
      rgba(73, 73, 73, 0.7) 0%,
      rgba(127, 127, 127, 0.6) 50%,
      rgba(73, 73, 73, 0.7) 100%
    );
  }
}

/* Desktop Mediano (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .hero-video {
    opacity: 1;
  }
  
  .hero-overlay {
    background: linear-gradient(
      135deg,
      rgba(73, 73, 73, 0.72) 0%,
      rgba(127, 127, 127, 0.62) 50%,
      rgba(73, 73, 73, 0.72) 100%
    );
  }
}

/* Desktop Pequeño (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-video {
    opacity: 0.95;
  }
  
  .hero-overlay {
    background: linear-gradient(
      135deg,
      rgba(73, 73, 73, 0.75) 0%,
      rgba(127, 127, 127, 0.65) 50%,
      rgba(73, 73, 73, 0.75) 100%
    );
  }
}

/* Tablet Landscape (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-video {
    opacity: 0.85;
    object-position: center;
  }
  
  .hero-overlay {
    background: linear-gradient(
      135deg,
      rgba(73, 73, 73, 0.78) 0%,
      rgba(127, 127, 127, 0.68) 50%,
      rgba(73, 73, 73, 0.78) 100%
    );
  }
}

/* Tablet Portrait y Móviles Grandes (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .hero-video {
    opacity: 0.75;
    object-position: center;
  }
  
  .hero-overlay {
    background: linear-gradient(
      135deg,
      rgba(73, 73, 73, 0.82) 0%,
      rgba(127, 127, 127, 0.72) 50%,
      rgba(73, 73, 73, 0.82) 100%
    );
  }
}

/* Móviles (≤575px) - Video visible, overlay fuerte y opacidad suavizada */
@media (max-width: 575px) {
  .hero-video {
    object-position: center;
  }
  .hero-video.loaded {
    opacity: 0.62;
  }
  .hero-overlay {
    background: linear-gradient(
      135deg,
      rgba(73, 73, 73, 0.88) 0%,
      rgba(127, 127, 127, 0.78) 50%,
      rgba(73, 73, 73, 0.88) 100%
    );
  }
}

/* Orientación Landscape en móviles */
@media (max-width: 991px) and (orientation: landscape) {
  .hero-video {
    opacity: 0.8;
    object-position: center;
  }
  
  .hero-overlay {
    background: linear-gradient(
      135deg,
      rgba(73, 73, 73, 0.8) 0%,
      rgba(127, 127, 127, 0.7) 50%,
      rgba(73, 73, 73, 0.8) 100%
    );
  }
}

/* Optimización para conexiones lentas (prefers-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
  
  .hero-overlay {
    background: linear-gradient(135deg, #0b1f3b 0%, #1e4b86 100%);
  }
}

/* Optimización para dispositivos con poca memoria (se detecta mediante JavaScript) */
.hero-video.low-performance {
  display: none;
}

.hero-video.low-performance ~ .hero-overlay {
  background: linear-gradient(135deg, #0b1f3b 0%, #1e4b86 100%);
}

/* NAVEGACIÓN - Sobrescribir estilos específicos del main.css */
@media (min-width: 1200px) {
  .index-page .navmenu {
    display: block !important;
    position: static !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    height: auto !important;
    width: auto !important;
    right: auto !important;
    top: auto !important;
    flex-direction: row !important;
    z-index: auto !important;
  }
  
  .index-page .navmenu ul {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    position: static !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }
  
  .index-page .navmenu ul li {
    margin: 0 !important;
    position: relative !important;
  }
  
  .index-page .navmenu ul li a {
    font-family: 'Glacial Indifference', sans-serif !important;
    font-weight: 500 !important;
    color: var(--pierini-dark) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    font-size: 16px !important;
    background: none !important;
    text-decoration: none !important;
  }
}

.navmenu ul li a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f5b041, #ff6b35);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}

/* Estados hover y active - Sobrescribir main.css */
@media (min-width: 1200px) {
  .index-page .navmenu ul li a:hover,
  .index-page .navmenu ul li a.active,
  .index-page .navmenu li:hover>a,
  .index-page .navmenu .active,
  .index-page .navmenu .active:focus {
    color: var(--pierini-coral) !important;
    background: rgba(242, 140, 90, 0.1) !important;
    transform: translateY(-2px) !important;
    text-align: center !important;
    border-bottom: 2px solid #f5b041 !important;
    background-color: rgba(242, 140, 90, 0.1) !important;
  }
}



/* Sobrescribir estilos específicos del main.css - Solo para desktop */
@media (min-width: 1200px) {
  .navmenu {
    display: block !important;
    position: static !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    height: auto !important;
    width: auto !important;
    right: auto !important;
    top: auto !important;
    flex-direction: row !important;
    z-index: auto !important;
  }
  
  .navmenu ul {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    position: static !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }
  
  .navmenu ul li {
    margin: 0 !important;
    position: relative !important;
  }
  
  .navmenu a,
  .navmenu a:focus {
    padding: 8px 16px !important;
    font-family: 'Glacial Indifference', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--pierini-dark) !important;
    background: none !important;
    justify-content: center !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
  }

  /* Sobrescribir el padding específico del último elemento */
  .navmenu li:last-child a {
    padding-right: 16px !important;
  }
}

/* BOTÓN CTA - Sobrescribir estilos del main.css */
.index-page .header .btn-getstarted,
.index-page .header .btn-getstarted:focus {
  color: white !important;
  font-size: 14px !important;
  padding: 12px 24px !important;
  font-family: 'Glacial Indifference', sans-serif !important;
  font-weight: 600 !important;
  background-color: #f5b041 !important;
  border: 2px solid #f5b041 !important;
  border-radius: 25px !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.index-page .header .btn-getstarted:hover,
.index-page .header .btn-getstarted:focus:hover {
  color: white !important;
  background: #f5b041 !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 10px 25px rgba(242, 140, 90, 0.4) !important;
}

/* ===========================================
   ICON-BOX MODERNOS - Hero Section
   =========================================== */

/* Estilos para los icon-box del hero */
.hero .icon-box {
  background: rgba(255, 255, 255, 0.1) !important;
  padding: 2.5rem !important;
  border-radius: 20px !important;
  text-align: center !important;
  backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

/* Efecto de brillo sutil en el fondo */
.hero .icon-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(242, 140, 90, 0.1) 0%, 
    transparent 50%, 
    rgba(242, 140, 90, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Iconos con efectos modernos */
.hero .icon-box i {
  font-size: 3.5rem !important;
  color: #f5b041 !important;
  margin-bottom: 1.5rem !important;
  display: block !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Efecto de pulso en los iconos */
.hero .icon-box i::before {
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { 
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(242, 140, 90, 0));
  }
  50% { 
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(242, 140, 90, 0.3));
  }
}

/* Títulos de los icon-box */
.hero .icon-box h3 {
  color: white !important;
  font-family: 'Glacial Indifference', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.2rem !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

.hero .icon-box h3 a {
  color: white !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

/* Efectos hover mejorados */
.hero .icon-box:hover {
  transform: translateY(-10px) scale(1.02) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(242, 140, 90, 0.3) !important;
  box-shadow: 0 20px 40px rgba(242, 140, 90, 0.2) !important;
}

.hero .icon-box:hover::before {
  opacity: 1;
}

.hero .icon-box:hover i {
  transform: scale(1.1) rotate(5deg) !important;
  color: #ff6b35 !important;
  filter: drop-shadow(0 0 25px rgba(242, 140, 90, 0.5)) !important;
}

.hero .icon-box:hover h3 a {
  color: #f5b041 !important;
  text-shadow: 0 0 10px rgba(242, 140, 90, 0.3) !important;
}

/* Efecto de ondas en hover */
.hero .icon-box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(242, 140, 90, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.hero .icon-box:hover::after {
  width: 200px;
  height: 200px;
}

/* Efectos adicionales para iconos específicos */
.hero .icon-box:nth-child(1) i::before {
  animation-delay: 0s;
}

.hero .icon-box:nth-child(2) i::before {
  animation-delay: 1s;
}

.hero .icon-box:nth-child(3) i::before {
  animation-delay: 2s;
}

/* Efecto de brillo en los bordes */
.hero .icon-box {
  background-image: 
    linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%),
    linear-gradient(45deg, transparent 0%, rgba(242, 140, 90, 0.1) 50%, transparent 100%);
}

/* Animación de entrada más suave */
.hero .icon-box {
  animation: iconBoxEntrance 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

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

/* Delay escalonado para la animación de entrada */
.hero .icon-box:nth-child(1) {
  animation-delay: 0.2s;
}

.hero .icon-box:nth-child(2) {
  animation-delay: 0.4s;
}

.hero .icon-box:nth-child(3) {
  animation-delay: 0.6s;
}

/* ===========================================
   SERVICE-ITEM MODERNOS - Servicios Section
   =========================================== */

/* Estilos base para las tarjetas de servicios */
.service-item {
  background: white !important;
  padding: 3rem 2.5rem !important;
  border-radius: 25px !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08) !important;
  text-align: center !important;
  height: 100% !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(242, 140, 90, 0.1) !important;
}

/* Efecto de gradiente sutil en el fondo */
.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(242, 140, 90, 0.03) 0%, 
    transparent 50%, 
    rgba(242, 140, 90, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

/* Efecto de brillo en los bordes */
.service-item::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    rgba(242, 140, 90, 0.2), 
    rgba(242, 140, 90, 0.1), 
    rgba(242, 140, 90, 0.2));
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

/* Iconos con efectos modernos */
.service-item .icon {
  margin-bottom: 2rem !important;
  position: relative !important;
  z-index: 2 !important;
}

.service-item .icon i {
  font-size: 3.5rem !important;
  color: #f5b041 !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: block !important;
  position: relative !important;
}

/* Efecto de pulso en los iconos */
.service-item .icon i::before {
  animation: serviceIconPulse 4s ease-in-out infinite;
}

@keyframes serviceIconPulse {
  0%, 100% { 
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(242, 140, 90, 0));
  }
  50% { 
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(242, 140, 90, 0.2));
  }
}

/* Títulos de servicios */
.service-item h3 {
  font-family: 'Glacial Indifference', sans-serif !important;
  font-weight: 600 !important;
  color: #0b1f3b !important;
  margin-bottom: 1.5rem !important;
  font-size: 1.3rem !important;
  position: relative !important;
  z-index: 2 !important;
  transition: color 0.3s ease !important;
}

/* Descripciones de servicios */
.service-item p {
  font-family: 'Glacial Indifference', sans-serif !important;
  color: #1e4b86 !important;
  margin-bottom: 2.5rem !important;
  line-height: 1.6 !important;
  position: relative !important;
  z-index: 2 !important;
  transition: color 0.3s ease !important;
}

/* Botones de servicios */
.service-item .btn {
  background-color: #f5b041 !important;
  border-color: #f5b041 !important;
  color: white !important;
  font-family: 'Glacial Indifference', sans-serif !important;
  font-weight: 600 !important;
  padding: 14px 35px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 2 !important;
  border: none !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.5px !important;
}

/* Efecto shimmer en botones */
.service-item .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

/* Efectos hover mejorados */
.service-item:hover {
  transform: translateY(-12px) scale(1.02) !important;
  box-shadow: 0 25px 60px rgba(242, 140, 90, 0.15) !important;
  border-color: rgba(242, 140, 90, 0.3) !important;
}

.service-item:hover::before {
  opacity: 1;
}

.service-item:hover::after {
  opacity: 1;
}

.service-item:hover .icon i {
  transform: scale(1.15) rotate(8deg) !important;
  color: #ff6b35 !important;
  filter: drop-shadow(0 0 20px rgba(242, 140, 90, 0.4)) !important;
}

.service-item:hover h3 {
  color: #f5b041 !important;
}

.service-item:hover p {
  color: #0b1f3b !important;
}

.service-item:hover .btn {
  background-color: #ff6b35 !important;
  border-color: #ff6b35 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(242, 140, 90, 0.3) !important;
}

.service-item:hover .btn::before {
  left: 100%;
}

/* Efecto de ondas en hover */
.service-item {
  animation: serviceItemEntrance 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(40px);
}

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

/* Delay escalonado para animación de entrada */
.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }
.service-item:nth-child(6) { animation-delay: 0.6s; }

/* ===========================================
   SOBRESCRIBIR ESTILOS DEL MAIN.CSS
   =========================================== */

/* Sobrescribir estilos específicos del main.css para services */
.services .service-item {
  background-color: white !important;
  text-align: center !important;
  border: 1px solid rgba(242, 140, 90, 0.1) !important;
  padding: 3rem 2.5rem !important;
  height: 100% !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-radius: 25px !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08) !important;
  position: relative !important;
  overflow: hidden !important;
}

.services .service-item .icon {
  background: none !important;
  color: #f5b041 !important;
  margin: 0 auto !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  display: block !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 2rem !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.services .service-item .icon i {
  font-size: 3.5rem !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: block !important;
  position: relative !important;
}

.services .service-item h3 {
  font-weight: 600 !important;
  margin: 0 0 1.5rem 0 !important;
  font-size: 1.3rem !important;
  transition: color 0.3s ease !important;
  font-family: 'Glacial Indifference', sans-serif !important;
  color: #0b1f3b !important;
  position: relative !important;
  z-index: 2 !important;
}

.services .service-item p {
  line-height: 1.6 !important;
  font-size: 1rem !important;
  margin-bottom: 2.5rem !important;
  font-family: 'Glacial Indifference', sans-serif !important;
  color: #1e4b86 !important;
  position: relative !important;
  z-index: 2 !important;
  transition: color 0.3s ease !important;
}

.services .service-item:hover {
  box-shadow: 0 25px 60px rgba(242, 140, 90, 0.15) !important;
  transform: translateY(-12px) scale(1.02) !important;
  border-color: rgba(242, 140, 90, 0.3) !important;
}

.services .service-item:hover .icon {
  background: none !important;
  border: none !important;
}

.services .service-item:hover .icon i {
  color: #ff6b35 !important;
  transform: scale(1.15) rotate(8deg) !important;
  filter: drop-shadow(0 0 20px rgba(242, 140, 90, 0.4)) !important;
}

.services .service-item:hover h3 {
  color: #f5b041 !important;
}

.services .service-item:hover p {
  color: #0b1f3b !important;
}

/* Efectos de capas para .services .service-item */
.services .service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(242, 140, 90, 0.03) 0%, 
    transparent 50%, 
    rgba(242, 140, 90, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.services .service-item::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    rgba(242, 140, 90, 0.2), 
    rgba(242, 140, 90, 0.1), 
    rgba(242, 140, 90, 0.2));
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.services .service-item:hover::before {
  opacity: 1;
}

.services .service-item:hover::after {
  opacity: 1;
}

/* Efecto de pulso para iconos de .services */
.services .service-item .icon i::before {
  animation: serviceIconPulse 4s ease-in-out infinite;
}

/* Efecto shimmer para botones de .services */
.services .service-item .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.services .service-item:hover .btn::before {
  left: 100%;
}

/* Estilos de botones para .services .service-item */
.services .service-item .btn {
  background-color: #f5b041 !important;
  border-color: #f5b041 !important;
  color: white !important;
  font-family: 'Glacial Indifference', sans-serif !important;
  font-weight: 600 !important;
  padding: 14px 35px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 2 !important;
  border: none !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.5px !important;
}

.services .service-item:hover .btn {
  background-color: #ff6b35 !important;
  border-color: #ff6b35 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(242, 140, 90, 0.3) !important;
}

/* ===========================================
   CONTACT SECTION MODERNA - Mejoras completas
   =========================================== */

/* Sección de contacto con fondo moderno */
.contact.section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  padding: 6rem 0 !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Efecto de partículas sutiles en el fondo */
.contact.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(242, 140, 90, 0.05) 2px, transparent 2px),
    radial-gradient(circle at 80% 80%, rgba(73, 73, 73, 0.03) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px;
  animation: contactParticles 30s linear infinite;
  pointer-events: none;
  opacity: 0.6;
}

@keyframes contactParticles {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-100px) translateY(-100px); }
}

/* Título contacto: mismo criterio que .section-title h2 (Regular = tildes uniformes) */
.contact .section-title h2 {
  font-family: 'Glacial Indifference', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 400 !important;
  color: var(--secondary-color) !important;
  font-size: clamp(1.9rem, 3.15vw, 2.45rem) !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  position: relative !important;
  z-index: 2 !important;
}

.contact .section-title p {
  font-family: 'Glacial Indifference', sans-serif !important;
  color: #1e4b86 !important;
  font-size: 1rem !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Info items modernos */
.contact .info-item {
  background: white !important;
  padding: 2.5rem !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
  margin-bottom: 2rem !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(242, 140, 90, 0.1) !important;
}

/* Efecto de brillo sutil en info items */
.contact .info-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(242, 140, 90, 0.03) 0%, 
    transparent 50%, 
    rgba(242, 140, 90, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

/* Iconos de info items */
.contact .info-item i {
  color: #f5b041 !important;
  font-size: 2rem !important;
  margin-right: 1.5rem !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Títulos de info items */
.contact .info-item h3 {
  font-family: 'Glacial Indifference', sans-serif !important;
  font-weight: 600 !important;
  color: #0b1f3b !important;
  margin-bottom: 0.5rem !important;
  font-size: 1.2rem !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Texto de info items */
.contact .info-item p {
  font-family: 'Glacial Indifference', sans-serif !important;
  color: #1e4b86 !important;
  margin: 0 !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Efectos hover para info items */
.contact .info-item:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 20px 50px rgba(242, 140, 90, 0.15) !important;
  border-color: rgba(242, 140, 90, 0.3) !important;
}

.contact .info-item:hover::before {
  opacity: 1;
}

.contact .info-item:hover i {
  transform: scale(1.1) rotate(5deg) !important;
  color: #ff6b35 !important;
}

/* ===========================================
   SOBRESCRIBIR ESTILOS DEL MAIN.CSS PARA INFO-ITEMS
   =========================================== */

/* Sobrescribir estilos específicos del main.css para contact info-items */
.contact .info-item+.info-item {
  margin-top: 0 !important;
}

.contact .info-item i {
  color: #f5b041 !important;
  background: none !important;
  font-size: 2rem !important;
  width: auto !important;
  height: auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  border-radius: 0 !important;
  transition: all 0.3s ease !important;
  margin-right: 1.5rem !important;
  position: relative !important;
  z-index: 2 !important;
  flex-shrink: 0 !important;
  min-width: 2.5rem !important;
}

/* Efecto de pulso sutil en iconos de info-items */
.contact .info-item i::before {
  animation: infoIconPulse 3s ease-in-out infinite;
}

@keyframes infoIconPulse {
  0%, 100% { 
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(242, 140, 90, 0));
  }
  50% { 
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(242, 140, 90, 0.2));
  }
}

.contact .info-item h3 {
  padding: 0 !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
  font-family: 'Glacial Indifference', sans-serif !important;
  color: #0b1f3b !important;
  position: relative !important;
  z-index: 2 !important;
}

.contact .info-item p {
  padding: 0 !important;
  margin-bottom: 0 !important;
  font-size: 1rem !important;
  font-family: 'Glacial Indifference', sans-serif !important;
  color: #1e4b86 !important;
  line-height: 1.6 !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Formulario moderno */
.contact .php-email-form {
  background: white !important;
  padding: 3rem !important;
  border-radius: 25px !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1) !important;
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(242, 140, 90, 0.1) !important;
}

/* Efecto de gradiente en el formulario */
.contact .php-email-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(242, 140, 90, 0.02) 0%, 
    transparent 50%, 
    rgba(242, 140, 90, 0.01) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Campos de formulario modernos */
.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form input[type=tel],
.contact .php-email-form textarea {
  font-family: 'Glacial Indifference', sans-serif !important;
  padding: 18px 20px !important;
  border: 2px solid #e9ecef !important;
  border-radius: 15px !important;
  font-size: 1rem !important;
  background-color: rgba(248, 249, 250, 0.8) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  z-index: 2 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

/* Placeholders modernos */
.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form input[type=tel]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: #adb5bd !important;
  font-weight: 400 !important;
}

/* Estados focus de campos */
.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form input[type=tel]:focus,
.contact .php-email-form textarea:focus {
  border-color: #f5b041 !important;
  background-color: white !important;
  box-shadow: 0 0 0 3px rgba(242, 140, 90, 0.1) !important;
  transform: translateY(-2px) !important;
  outline: none !important;
}

/* Botón de envío moderno */
.contact .php-email-form button[type=submit] {
  background: linear-gradient(135deg, #f5b041 0%, #ff6b35 100%) !important;
  color: white !important;
  border: none !important;
  padding: 18px 40px !important;
  border-radius: 50px !important;
  font-family: 'Glacial Indifference', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 2 !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 8px 25px rgba(242, 140, 90, 0.3) !important;
}

/* Efecto shimmer en botón */
.contact .php-email-form button[type=submit]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

/* Hover del botón */
.contact .php-email-form button[type=submit]:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 15px 35px rgba(242, 140, 90, 0.4) !important;
  background: linear-gradient(135deg, #ff6b35 0%, #f5b041 100%) !important;
}

.contact .php-email-form button[type=submit]:hover::before {
  left: 100%;
}

/* Google Maps con estilo moderno */
.contact iframe {
  border: none !important;
  width: 100% !important;
  height: 400px !important;
  border-radius: 20px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

.contact iframe:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

/* Estilos para botones */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 140, 90, 0.3);
}

/* Estilos para formularios */
.form-control {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--pierini-coral);
  box-shadow: 0 0 0 0.2rem rgba(242, 140, 90, 0.25);
}

/* Estilos para enlaces sociales */
.social-links a {
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

/* Animaciones suaves */
* {
  transition: all 0.3s ease;
}

/* Fondo general con partículas flotantes */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(242, 140, 90, 0.08) 2px, transparent 2px),
    radial-gradient(circle at 90% 80%, rgba(73, 73, 73, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(242, 140, 90, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 30% 70%, rgba(242, 140, 90, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 70% 30%, rgba(73, 73, 73, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 20% 50%, rgba(242, 140, 90, 0.06) 1px, transparent 1px);
  background-size: 150px 150px, 200px 200px, 100px 100px, 120px 120px, 180px 180px, 80px 80px;
  animation: backgroundFloat 45s linear infinite;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

@keyframes backgroundFloat {
  0% { 
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  25% { 
    transform: translateX(-50px) translateY(-25px) rotate(1deg);
  }
  50% { 
    transform: translateX(-100px) translateY(-50px) rotate(0deg);
  }
  75% { 
    transform: translateX(-150px) translateY(-75px) rotate(-1deg);
  }
  100% { 
    transform: translateX(-200px) translateY(-100px) rotate(0deg);
  }
}

/* Partículas flotantes adicionales más visibles */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(242, 140, 90, 0.15) 3px, transparent 3px),
    radial-gradient(circle at 85% 75%, rgba(73, 73, 73, 0.12) 2px, transparent 2px),
    radial-gradient(circle at 45% 55%, rgba(242, 140, 90, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 75% 15%, rgba(242, 140, 90, 0.08) 2px, transparent 2px),
    radial-gradient(circle at 25% 85%, rgba(73, 73, 73, 0.1) 2px, transparent 2px);
  background-size: 300px 300px, 250px 250px, 200px 200px, 350px 350px, 180px 180px;
  animation: floatingParticles 35s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

@keyframes floatingParticles {
  0%, 100% { 
    transform: translateX(0) translateY(0) scale(1);
    opacity: 0.6;
  }
  33% { 
    transform: translateX(30px) translateY(-20px) scale(1.1);
    opacity: 0.8;
  }
  66% { 
    transform: translateX(-20px) translateY(30px) scale(0.9);
    opacity: 0.4;
  }
}

/* ===========================================
   RESPONSIVE DESIGN - Sistema completo
   =========================================== */

/* Tablet Landscape (1024px) */
@media (max-width: 1024px) {
  .hero h2 {
    font-size: 3rem !important;
  }
  
  .hero p {
    font-size: 1.1rem !important;
  }
  
  .mission-vision .section-title h2,
  .contact .section-title h2 {
    font-size: 2.2rem !important;
  }
  
  .mission-card,
  .vision-card {
    padding: 2.5rem !important;
  }
  
  .service-item {
    padding: 2.5rem 2rem !important;
  }
}

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
  .index-page .header .logo-img,
  .index-page .header .logo img {
    height: 40px !important;
    max-height: none !important;
  }
  
  .hero h2 {
    font-size: 2.5rem !important;
  }
  
  .service-item {
    margin-bottom: 2rem;
  }
  
  /* Footer responsive */
  .footer .logo {
    text-align: center !important;
    margin-bottom: 2rem !important;
  }
  
  .footer .logo img {
    height: 60px !important;
  }
  
  .footer-about,
  .footer-links {
    text-align: left !important;
    margin-bottom: 2rem !important;
  }

  .footer-newsletter {
    text-align: center !important;
    margin-bottom: 2rem !important;
  }
  
  .footer-links h4,
  .footer-newsletter h4 {
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
  }
  
  .footer-links a,
  .footer-newsletter p {
    font-size: 0.9rem !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
  }
  
  .footer-links ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .footer-links ul li {
    margin-bottom: 0.5rem !important;
  }
  
  /* Icon-box responsive */
  .hero .icon-box {
    padding: 2rem !important;
    margin-bottom: 1.5rem;
  }
  
  .hero .icon-box i {
    font-size: 3rem !important;
    margin-bottom: 1rem !important;
  }
  
  .hero .icon-box h3 {
    font-size: 1.1rem !important;
  }
  
  /* Service-item responsive */
  .service-item {
    padding: 2.5rem 2rem !important;
    margin-bottom: 2rem;
  }
  
  .service-item .icon i {
    font-size: 3rem !important;
  }
  
  .service-item h3 {
    font-size: 1.2rem !important;
  }
  
  .service-item .btn {
    padding: 12px 28px !important;
    font-size: 0.9rem !important;
  }
}

/* Mobile Large (576px) */
@media (max-width: 576px) {
  /* Header mobile */
  .index-page .header .logo-img,
  .index-page .header .logo img {
    height: 60px !important;
  }
  
  .navmenu ul li a {
    padding: 5px 10px !important;
    font-size: 14px !important;
  }
  
  .btn-getstarted {
    padding: 6px 16px !important;
    font-size: 0.85rem !important;
  }
  
  /* Hero mobile */
  .hero h2 {
    font-size: 2rem !important;
    line-height: 1.1 !important;
  }
  
  .hero p {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .hero .btn {
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
  }
  
  /* Icon-box mobile */
  .hero .icon-box {
    padding: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .hero .icon-box i {
    font-size: 2.5rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  .hero .icon-box h3 {
    font-size: 1rem !important;
  }
  
  /* About mobile */
  .about h2 {
    font-size: 1.8rem !important;
  }
  
  .about p {
    font-size: 0.9rem !important;
  }
  
  /* Mission & Vision mobile */
  .mission-vision.section {
    padding: 3rem 0 !important;
  }
  
  .mission-vision .section-title h2 {
    font-size: 1.8rem !important;
  }
  
  .mission-card,
  .vision-card {
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .mission-card .card-icon i,
  .vision-card .card-icon i {
    font-size: 2.5rem !important;
  }
  
  .mission-card h3,
  .vision-card h3 {
    font-size: 1.2rem !important;
  }
  
  .mission-card p,
  .vision-card p {
    font-size: 0.9rem !important;
  }
  
  .values-section {
    padding: 1.5rem !important;
  }
  
  .values-section h3 {
    font-size: 1.3rem !important;
  }
  
  .value-item {
    padding: 1rem 0.5rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  .value-item i {
    font-size: 1.8rem !important;
  }
  
  .value-item h4 {
    font-size: 0.95rem !important;
  }
  
  .value-item p {
    font-size: 0.8rem !important;
  }
  
  /* Services mobile */
  .service-item {
    padding: 2rem 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .service-item .icon i {
    font-size: 2.5rem !important;
  }
  
  .service-item h3 {
    font-size: 1.1rem !important;
  }
  
  .service-item p {
    font-size: 0.9rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .service-item .btn {
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
  }
  
  /* Contact mobile */
  .contact.section {
    padding: 3rem 0 !important;
  }
  
  .contact .section-title h2 {
    font-size: 1.8rem !important;
  }
  
  .contact .info-item {
    padding: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .contact .info-item i {
    font-size: 1.3rem !important;
    margin-right: 0.8rem !important;
  }
  
  .contact .php-email-form {
    padding: 1.5rem !important;
  }
  
  .contact .php-email-form input[type=text],
  .contact .php-email-form input[type=email],
  .contact .php-email-form input[type=tel],
  .contact .php-email-form textarea {
    padding: 12px !important;
    font-size: 0.9rem !important;
  }
  
  .contact .php-email-form button[type=submit] {
    padding: 12px 25px !important;
    font-size: 0.9rem !important;
  }
  
  .contact iframe {
    height: 250px !important;
  }
  
  /* Footer mobile */
  .footer .logo {
    text-align: center !important;
    margin-bottom: 1.5rem !important;
  }
  
  .footer .logo img {
    height: 50px !important;
  }
  
  .footer-about,
  .footer-links {
    text-align: left !important;
    margin-bottom: 1.5rem !important;
  }

  .footer-newsletter {
    text-align: center !important;
    margin-bottom: 1.5rem !important;
  }
  
  .footer-links h4,
  .footer-newsletter h4 {
    font-size: 1rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  .footer-links a,
  .footer-newsletter p {
    font-size: 0.85rem !important;
    display: block !important;
    margin-bottom: 0.4rem !important;
  }
  
  .footer-links ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .footer-links ul li {
    margin-bottom: 0.4rem !important;
  }
  
  /* Copyright mobile */
  .copyright {
    padding: 1rem 0 !important;
  }
  
  .copyright p {
    font-size: 0.8rem !important;
  }
  
  .copyright .credits {
    font-size: 0.75rem !important;
  }
  
  .logo-tmdev {
    max-width: 120px !important;
  }
  
  /* Logos responsive */
  .logos-container {
    gap: 2rem !important;
    flex-direction: column !important;
  }
  
  .logo-item {
    margin-bottom: 1rem !important;
  }
  
  .logo-ssn {
    max-width: 150px !important;
  }
  
  /* Footer responsive - nueva estructura */
  .copyright .credits .row {
    flex-direction: column !important;
  }
  
  .copyright .credits .col-md-6 {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 1.5rem !important;
  }
  
  .copyright .credits .col-md-6 .logo-item {
    justify-content: center !important;
  }
  
  /* Centrar logo y redes sociales en móvil */
.footer-about {
  text-align: left !important;
}

.footer-about .logo {
  justify-content: flex-start !important;
  margin-bottom: 1.25rem !important;
}

.footer-about .social-links {
  justify-content: flex-start !important;
  margin-top: 1.5rem !important;
}

.footer-about .social-links a {
  margin-right: 0.5rem !important;
  margin-left: 0 !important;
}
  
  /* Testimonios responsive */
  .testimonials {
    padding: 60px 0 !important;
  }
  
  .testimonial-item {
    padding: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .testimonial-item p {
    font-size: 0.9rem !important;
  }
  
  .profile {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.5rem !important;
  }
  
  .testimonial-img {
    width: 50px !important;
    height: 50px !important;
  }
  
  .testimonial-img-placeholder {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.5rem !important;
  }
  
  .google-badge {
    top: 0.8rem !important;
    right: 0.8rem !important;
    padding: 0.2rem 0.4rem !important;
    font-size: 0.7rem !important;
  }
  
  /* WhatsApp button responsive - Tablet */
  .whatsapp-button {
    width: 55px !important;
    height: 55px !important;
    font-size: 24px !important;
    bottom: 15px !important;
    right: 80px !important; /* Ajustado para evitar solapamiento */
  }
  
  .whatsapp-button::before {
    right: 65px !important;
    font-size: 12px !important;
    padding: 6px 10px !important;
  }
  
  .whatsapp-button::after {
    right: 55px !important;
  }
}

/* Responsive para tablets pequeñas */
@media (min-width: 576px) and (max-width: 767px) {
  .whatsapp-button {
    width: 52px !important;
    height: 52px !important;
    font-size: 23px !important;
    bottom: 14px !important;
    right: 75px !important;
  }
  
  .whatsapp-button::before {
    right: 62px !important;
    font-size: 11px !important;
    padding: 5px 9px !important;
  }
  
  .whatsapp-button::after {
    right: 52px !important;
  }
}

/* Mobile Small (480px) */
@media (max-width: 480px) {
  /* Container padding */
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Header extra small */
  .index-page .header .logo-img,
  .index-page .header .logo img {
    height: 50px !important;
  }
  
  .navmenu ul li a {
    padding: 4px 8px !important;
    font-size: 13px !important;
  }
  
  .btn-getstarted {
    padding: 5px 12px !important;
    font-size: 0.8rem !important;
  }
  
  /* Mobile navigation adjustments for small screens */
  .navmenu {
    width: 280px !important;
  }
  
  .navmenu .nav-content {
    padding: 3.5rem 1.5rem 1.5rem 1.5rem !important;
  }
  
  .mobile-nav-close {
    top: 0.8rem !important;
    right: 0.8rem !important;
    font-size: 1.3rem !important;
    width: 35px !important;
    height: 35px !important;
  }
  
  /* Hero extra small */
  .hero h2 {
    font-size: 1.8rem !important;
  }
  
  .hero p {
    font-size: 0.9rem !important;
  }
  
  .hero .btn {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
  }
  
  /* Icon-box extra small */
  .hero .icon-box {
    padding: 1.2rem !important;
  }
  
  .hero .icon-box i {
    font-size: 2rem !important;
  }
  
  .hero .icon-box h3 {
    font-size: 0.9rem !important;
  }
  
  /* Mission & Vision extra small */
  .mission-vision .section-title h2 {
    font-size: 1.6rem !important;
  }
  
  .mission-card,
  .vision-card {
    padding: 1.2rem !important;
  }
  
  .mission-card .card-icon i,
  .vision-card .card-icon i {
    font-size: 2rem !important;
  }
  
  .mission-card h3,
  .vision-card h3 {
    font-size: 1.1rem !important;
  }
  
  .values-section {
    padding: 1rem !important;
  }
  
  .value-item {
    padding: 0.8rem 0.3rem !important;
  }
  
  .value-item i {
    font-size: 1.5rem !important;
  }
  
  .value-item h4 {
    font-size: 0.9rem !important;
  }
  
  .value-item p {
    font-size: 0.75rem !important;
  }
  
  /* Services extra small */
  .service-item {
    padding: 1.5rem 1rem !important;
  }
  
  .service-item .icon i {
    font-size: 2rem !important;
  }
  
  .service-item h3 {
    font-size: 1rem !important;
  }
  
  .service-item p {
    font-size: 0.85rem !important;
  }
  
  .service-item .btn {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
  }
  
  /* Contact extra small */
  .contact .section-title h2 {
    font-size: 1.6rem !important;
  }
  
  .contact .info-item {
    padding: 1.2rem !important;
  }
  
  .contact .info-item i {
    font-size: 1.2rem !important;
  }
  
  .contact .php-email-form {
    padding: 1.2rem !important;
  }
  
  .contact .php-email-form input[type=text],
  .contact .php-email-form input[type=email],
  .contact .php-email-form input[type=tel],
  .contact .php-email-form textarea {
    padding: 10px !important;
    font-size: 0.85rem !important;
  }
  
  .contact .php-email-form button[type=submit] {
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
  }
  
  .contact iframe {
    height: 200px !important;
  }
  
  /* Footer extra small */
  .footer .logo img {
    height: 45px !important;
  }
  
  .logo-tmdev {
    max-width: 100px !important;
  }
  
  /* Logos extra small */
  .logos-container {
    gap: 1.5rem !important;
  }
  
  .logo-ssn {
    max-width: 80px !important;
  }
  
  /* Footer extra small - nueva estructura */
  .copyright .credits .col-md-6 p {
    font-size: 0.8rem !important;
  }
  
  .copyright .credits .col-md-6 {
    margin-bottom: 1rem !important;
  }
  
  /* Alineación footer: datos y enlaces a la izquierda */
  .footer-about {
    text-align: left !important;
  }
  
  .footer-about .logo {
    justify-content: flex-start !important;
    margin-bottom: 0.8rem !important;
  }
  
  .footer-about .social-links {
    justify-content: center !important;
    margin-top: 1rem !important;
  }
  
  .footer-about .social-links a {
    margin-right: 0.3rem !important;
    margin-left: 0.3rem !important;
  }
  
  /* Testimonios mobile small */
  .testimonials {
    padding: 50px 0 !important;
  }
  
  .testimonial-item {
    padding: 1.2rem !important;
  }
  
  .testimonial-item p {
    font-size: 0.85rem !important;
  }
  
  .stars i {
    font-size: 1rem !important;
  }
  
  .testimonial-img-placeholder {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.3rem !important;
  }
  
  .google-badge {
    top: 0.6rem !important;
    right: 0.6rem !important;
    padding: 0.15rem 0.3rem !important;
    font-size: 0.65rem !important;
  }
  
  /* WhatsApp button mobile small */
  .whatsapp-button {
    width: 50px !important;
    height: 50px !important;
    font-size: 22px !important;
    bottom: 12px !important;
    right: 70px !important; /* Ajustado para evitar solapamiento */
  }
  
  .whatsapp-button::before {
    right: 60px !important;
    font-size: 11px !important;
    padding: 5px 8px !important;
  }
  
  .whatsapp-button::after {
    right: 50px !important;
  }
}

/* Responsive para móviles medianos */
@media (min-width: 400px) and (max-width: 479px) {
  .whatsapp-button {
    width: 48px !important;
    height: 48px !important;
    font-size: 21px !important;
    bottom: 11px !important;
    right: 65px !important;
  }
  
  .whatsapp-button::before {
    right: 58px !important;
    font-size: 10px !important;
    padding: 4px 7px !important;
  }
  
  .whatsapp-button::after {
    right: 48px !important;
  }
}

/* Mobile Extra Small (360px) */
@media (max-width: 360px) {
  /* Container ultra small */
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  /* Header ultra small */
  .index-page .header .logo-img,
  .index-page .header .logo img {
    height: 45px !important;
  }
  
  .navmenu ul li a {
    padding: 3px 6px !important;
    font-size: 12px !important;
  }
  
  .btn-getstarted {
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
  }
  
  /* Hero ultra small */
  .hero h2 {
    font-size: 1.6rem !important;
  }
  
  .hero p {
    font-size: 0.85rem !important;
  }
  
  .hero .btn {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
  }
  
  /* Icon-box ultra small */
  .hero .icon-box {
    padding: 1rem !important;
  }
  
  .hero .icon-box i {
    font-size: 1.8rem !important;
  }
  
  .hero .icon-box h3 {
    font-size: 0.85rem !important;
  }
  
  /* Mission & Vision ultra small */
  .mission-vision .section-title h2 {
    font-size: 1.4rem !important;
  }
  
  .mission-card,
  .vision-card {
    padding: 1rem !important;
  }
  
  .mission-card .card-icon i,
  .vision-card .card-icon i {
    font-size: 1.8rem !important;
  }
  
  .mission-card h3,
  .vision-card h3 {
    font-size: 1rem !important;
  }
  
  .mission-card p,
  .vision-card p {
    font-size: 0.8rem !important;
  }
  
  .values-section {
    padding: 0.8rem !important;
  }
  
  .value-item {
    padding: 0.6rem 0.2rem !important;
  }
  
  .value-item i {
    font-size: 1.3rem !important;
  }
  
  .value-item h4 {
    font-size: 0.85rem !important;
  }
  
  .value-item p {
    font-size: 0.7rem !important;
  }
  
  /* Services ultra small */
  .service-item {
    padding: 1.2rem 0.8rem !important;
  }
  
  .service-item .icon i {
    font-size: 1.8rem !important;
  }
  
  .service-item h3 {
    font-size: 0.95rem !important;
  }
  
  .service-item p {
    font-size: 0.8rem !important;
  }
  
  .service-item .btn {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
  }
  
  /* Contact ultra small */
  .contact .section-title h2 {
    font-size: 1.4rem !important;
  }
  
  .contact .info-item {
    padding: 1rem !important;
  }
  
  .contact .info-item i {
    font-size: 1.1rem !important;
  }
  
  .contact .php-email-form {
    padding: 1rem !important;
  }
  
  .contact .php-email-form input[type=text],
  .contact .php-email-form input[type=email],
  .contact .php-email-form input[type=tel],
  .contact .php-email-form textarea {
    padding: 8px !important;
    font-size: 0.8rem !important;
  }
  
  .contact .php-email-form button[type=submit] {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
  }
  
  .contact iframe {
    height: 180px !important;
  }
  
  /* Footer ultra small */
  .footer .logo img {
    height: 40px !important;
  }
  
  .logo-tmdev {
    max-width: 80px !important;
  }
  
  /* Logos ultra small */
  .logos-container {
    gap: 1rem !important;
  }
  
  .logo-ssn {
    max-width: 70px !important;
  }
  
  /* Footer ultra small - nueva estructura */
  .copyright .credits .col-md-6 p {
    font-size: 0.75rem !important;
  }
  
  .copyright .credits .col-md-6 {
    margin-bottom: 0.8rem !important;
  }
  
  .footer-about {
    text-align: left !important;
  }
  
  .footer-about .logo {
    justify-content: flex-start !important;
    margin-bottom: 0.5rem !important;
  }
  
  .footer-about .social-links {
    justify-content: center !important;
    margin-top: 0.8rem !important;
  }
  
  .footer-about .social-links a {
    margin-right: 0.2rem !important;
    margin-left: 0.2rem !important;
  }
  
  /* Testimonios mobile extra small */
  .testimonials {
    padding: 40px 0 !important;
  }
  
  .testimonial-item {
    padding: 1rem !important;
  }
  
  .testimonial-item p {
    font-size: 0.8rem !important;
  }
  
  .stars i {
    font-size: 0.9rem !important;
  }
  
  .testimonial-img {
    width: 40px !important;
    height: 40px !important;
  }
  
  .testimonial-img-placeholder {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.2rem !important;
  }
  
  .google-badge {
    top: 0.5rem !important;
    right: 0.5rem !important;
    padding: 0.1rem 0.25rem !important;
    font-size: 0.6rem !important;
  }
  
  /* WhatsApp button mobile extra small */
  .whatsapp-button {
    width: 45px !important;
    height: 45px !important;
    font-size: 20px !important;
    bottom: 10px !important;
    right: 60px !important; /* Ajustado para evitar solapamiento */
  }
  
  .whatsapp-button::before {
    right: 55px !important;
    font-size: 10px !important;
    padding: 4px 6px !important;
  }
  
  .whatsapp-button::after {
    right: 45px !important;
  }
}

/* Responsive para móviles muy pequeños */
@media (max-width: 320px) {
  .whatsapp-button {
    width: 42px !important;
    height: 42px !important;
    font-size: 18px !important;
    bottom: 8px !important;
    right: 55px !important;
  }
  
  .whatsapp-button::before {
    right: 52px !important;
    font-size: 9px !important;
    padding: 3px 5px !important;
  }
  
  .whatsapp-button::after {
    right: 42px !important;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 2rem 0 !important;
  }
  
  /* WhatsApp button landscape */
  .whatsapp-button {
    bottom: 10px !important;
    right: 70px !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 22px !important;
  }
  
  .whatsapp-button::before {
    right: 60px !important;
    font-size: 11px !important;
    padding: 4px 8px !important;
  }
  
  .whatsapp-button::after {
    right: 50px !important;
  }
}
  
  .hero h2 {
    font-size: 1.8rem !important;
  }
  
  .hero p {
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
  }
  
  .mission-vision.section,
  .contact.section {
    padding: 2rem 0 !important;
  }
  
  .mission-card,
  .vision-card {
    padding: 1.5rem !important;
  }
  
  .service-item {
    padding: 1.5rem !important;
  }

/* Desktop Navigation Styles - Medium screens */
@media (min-width: 992px) and (max-width: 1199px) {
  /* Hide mobile navigation elements */
  .mobile-nav-toggle {
    display: none !important;
  }
  
  .mobile-nav-close {
    display: none !important;
  }
  
  .mobile-nav-overlay {
    display: none !important;
  }
  
  .navmenu .nav-content {
    display: none !important;
  }
  
  /* Ensure desktop navigation is visible and properly styled */
  .navmenu {
    display: block !important;
    position: static !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    height: auto !important;
    width: auto !important;
    right: auto !important;
    top: auto !important;
    flex-direction: row !important;
    z-index: auto !important;
  }
  
  .navmenu ul {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    position: static !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }
  
  .navmenu ul li {
    margin: 0 !important;
    position: relative !important;
  }
  
  .navmenu ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 12px !important;
    font-family: 'Glacial Indifference', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #0b1f3b !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }
  
  .navmenu ul li a:hover,
  .navmenu ul li a.active {
    color: #f5b041 !important;
    background: rgba(242, 140, 90, 0.1) !important;
    transform: translateY(-2px) !important;
  }
}

/* Desktop Navigation Styles - Large screens */
@media (min-width: 1200px) {
  /* Hide mobile navigation elements */
  .mobile-nav-toggle {
    display: none !important;
  }
  
  .mobile-nav-close {
    display: none !important;
  }
  
  .mobile-nav-overlay {
    display: none !important;
  }
  
  .navmenu .nav-content {
    display: none !important;
  }
  
  /* Ensure desktop navigation is visible and properly styled */
  .navmenu {
    display: block !important;
    position: static !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    height: auto !important;
    width: auto !important;
    right: auto !important;
    top: auto !important;
    flex-direction: row !important;
    z-index: auto !important;
  }
  
  .navmenu ul {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    position: static !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }
  
  .navmenu ul li {
    margin: 0 !important;
    position: relative !important;
  }
  
  .navmenu ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    font-family: 'Glacial Indifference', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #0b1f3b !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
  }
  
  .navmenu ul li a:hover,
  .navmenu ul li a.active {
    color: #f5b041 !important;
    background: rgba(242, 140, 90, 0.1) !important;
    transform: translateY(-2px) !important;
  }
}

/* ===========================================
   MOBILE NAVIGATION - Sistema Completamente Nuevo
   =========================================== */

/* Botón Hamburguesa - Siempre visible en móviles */
@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #0b1f3b !important;
    font-size: 1.5rem !important;
    transition: all 0.3s ease !important;
    z-index: 10001 !important;
    position: relative !important;
    cursor: pointer !important;
    margin-left: 1rem !important;
    padding: 0.5rem !important;
    border-radius: 50% !important;
    background: rgba(242, 140, 90, 0.1) !important;
    border: none !important;
    outline: none !important;
  }
  
  .mobile-nav-toggle:hover {
    color: #f5b041 !important;
    transform: scale(1.1) !important;
    background: rgba(242, 140, 90, 0.2) !important;
  }
  
  .mobile-nav-toggle:focus {
    outline: 2px solid #f5b041 !important;
    outline-offset: 2px !important;
  }
}

/* Menú del template (.navmenu): no usamos en Pierini, ocultar siempre en móvil para evitar barra blanca */
@media (max-width: 991px) {
  .index-page .navmenu,
  .header .navmenu {
    display: none !important;
    visibility: hidden !important;
    position: fixed !important;
    left: -9999px !important;
    right: auto !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Menú Móvil del template - desactivado (usamos #mobileMenu) */
@media (max-width: 991px) {
  .navmenu:not(.mobile-nav-active) {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 300px !important;
    height: 100vh !important;
    background: white !important;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1) !important;
    transition: right 0.3s ease !important;
    z-index: 10000 !important;
    padding: 0 !important;
    display: none !important;
    visibility: hidden !important;
    overflow: hidden !important;
  }
  
  /* Ocultar navegación desktop en móviles */
  .navmenu ul {
    display: none !important;
  }
  
  /* Estado activo del menú móvil */
  .navmenu.mobile-nav-active {
    right: 0 !important;
  }
  
  /* Mostrar navegación cuando está activa */
  .navmenu.mobile-nav-active ul {
    display: flex !important;
    flex-direction: column !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
    position: static !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    height: auto !important;
    width: 100% !important;
  }
  
  .navmenu.mobile-nav-active ul li {
    margin: 0 !important;
    position: relative !important;
    border-bottom: 1px solid #f0f0f0 !important;
    width: 100% !important;
  }
  
  .navmenu.mobile-nav-active ul li:last-child {
    border-bottom: none !important;
  }
  
  .navmenu.mobile-nav-active ul li a {
    font-family: 'Glacial Indifference', sans-serif !important;
    font-weight: 500 !important;
    color: var(--pierini-dark) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    padding: 1rem 2rem !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    white-space: nowrap !important;
    font-size: 16px !important;
    background: none !important;
    text-decoration: none !important;
    width: 100% !important;
    cursor: pointer !important;
    z-index: 10002 !important;
    pointer-events: auto !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
  }
  
  .navmenu.mobile-nav-active ul li a:hover,
  .navmenu.mobile-nav-active ul li a.active {
    color: var(--pierini-coral) !important;
    background: rgba(242, 140, 90, 0.1) !important;
    transform: none !important;
  }
  
  .navmenu.mobile-nav-active ul li a:focus {
    outline: 2px solid #f5b041 !important;
    outline-offset: -2px !important;
  }
}

/* Botón de Cerrar */
@media (max-width: 991px) {
  .mobile-nav-close {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    font-size: 1.5rem !important;
    color: #0b1f3b !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 10003 !important;
    background: none !important;
    border: none !important;
    padding: 0.5rem !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    outline: none !important;
  }
  
  .mobile-nav-close:hover {
    color: #f5b041 !important;
    transform: scale(1.1) !important;
    background: rgba(242, 140, 90, 0.1) !important;
  }
  
  .mobile-nav-close:focus {
    outline: 2px solid #f5b041 !important;
    outline-offset: 2px !important;
  }
  
  /* Mostrar botón de cerrar solo cuando el menú está activo */
  .navmenu.mobile-nav-active .mobile-nav-close {
    display: flex !important;
  }
}

/* Overlay del Menú Móvil */
@media (max-width: 991px) {
  .mobile-nav-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important;
  }
  
  .mobile-nav-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* Bloquear scroll del body cuando el menú está abierto */
@media (max-width: 991px) {
  body.mobile-nav-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
  }
}

/* Mejoras específicas para dispositivos táctiles */
@media (max-width: 991px) {
  /* Asegurar que todos los elementos del menú sean clickeables */
  .navmenu.mobile-nav-active ul li {
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
  
  .navmenu.mobile-nav-active ul li a {
    min-height: 44px !important; /* Tamaño mínimo recomendado para touch */
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  
  /* Mejorar el área de toque */
  .navmenu.mobile-nav-active ul li a::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: -1 !important;
  }
  
  /* Asegurar que el botón de cerrar sea clickeable */
  .mobile-nav-close {
    min-width: 44px !important;
    min-height: 44px !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
  
  /* Asegurar que el toggle sea clickeable */
  .mobile-nav-toggle {
    min-width: 44px !important;
    min-height: 44px !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
}
  
  /* Navigation content */
  .navmenu .nav-content {
    padding: 4rem 2rem 2rem 2rem !important;
    flex: 1 !important;
    overflow-y: auto !important;
  }
  
  /* Mobile navigation list */
  .navmenu ul {
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    display: block !important;
  }
  
  .navmenu ul li {
    margin: 0 0 1rem 0 !important;
  }
  
  .navmenu ul li a {
    padding: 12px 16px !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    display: block !important;
    color: #0b1f3b !important;
    text-decoration: none !important;
    font-family: 'Glacial Indifference', sans-serif !important;
    font-weight: 500 !important;
  }
  
  .navmenu ul li a:hover,
  .navmenu ul li a.active {
    background: rgba(242, 140, 90, 0.1) !important;
    color: #f5b041 !important;
    transform: translateX(5px) !important;
  }
  
  /* Mobile menu overlay */
  .mobile-nav-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
  }
  
  .mobile-nav-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
  }

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .hero .icon-box:hover,
  .service-item:hover,
  .mission-card:hover,
  .vision-card:hover,
  .value-item:hover,
  .contact .info-item:hover {
    transform: none !important;
  }
  
  /* Increase touch targets */
  .btn,
  .btn-getstarted,
  .service-item .btn,
  .contact .php-email-form button[type=submit] {
    min-height: 44px !important;
    min-width: 44px !important;
  }
  
  .navmenu ul li a {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }
  
  /* Improve form inputs for touch */
  .contact .php-email-form input[type=text],
  .contact .php-email-form input[type=email],
  .contact .php-email-form input[type=tel],
  .contact .php-email-form textarea {
    min-height: 44px !important;
  }
}

/* Additional mobile optimizations */
@media (max-width: 991px) {
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden !important;
  }
  
  /* Mobile menu body lock */
  body.mobile-nav-open {
    overflow: hidden !important;
  }
  
  /* Improve mobile header */
  .header {
    padding: 0.5rem 0 !important;
  }
  
  /* Mobile logo adjustments */
  .header .logo {
    flex: 1 !important;
  }
  
  /* Mobile CTA button */
  .btn-getstarted {
    margin-left: 1rem !important;
  }
  
  /* Ensure mobile nav toggle is visible */
  .mobile-nav-toggle {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10001 !important;
    cursor: pointer !important;
    color: #0b1f3b !important;
    font-size: 1.5rem !important;
    transition: all 0.3s ease !important;
  }
  
  .mobile-nav-toggle:hover {
    color: #f5b041 !important;
    transform: scale(1.1) !important;
  }
  
  /* Ensure proper stacking */
  .header {
    position: relative !important;
    z-index: 1000 !important;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp images on retina displays */
  .logo-img,
  .footer .logo img,
  .logo-tmdev {
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
  }
}

/* Print styles */
@media print {
  .header,
  .mobile-nav-toggle,
  .btn-getstarted,
  .contact .php-email-form,
  .footer {
    display: none !important;
  }
  
  .hero,
  .about,
  .mission-vision,
  .services,
  .contact {
    page-break-inside: avoid !important;
  }
  
  body {
    font-size: 12pt !important;
    line-height: 1.4 !important;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid !important;
  }
}

/* ===========================================
   MISSION & VISION SECTION - Nueva sección
   =========================================== */

/* Sección de Misión y Visión */
.mission-vision.section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  padding: 6rem 0 !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Efecto de partículas sutiles en el fondo */
.mission-vision.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(242, 140, 90, 0.05) 2px, transparent 2px),
    radial-gradient(circle at 80% 80%, rgba(73, 73, 73, 0.03) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px;
  animation: missionParticles 30s linear infinite;
  pointer-events: none;
  opacity: 0.6;
}

@keyframes missionParticles {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-100px) translateY(-100px); }
}

/* Título de la sección */
.mission-vision .section-title h2 {
  font-family: 'Glacial Indifference', sans-serif !important;
  font-weight: 300 !important;
  color: #0b1f3b !important;
  margin-bottom: 1rem !important;
  font-size: 2.5rem !important;
  position: relative !important;
  z-index: 2 !important;
}

.mission-vision .section-title p {
  font-family: 'Glacial Indifference', sans-serif !important;
  color: #1e4b86 !important;
  font-size: 1.1rem !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Tarjetas de Misión y Visión */
.mission-card,
.vision-card {
  background: white !important;
  padding: 3rem !important;
  border-radius: 25px !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08) !important;
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(242, 140, 90, 0.1) !important;
  height: 100% !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Efecto de gradiente en las tarjetas */
.mission-card::before,
.vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(242, 140, 90, 0.02) 0%, 
    transparent 50%, 
    rgba(242, 140, 90, 0.01) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Iconos de las tarjetas */
.mission-card .card-icon,
.vision-card .card-icon {
  margin-bottom: 2rem !important;
  position: relative !important;
  z-index: 2 !important;
}

.mission-card .card-icon i,
.vision-card .card-icon i {
  font-size: 3.5rem !important;
  color: #f5b041 !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: block !important;
  position: relative !important;
}

/* Efecto de pulso en los iconos */
.mission-card .card-icon i::before,
.vision-card .card-icon i::before {
  animation: missionIconPulse 4s ease-in-out infinite;
}

@keyframes missionIconPulse {
  0%, 100% { 
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(242, 140, 90, 0));
  }
  50% { 
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(242, 140, 90, 0.2));
  }
}

/* Contenido de las tarjetas */
.mission-card .card-content,
.vision-card .card-content {
  position: relative !important;
  z-index: 2 !important;
}

.mission-card h3,
.vision-card h3 {
  font-family: 'Glacial Indifference', sans-serif !important;
  font-weight: 600 !important;
  color: #0b1f3b !important;
  margin-bottom: 1.5rem !important;
  font-size: 1.5rem !important;
}

.mission-card p,
.vision-card p {
  font-family: 'Glacial Indifference', sans-serif !important;
  color: #1e4b86 !important;
  margin-bottom: 2rem !important;
  line-height: 1.6 !important;
  font-size: 1rem !important;
}

/* Listas de puntos */
.mission-points,
.vision-points {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mission-points li,
.vision-points li {
  margin-bottom: 1rem !important;
  font-family: 'Glacial Indifference', sans-serif !important;
  color: #0b1f3b !important;
  font-size: 0.95rem !important;
  display: flex !important;
  align-items: flex-start !important;
}

.mission-points li i,
.vision-points li i {
  color: #f5b041 !important;
  margin-right: 0.8rem !important;
  margin-top: 0.2rem !important;
  font-size: 1rem !important;
  flex-shrink: 0 !important;
}

/* Efectos hover para las tarjetas */
.mission-card:hover,
.vision-card:hover {
  transform: translateY(-10px) scale(1.02) !important;
  box-shadow: 0 25px 60px rgba(242, 140, 90, 0.15) !important;
  border-color: rgba(242, 140, 90, 0.3) !important;
}

.mission-card:hover .card-icon i,
.vision-card:hover .card-icon i {
  transform: scale(1.15) rotate(8deg) !important;
  color: #ff6b35 !important;
  filter: drop-shadow(0 0 20px rgba(242, 140, 90, 0.4)) !important;
}

/* Sección de Valores */
.values-section {
  background: white !important;
  padding: 3rem !important;
  border-radius: 25px !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08) !important;
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(242, 140, 90, 0.1) !important;
}

.values-section h3 {
  font-family: 'Glacial Indifference', sans-serif !important;
  font-weight: 300 !important;
  color: #0b1f3b !important;
  font-size: 2rem !important;
  margin-bottom: 2rem !important;
}

/* Items de valores */
.value-item {
  text-align: center !important;
  padding: 2rem 1rem !important;
  transition: all 0.3s ease !important;
  border-radius: 15px !important;
}

.value-item i {
  font-size: 2.5rem !important;
  color: #f5b041 !important;
  margin-bottom: 1rem !important;
  display: block !important;
  transition: all 0.3s ease !important;
}

.value-item h4 {
  font-family: 'Glacial Indifference', sans-serif !important;
  font-weight: 600 !important;
  color: #0b1f3b !important;
  margin-bottom: 1rem !important;
  font-size: 1.1rem !important;
}

.value-item p {
  font-family: 'Glacial Indifference', sans-serif !important;
  color: #1e4b86 !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* Efectos hover para valores */
.value-item:hover {
  transform: translateY(-5px) !important;
  background: rgba(242, 140, 90, 0.05) !important;
}

.value-item:hover i {
  transform: scale(1.1) !important;
  color: #ff6b35 !important;
}

/* Estilos para el scroll top */
.scroll-top {
  right: auto;
  left: 15px;
  background-color: var(--pierini-coral);
  color: white;
  transition: all 0.3s ease;
}

.scroll-top:hover {
  background-color: var(--pierini-dark);
  transform: translateY(-2px);
}

/* Estilos para el preloader */
#preloader {
  background-color: var(--pierini-coral);
}

/* Mejoras para accesibilidad */
.btn:focus,
.form-control:focus,
.navmenu ul li a:focus {
  outline: 2px solid var(--pierini-coral);
  outline-offset: 2px;
}

/* Estilos para el mapa */
iframe {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos para las tarjetas de información de contacto */
.info-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Estilos para el footer con gradiente animado - Sobrescribir main.css */
.footer {
  background: linear-gradient(135deg, var(--pierini-dark) 0%, var(--pierini-medium) 100%) !important;
  color: white !important;
  font-size: 14px !important;
  position: relative !important;
  overflow: hidden !important;
}

.footer-top {
  padding: 3rem 0 2.5rem !important;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(30, 139, 255, 0.1) 0%, 
    transparent 25%, 
    transparent 75%, 
    rgba(30, 139, 255, 0.05) 100%);
  animation: footerGradient 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes footerGradient {
  0%, 100% { 
    transform: translateX(0) scale(1);
    opacity: 0.3;
  }
  50% { 
    transform: translateX(20px) scale(1.1);
    opacity: 0.6;
  }
}

.footer a:hover {
  color: var(--pierini-celeste, #1e8bff) !important;
}

/* Logo del footer mejorado */
.footer .logo {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 1.5rem !important;
}

.footer .logo img {
  height: 100px !important;
  width: auto !important;
  max-height: none !important;
  transition: all 0.3s ease !important;
  filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)) !important;
}

.footer .logo:hover img {
  transform: scale(1.05) !important;
  filter: brightness(0) invert(1) drop-shadow(0 6px 12px rgba(30, 139, 255, 0.3)) !important;
}

/* Estilos para el contenido del footer */
.footer-contact p {
  font-family: 'Glacial Indifference', sans-serif !important;
  color: white !important;
  margin-bottom: 0.35rem !important;
  line-height: 1.35 !important;
}

.footer-links h4 {
  font-family: 'Glacial Indifference', sans-serif !important;
  font-weight: 600 !important;
  color: white !important;
  margin-bottom: 0.85rem !important;
}

.footer-links ul {
  list-style: none !important;
  padding: 0 !important;
}

.footer-links li {
  margin-bottom: 0.45rem !important;
  line-height: 1.35 !important;
}

.footer-links a {
  color: white !important;
  text-decoration: none !important;
  font-family: 'Glacial Indifference', sans-serif !important;
  transition: color 0.3s ease !important;
}

.footer-links a:hover {
  color: #1e8bff !important;
}

.footer-links i {
  color: #1e8bff !important;
  margin-right: 0.5rem !important;
}

.footer-newsletter h4 {
  font-family: 'Glacial Indifference', sans-serif !important;
  font-weight: 600 !important;
  color: white !important;
  margin-bottom: 1.5rem !important;
}

.footer-newsletter p {
  font-family: 'Glacial Indifference', sans-serif !important;
  color: white !important;
  margin-bottom: 2rem !important;
}

/* Botón CTA del footer (estilo referencia) */
.btn-footer-cta {
  background-color: #1e8bff !important;
  border: none !important;
  color: white !important;
  font-family: 'Glacial Indifference', sans-serif !important;
  font-weight: 600 !important;
  padding: 12px 30px !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.btn-footer-cta:hover {
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(30, 139, 255, 0.4) !important;
}

/* Iconos sociales del footer (círculos como en la referencia) */
.footer-social-link {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 1rem !important;
  text-decoration: none !important;
  transition: transform 0.3s ease !important;
  color: white !important;
}
.footer-social-wa {
  background-color: #25D366 !important;
}
.footer-about .social-links a:hover {
  transform: scale(1.1) !important;
  color: white !important;
}

/* Footer: datos y columnas de enlaces alineados a la izquierda (misma columna visual) */
.footer-about {
  text-align: left !important;
}

.footer-about .logo {
  justify-content: flex-start !important;
}

.footer-about .footer-contact {
  text-align: left !important;
}

.footer-top .footer-links {
  text-align: left !important;
}

/* Estilos para el copyright - banda sólida más oscura (como referencia Genova) */
.footer .copyright {
  background: #0a1628 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 2rem 0 !important;
  position: relative !important;
  overflow: hidden !important;
}

.copyright {
  background: #0a1628 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 2rem 0 !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Estilos para párrafos del copyright - Sobrescribir main.css */
.footer .copyright p {
  margin-bottom: 1rem !important;
  font-family: 'Glacial Indifference', sans-serif !important;
  color: white !important;
  font-size: 1rem !important;
  position: relative !important;
  z-index: 2 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.copyright p {
  font-family: 'Glacial Indifference', sans-serif !important;
  color: white !important;
  margin-bottom: 1rem !important;
  font-size: 1rem !important;
  position: relative !important;
  z-index: 2 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.copyright .sitename {
  color: #1e8bff !important;
  font-weight: 600 !important;
}

/* Estilos para credits - Sobrescribir main.css */
.footer .credits {
  margin-top: 0 !important;
  font-size: 0.9rem !important;
  font-family: 'Glacial Indifference', sans-serif !important;
  color: white !important;
}

.copyright .credits {
  font-family: 'Glacial Indifference', sans-serif !important;
  color: white !important;
  font-size: 0.9rem !important;
  margin-top: 0 !important;
}

.copyright .credits p {
  margin: 0 !important;
  line-height: 1.5 !important;
}

.copyright .credits p:first-child {
  font-weight: 500 !important;
  margin-bottom: 0.5rem !important;
}

/* Copyright: bloque centrado como en referencia */
.copyright .credits {
  max-width: 640px;
  margin: 0 auto;
}
.copyright .credits-legal {
  font-size: 0.95rem !important;
  color: rgba(255, 255, 255, 0.95) !important;
}
.copyright .copyright-line {
  font-size: 1rem !important;
}

/* Banda inferior de copyright separada del footer y a todo ancho */
.footer .copyright,
.copyright {
  background: #081021 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  margin-top: 1.5rem !important;
  width: 100% !important;
}
.copyright .logos-container {
  margin-top: 0.75rem;
}
.copyright .logos-container p {
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Contenedor copyright */
.container.copyright {
  padding: 2rem 1rem !important;
}

.creditos {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Logo TMDev en footer: blanco sobre fondo oscuro (como en referencia) */
.copyright .logo-tmdev,
.footer .logo-tmdev {
  display: block !important;
  width: auto !important;
  max-width: 180px !important;
  height: auto !important;
  margin: 0 auto !important;
  transition: opacity 0.3s ease !important;
  filter: brightness(0) invert(1) !important;
  opacity: 0.9 !important;
}
.copyright .logo-tmdev:hover,
.footer .logo-tmdev:hover {
  opacity: 1 !important;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.25)) !important;
}
.logo-tmdev {
  max-width: 200px !important;
  filter: brightness(0) invert(1) !important;
  opacity: 0.85 !important;
}

/* Contenedor de logos en copyright (centrado, apilado) */
.copyright .logos-container {
  display: block !important;
  text-align: center !important;
  margin-top: 0.75rem !important;
}
.logos-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 3rem !important;
  margin-top: 1rem !important;
  flex-wrap: wrap !important;
}

.logo-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.logo-item p {
  font-family: 'Glacial Indifference', sans-serif !important;
  color: white !important;
  font-size: 0.9rem !important;
  margin-bottom: 0.5rem !important;
  opacity: 0.8 !important;
}

/* Estilos para la nueva estructura del copyright con Bootstrap grid */
.copyright .credits {
  margin-bottom: 1.5rem !important;
}

.copyright .credits .row {
  align-items: center !important;
}

.copyright .credits .col-md-6 {
  margin-bottom: 1rem !important;
}

.copyright .credits .col-md-6 p {
  font-family: 'Glacial Indifference', sans-serif !important;
  color: white !important;
  font-size: 0.9rem !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.4 !important;
}

.copyright .credits .col-md-6 .logo-item {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  height: 100% !important;
}

/* Logo SSN Argentina */
.logo-ssn {
  width: 100% !important;
  max-width: 200px !important;
  height: auto !important;
  transition: all 0.3s ease !important;
  filter: brightness(0) invert(1) !important;
  opacity: 0.7 !important;
}

.logo-ssn:hover {
  transform: scale(1.05) !important;
  opacity: 1 !important;
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)) !important;
}

/* Mejoras para el contraste */
.text-muted {
  color: var(--pierini-medium) !important;
}

/* TESTIMONIOS - Estilos personalizados */
.testimonials {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(242, 140, 90, 0.05) 0%, 
    transparent 25%, 
    transparent 75%, 
    rgba(242, 140, 90, 0.03) 100%);
  animation: testimonialsGradient 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes testimonialsGradient {
  0%, 100% { 
    transform: translateX(0) scale(1);
    opacity: 0.3;
  }
  50% { 
    transform: translateX(10px) scale(1.05);
    opacity: 0.6;
  }
}

.testimonial-item {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.testimonial-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pierini-coral), var(--pierini-dark));
}

.testimonial-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stars {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.2rem;
}

.stars i {
  color: #ffc107;
  font-size: 1.2rem;
}

.testimonial-item p {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #495057;
  margin-bottom: 1.5rem;
  font-style: italic;
  flex-grow: 1;
}

.testimonial-item p::before {
  content: '"';
  font-size: 2rem;
  color: var(--pierini-coral);
  font-weight: bold;
  margin-right: 0.5rem;
}

.testimonial-item p::after {
  content: '"';
  font-size: 2rem;
  color: var(--pierini-coral);
  font-weight: bold;
  margin-left: 0.5rem;
}

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

.testimonial-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--pierini-coral);
}

.profile h3 {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pierini-dark);
  margin: 0;
}

.profile h4 {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 0.9rem;
  color: var(--pierini-coral);
  margin: 0;
  font-weight: 500;
}

/* Estilos específicos para testimonios de Google */
.google-testimonial {
  position: relative;
}

.google-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #4285f4;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-family: 'Glacial Indifference', sans-serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 2;
}

.google-badge i {
  font-size: 0.9rem;
}

.testimonial-img-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pierini-coral), var(--pierini-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  border: 3px solid var(--pierini-coral);
}

.profile-info {
  flex: 1;
}

.profile-info h3 {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pierini-dark);
  margin: 0;
}

.profile-info h4 {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 0.9rem;
  color: var(--pierini-coral);
  margin: 0;
  font-weight: 500;
}

/* ===========================================
   COMPANIES SECTION - Compañías de Seguros
   =========================================== */

.companies {
  position: relative;
  overflow: hidden;
}

.companies .swiper {
  padding: 2rem 0 4rem;
  overflow: visible;
}

.companies .swiper-wrapper {
  align-items: center;
}

.companies .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
}

/* Contenedor del logo */
.company-logo {
  width: 100%;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.company-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(242, 140, 90, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.company-logo:hover::before {
  left: 100%;
}

.company-logo img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto de iluminación en hover */
.company-logo:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(242, 140, 90, 0.25),
              0 0 30px rgba(242, 140, 90, 0.15);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.company-logo:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

/* Botones de navegación del Swiper */
.companies .swiper-button-next,
.companies .swiper-button-prev {
  color: var(--pierini-coral);
  background: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.companies .swiper-button-next::after,
.companies .swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

.companies .swiper-button-next:hover,
.companies .swiper-button-prev:hover {
  background: var(--pierini-coral);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(242, 140, 90, 0.3);
}

/* Paginación del Swiper */
.companies .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #d0d0d0;
  opacity: 1;
  transition: all 0.3s ease;
}

.companies .swiper-pagination-bullet-active {
  background: var(--pierini-coral);
  width: 30px;
  border-radius: 6px;
  transform: scale(1.2);
}

/* Responsive para compañías */
@media (max-width: 768px) {
  .company-logo {
    height: 100px;
    padding: 1rem;
  }
  
  .company-logo img {
    max-height: 60px;
  }
  
  .companies .swiper-button-next,
  .companies .swiper-button-prev {
    width: 35px;
    height: 35px;
  }
  
  .companies .swiper-button-next::after,
  .companies .swiper-button-prev::after {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .company-logo {
    height: 90px;
    padding: 0.8rem;
  }
  
  .company-logo img {
    max-height: 50px;
  }
  
  .companies .swiper-button-next,
  .companies .swiper-button-prev {
    display: none;
  }
}

/* Estilos para el header de Google Reviews */
.google-reviews-header {
  margin-bottom: 1rem;
}

.google-reviews-header h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.google-reviews-header .btn {
  border: 2px solid #4285f4;
  color: #4285f4;
  transition: all 0.3s ease;
}

.google-reviews-header .btn:hover {
  background: #4285f4;
  color: white;
  transform: translateY(-2px);
}

/* Estilos para los íconos */
.bi {
  transition: color 0.3s ease;
}

/* BOTÓN DE WHATSAPP FLOTANTE */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 90px; /* Movido a la izquierda para evitar solapamiento con scroll-top */
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 28px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: whatsappPulse 2s infinite;
}

/* Responsive para pantallas grandes */
@media (min-width: 1400px) {
  .whatsapp-button {
    right: 100px;
    width: 65px;
    height: 65px;
    font-size: 30px;
  }
}

/* Responsive para pantallas medianas-grandes */
@media (min-width: 1200px) and (max-width: 1399px) {
  .whatsapp-button {
    right: 95px;
    width: 62px;
    height: 62px;
    font-size: 29px;
  }
}

/* Responsive para pantallas medianas */
@media (min-width: 992px) and (max-width: 1199px) {
  .whatsapp-button {
    right: 85px;
    width: 58px;
    height: 58px;
    font-size: 26px;
  }
}

.whatsapp-button:hover {
  background: #128C7E;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-button i {
  transition: transform 0.3s ease;
}

.whatsapp-button:hover i {
  transform: scale(1.1);
}

/* Animación de pulso para WhatsApp */
@keyframes whatsappPulse {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
}

/* Tooltip para WhatsApp */
.whatsapp-button::before {
  content: 'Contactar por WhatsApp';
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Glacial Indifference', sans-serif;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.whatsapp-button::after {
  content: '';
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.whatsapp-button:hover::before,
.whatsapp-button:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Estilos para las animaciones AOS */
[data-aos] {
  transition-duration: 0.8s;
}

/* Estilos para el modo oscuro (opcional). El formulario de contacto se fuerza a tema claro más abajo. */
@media (prefers-color-scheme: dark) {
  .service-item,
  .info-item,
  .php-email-form {
    background-color: #2d2d2d;
    color: white;
  }
  
  .form-control {
    background-color: #3d3d3d;
    border-color: #555;
    color: white;
  }
  
  .form-control:focus {
    background-color: #3d3d3d;
    border-color: var(--pierini-coral);
    color: white;
  }
}

/* Formulario de contacto: siempre como la referencia (fondo gris claro, card blanca, inputs blancos, botón azul) */
#contacto {
  color-scheme: light;
}
#contacto.section,
#contacto.section-light,
#contacto.contact.section {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%) !important;
}
#contacto .php-email-form,
#contacto .contact-form {
  background: #f7f8fa !important;
  color: #212529 !important;
  padding: 2rem !important;
  border-radius: 12px !important;
  border: 1px solid rgba(229, 231, 235, 0.7) !important;
  box-shadow: none !important;
}
#contacto .form-control {
  background-color: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #212529 !important;
  border-radius: 8px !important;
  padding: 0.65rem 1rem !important;
  font-family: 'Glacial Indifference', sans-serif !important;
  font-size: 1rem !important;
  min-height: 44px !important;
  box-shadow: none !important;
}
#contacto .form-control::placeholder {
  color: #9ca3af !important;
}
#contacto .form-control:focus {
  background-color: #ffffff !important;
  border-color: #388dd8 !important;
  color: #212529 !important;
  box-shadow: 0 0 0 2px rgba(56, 141, 216, 0.2) !important;
  outline: none !important;
}
#contacto select.form-control {
  background-color: #ffffff !important;
  color: #212529 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  padding-right: 2rem !important;
}
#contacto form,
#contacto .php-email-form,
#contacto .contact-form {
  color-scheme: light !important;
}
#contacto textarea.form-control {
  min-height: 120px !important;
  resize: vertical !important;
  padding: 0.75rem 1rem !important;
}
#contacto .btn-send,
#contacto button[type=submit] {
  background: #388dd8 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  font-family: 'Glacial Indifference', sans-serif !important;
  min-height: 44px !important;
  box-shadow: none !important;
}
#contacto .btn-send:hover,
#contacto button[type=submit]:hover {
  background: #2563eb !important;
  color: #fff !important;
  opacity: 1 !important;
  transform: translateY(-1px) !important;
}
@media (prefers-color-scheme: dark) {
  #contacto.section,
  #contacto .section-title h2 { color: #0b1f3b !important; }
  #contacto .section-title p { color: #1e4b86 !important; }
  #contacto .contact-info-item h4 { color: #0b1f3b !important; }
  #contacto .contact-info-item p,
  #contacto .contact-info-item a { color: #1e4b86 !important; }
  #contacto .contact-info-item a:hover { color: #388dd8 !important; }
  /* Forzar select y botón a tema claro en el celular con modo oscuro */
  #contacto select.form-control,
  #contacto select {
    background-color: #ffffff !important;
    color: #212529 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }
  #contacto .btn-send,
  #contacto button[type=submit] {
    background: #388dd8 !important;
    background-color: #388dd8 !important;
    color: #fff !important;
    border: none !important;
  }
}

/* Estilos para mejorar la legibilidad */
p {
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
}

/* Estilos para los botones de redes sociales */
.social-links a {
  text-decoration: none;
}

.social-links a i {
  font-size: 1.2rem;
}

/* Estilos para mejorar la experiencia móvil */
@media (max-width: 576px) {
  .hero h2 {
    font-size: 2rem !important;
  }
  
  .hero p {
    font-size: 1rem !important;
  }
  
  .service-item {
    padding: 1.5rem !important;
  }
  
  .info-item {
    padding: 1.5rem !important;
  }
  
  .php-email-form {
    padding: 1.5rem !important;
  }
}

/* ===========================================
   LANDING PIERINI - Estilos de página (index)
   =========================================== */

body {
  margin: 0;
  color: #111827;
  background: var(--bg-dark);
  min-height: 100vh;
}

.header .logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1); /* convierte el logo a blanco */
}

@media (max-width: 991px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1rem 4rem;
  position: relative;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  margin-top: clamp(3rem, 12vh, 8rem);
  margin-bottom: 0.75rem;
}

.hero h1 .highlight {
  color: var(--primary-color);
}

.hero .divider {
  width: 72px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  margin: 0 auto 1.25rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.btn-hero {
  background: var(--primary-color);
  color: #fff !important;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}

.btn-hero:hover {
  background: transparent;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.section {
  padding: 4.5rem 1rem;
  position: relative;
}

.section-light {
  background: var(--glass-bg);
  color: #111827;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.2);
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Peso 400 (Regular): un solo archivo con tildes/ñ; el Bold.woff a veces no trae esos glifos y el navegador mezcla fuentes.
   Tamaño un poco mayor para compensar la pérdida de “negrita” visual. */
.section-title h2 {
  color: var(--secondary-color);
  font-size: clamp(1.9rem, 3.15vw, 2.45rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: none;
}

.section-title h2 .highlight {
  color: var(--primary-color);
}

.section-title .divider {
  width: 72px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  margin: 0 auto 1rem;
}

.section-title p {
  color: #4b5563;
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Espaciados más compactos entre títulos, subtítulos y contenido */
#servicios .section-title,
#testimonios .section-title,
#contacto .section-title,
#recursos-y-novedades .section-title {
  margin-bottom: 1.15rem;
}

#servicios .section-title .divider,
#testimonios .section-title .divider,
#recursos-y-novedades .section-title .divider {
  margin-bottom: 0.6rem;
}

#servicios .section-title p,
#testimonios .section-title p,
#recursos-y-novedades .section-title p {
  line-height: 1.35;
  margin-bottom: 0;
}

#testimonios .google-reviews-header {
  margin-top: 0.15rem;
  margin-bottom: 1rem;
}

.google-reviews-header .google-reviews-subtitle {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.team-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 35px rgba(11, 31, 59, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(30, 139, 255, 0.2);
}

.team-card .photo-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #1e4b86, #0b1f3b);
  position: relative;
}

.team-card .photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transition: transform 0.5s ease;
}

.team-card:hover .photo-wrap img {
  transform: scale(1.08);
}

.team-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 31, 59, 0.95) 0%, rgba(11, 31, 59, 0.4) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  pointer-events: none;
}

.team-card:hover .overlay {
  opacity: 1;
}

.team-card .overlay-text {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.team-card .caption {
  padding: 1.25rem 1rem;
  text-align: center;
  border-top: 1px solid #f3f4f6;
  position: relative;
  z-index: 1;
  background: #fff;
}

.team-card .caption h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
}

.team-card .caption .matricula {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.team-card .caption .linkedin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0a66c2;
  color: #fff !important;
  text-decoration: none;
  margin-top: 0.35rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.team-card .caption .linkedin-link:hover {
  background: #004182;
  transform: scale(1.1);
}

.team-card .photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

/* Motivos de consulta */
.motivos-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.motivos-list li {
  position: relative;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 8px 20px rgba(11, 31, 59, 0.08);
  font-size: 0.98rem;
  color: #111827;
}

.motivos-list li::before {
  content: "•";
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary-color);
}

.motivos-otros-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(11, 31, 59, 0.1);
}
.motivos-otros-card .form-control {
  max-width: 100%;
  box-sizing: border-box;
}

.motivos-otros-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--secondary-color);
}

/* Incumbencia profesional */
.inc-card {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1.25rem;
  padding: 1.8rem 1.6rem 1.6rem;
  height: 100%;
  border: 1px solid rgba(209, 213, 219, 0.8);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.inc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 141, 216, 0.45);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.12);
  background: #ffffff;
}

.inc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(56, 141, 216, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.inc-card:hover::before {
  opacity: 1;
}

.inc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
  background: none;
  width: auto;
  height: auto;
  transition: transform 0.25s ease, color 0.25s ease;
}

.inc-icon i {
  font-size: 2rem;
}

.inc-card:hover .inc-icon {
  transform: translateY(-2px);
  color: #0b66c2;
}

.inc-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #0d223f;
}

.inc-card p {
  font-size: 0.95rem;
  color: #4b5563;
  margin: 0;
}

/* Trabajá con nosotros y recursos */
.recursos-wrap h3 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
  margin-top: 0.25rem;
  color: var(--secondary-color);
}

.recursos-wrap p {
  color: #4b5563;
  margin-bottom: 0.65rem;
  line-height: 1.38;
}

.recursos-cv-block {
  margin-top: 0.25rem;
}

.recursos-cv-block h3 {
  margin-top: 0;
}

#recursos-y-novedades .recursos-links-stack {
  --bs-gutter-y: 0.45rem;
}

#recursos-y-novedades .resource-link {
  padding: 0.65rem 1rem;
}

#recursos-y-novedades .resource-link .text-muted {
  line-height: 1.35;
  margin-top: 0.2rem;
}

.resource-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid rgba(30, 139, 255, 0.15);
  text-decoration: none;
  color: #111827;
  font-size: 0.98rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.resource-link i {
  color: var(--primary-color);
}

.resource-link:hover {
  transform: translateY(-3px);
  background: #eff6ff;
  border-color: var(--primary-color);
  box-shadow: 0 14px 32px rgba(30, 139, 255, 0.2);
}

.resource-link.disabled {
  cursor: default;
  background: #f9fafb;
  border-style: dashed;
}

.resource-link.disabled:hover {
  transform: none;
  background: #f9fafb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  border-color: rgba(156, 163, 175, 0.6);
}

.badge-prox {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(30, 139, 255, 0.1);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 600;
}

.service-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  position: relative;
  box-shadow: 0 10px 30px rgba(11, 31, 59, 0.1);
  border: 1px solid rgba(30, 139, 255, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(30, 139, 255, 0.18);
  border-color: rgba(30, 139, 255, 0.25);
}

.service-card .icon-wrap {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(30, 139, 255, 0.15), rgba(30, 139, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}

.service-card .icon-wrap i {
  font-size: 2rem;
  color: var(--primary-color);
  transition: color 0.35s ease;
}

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

.service-card:hover .icon-wrap i {
  color: var(--secondary-color);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-info-item i {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(30, 139, 255, 0.2), rgba(30, 139, 255, 0.1));
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
}

.contact-info-item p,
.contact-info-item a {
  color: #4b5563;
  margin: 0;
  text-decoration: none;
  line-height: 1.35;
}

.contact-info-item a:hover {
  color: var(--primary-color);
}

.contact-form .form-control {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 139, 255, 0.2);
}

.btn-send {
  background: var(--primary-color);
  color: #fff !important;
  border: 2px solid var(--primary-color);
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-send:hover {
  background: transparent;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.testimonial-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
  height: 100%;
  box-shadow: 0 10px 30px rgba(11, 31, 59, 0.08);
  border: 1px solid #f3f4f6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(30, 139, 255, 0.12);
}

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #5f6368;
  margin-bottom: 0.75rem;
}

.google-badge i {
  color: #4285f4;
}

.testimonial-card .stars {
  margin-bottom: 0.75rem;
}

.testimonial-card .stars i {
  color: #fbbf24;
  margin: 0 1px;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-card .profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card .profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-card .profile-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.15rem 0;
  color: var(--secondary-color);
}

.testimonial-card .profile-info span {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Carrusel de reseñas (6 por vista) */
.reviews-carousel-wrap {
  position: relative;
  max-width: 100%;
}
.reviews-carousel-viewport {
  overflow: hidden;
  border-radius: 1rem;
  outline: none;
}
.reviews-carousel-viewport:focus-visible {
  box-shadow: 0 0 0 3px rgba(56, 141, 216, 0.45);
}
.reviews-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .reviews-carousel-track {
    transition: none;
  }
}
.reviews-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
}
.reviews-carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.reviews-carousel-counter {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary-color);
  min-width: 4rem;
  text-align: center;
}
.reviews-carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(56, 141, 216, 0.35);
  background: #fff;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
}
.reviews-carousel-btn:hover:not(:disabled) {
  background: rgba(56, 141, 216, 0.12);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}
.reviews-carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.reviews-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0;
}
.reviews-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(13, 34, 63, 0.22);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.reviews-carousel-dot:hover {
  background: rgba(56, 141, 216, 0.55);
}
.reviews-carousel-dot.is-active {
  background: var(--primary-color);
  transform: scale(1.15);
}

.google-reviews-header {
  text-align: center;
  margin-bottom: 1rem;
}

.google-reviews-header h3 {
  font-size: 1.25rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #4285f4;
  color: #4285f4;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-google:hover {
  background: #4285f4;
  color: #fff;
}

.footer {
  background: linear-gradient(180deg, #0b1f3b 0%, #030813 100%);
  color: rgba(255, 255, 255, 0.85);
  /* padding: 2.5rem 1rem 1.5rem; */
  text-align: center;
}

.footer .logo img {
  max-height: 50px;
  filter: brightness(1.3);
  margin-bottom: 1rem;
}

.footer p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.dev-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.dev-footer a {
  color: inherit;
  text-decoration: none;
}

.dev-footer a:hover {
  color: var(--primary-color);
}

.dev-footer img {
  height: 28px;
  width: auto;
  vertical-align: middle;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.floating-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100000;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff !important;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  animation: float-wa 3s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px);
  color: #fff;
  box-shadow:
    0 8px 25px rgba(37, 211, 102, 0.5),
    0 0 0 4px rgba(37, 211, 102, 0.25),
    0 0 30px rgba(39, 174, 96, 0.6),
    0 0 50px rgba(126, 214, 223, 0.35);
}

/* Tooltip "Contactar por WhatsApp" */
.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem 0.85rem;
  background: rgba(20, 20, 20, 0.95);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}
.wa-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(20, 20, 20, 0.95);
}
.floating-whatsapp:hover .wa-tooltip {
  opacity: 1;
  visibility: visible;
}

.floating-whatsapp img {
  width: 40px;
  height: 40px;
}

@keyframes float-wa {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 576px) {
  .floating-whatsapp span.text-wa {
    display: none;
  }
}

/* Safe area para dispositivos con notch / barra de gestos */
@supports (padding: max(0px)) {
  .floating-whatsapp {
    right: max(1.25rem, env(safe-area-inset-right));
    bottom: max(1.25rem, env(safe-area-inset-bottom));
  }
  .scroll-top {
    left: max(15px, env(safe-area-inset-left));
    bottom: max(15px, env(safe-area-inset-bottom));
  }
}

/* ========== CONTACTO: forzar tema claro siempre (celu con modo oscuro incluido) ========== */
.contact-select-wrap {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 0 !important;
  min-height: 44px !important;
  display: block !important;
  position: relative !important;
}
.contact-select-wrap::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #6b7280;
  pointer-events: none;
}
#contacto .contact-select-wrap {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
}
#contacto .contact-select,
#contacto select.contact-select,
#contacto select.form-control {
  background: transparent !important;
  background-color: transparent !important;
  color: #212529 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  -moz-appearance: none !important;
  border: none !important;
  width: 100% !important;
  min-height: 44px !important;
  padding: 0.65rem 2rem 0.65rem 1rem !important;
  font-family: 'Glacial Indifference', sans-serif !important;
  font-size: 1rem !important;
}
#contacto .btn-send,
#contacto button[type=submit],
#contacto .contact-form .btn-send,
#contacto .php-email-form button[type=submit] {
  background: #388dd8 !important;
  background-color: #388dd8 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}
@media (prefers-color-scheme: dark) {
  #contacto .contact-select-wrap,
  #contacto .contact-select,
  #contacto select.form-control,
  #contacto select {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #212529 !important;
  }
  #contacto .btn-send,
  #contacto button[type=submit] {
    background: #388dd8 !important;
    background-color: #388dd8 !important;
    color: #fff !important;
  }
}
