* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light Mode Colors */
  --primary: #1a5c4c;
  --primary-dark: #0f3d33;
  --primary-light: #2a7a66;
  --accent: #c9a227;
  --accent-light: #e4c454;
  --dark: #1a2f2a;
  --cream: #f9faf8;
  --white: #ffffff;
  --gray-100: #f3f4f2;
  --gray-200: #e5e7e3;
  --gray-500: #6b7280;
  --gray-700: #374151;

  /* Background and text colors for theming */
  --bg-primary: #f9faf8;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f3f4f2;
  --text-primary: #1a2f2a;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --border-color: #e5e7e3;
  --shadow-color: rgba(26, 92, 76, 0.1);
  --nav-bg: rgba(255, 255, 255, 0.98);
}

/* Dark Mode Theme */
[data-theme="dark"] {
  --bg-primary: #0d1f1a;
  --bg-secondary: #142822;
  --bg-tertiary: #1a3530;
  --text-primary: #f0f7f4;
  --text-secondary: #d1e0db;
  --text-muted: #8fa69e;
  --border-color: #2a4a42;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --nav-bg: rgba(13, 31, 26, 0.98);
  --cream: #142822;
  --white: #1a3530;
  --gray-100: #1a3530;
  --gray-200: #2a4a42;
  --gray-500: #8fa69e;
  --gray-700: #d1e0db;
  --dark: #f0f7f4;
}

/* Enhanced 3D Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a1f1a 0%, #0f3d33 30%, #1a5c4c 60%, #2a7a66 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  perspective: 1000px;
  overflow: hidden;
}

/* Animated background particles */
.loading-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(201, 162, 39, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(42, 122, 102, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(228, 196, 84, 0.1) 0%, transparent 40%);
  animation: backgroundPulse 4s ease-in-out infinite;
}

@keyframes backgroundPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Floating particles */
.loading-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
  animation: float 6s infinite ease-in-out;
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  left: 20%;
  animation-delay: 0.5s;
}
.particle:nth-child(3) {
  left: 30%;
  animation-delay: 1s;
}
.particle:nth-child(4) {
  left: 40%;
  animation-delay: 1.5s;
}
.particle:nth-child(5) {
  left: 50%;
  animation-delay: 2s;
}
.particle:nth-child(6) {
  left: 60%;
  animation-delay: 2.5s;
}
.particle:nth-child(7) {
  left: 70%;
  animation-delay: 3s;
}
.particle:nth-child(8) {
  left: 80%;
  animation-delay: 3.5s;
}
.particle:nth-child(9) {
  left: 90%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-10vh) rotate(720deg);
    opacity: 0;
  }
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  position: relative;
  z-index: 2;
  animation: fadeIn3D 1s ease;
  transform-style: preserve-3d;
}

@keyframes fadeIn3D {
  from {
    opacity: 0;
    transform: translateZ(-100px) rotateX(15deg);
  }
  to {
    opacity: 1;
    transform: translateZ(0) rotateX(0);
  }
}

/* 3D Logo container with floating animation */
.loader-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 2.5rem;
  animation: logo3D 3s ease-in-out infinite;
  transform-style: preserve-3d;
  position: relative;
}

.loader-logo::before {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 20px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
  animation: shadow3D 3s ease-in-out infinite;
  border-radius: 50%;
}

@keyframes logo3D {
  0%,
  100% {
    transform: translateY(0) rotateY(0deg) scale(1);
  }
  25% {
    transform: translateY(-20px) rotateY(10deg) scale(1.05);
  }
  50% {
    transform: translateY(-10px) rotateY(0deg) scale(1.02);
  }
  75% {
    transform: translateY(-20px) rotateY(-10deg) scale(1.05);
  }
}

@keyframes shadow3D {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.3;
  }
  25%,
  75% {
    transform: translateX(-50%) scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: translateX(-50%) scale(0.9);
    opacity: 0.4;
  }
}

.loader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 60px rgba(201, 162, 39, 0.3));
  animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  from {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 30px rgba(201, 162, 39, 0.2));
  }
  to {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 60px rgba(201, 162, 39, 0.5));
  }
}

/* Enhanced 3D spinner */
.loader-spinner {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  transform-style: preserve-3d;
  animation: spinnerRotate 8s linear infinite;
}

@keyframes spinnerRotate {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-radius: 50%;
}

.spinner-ring:nth-child(1) {
  border-top-color: var(--accent);
  border-bottom-color: var(--accent);
  animation: spin 1.2s linear infinite;
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.5);
}

.spinner-ring:nth-child(2) {
  border-left-color: var(--accent-light);
  border-right-color: var(--accent-light);
  animation: spin 1.8s linear infinite reverse;
  transform: rotateX(60deg);
}

.spinner-ring:nth-child(3) {
  border-top-color: rgba(255, 255, 255, 0.8);
  border-bottom-color: rgba(255, 255, 255, 0.8);
  animation: spin 2.4s linear infinite;
  transform: rotateX(-60deg);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 3D Text effect for loader */
.loader-text {
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 2rem;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 0 rgba(0, 0, 0, 0.1), 0 3px 0 rgba(0, 0, 0, 0.1), 0 4px 0
    rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.3);
  animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
  0%,
  100% {
    opacity: 1;
    letter-spacing: 4px;
  }
  50% {
    opacity: 0.8;
    letter-spacing: 6px;
  }
}

.loader-text .dots span {
  animation: blink 1.4s infinite;
  animation-fill-mode: both;
  font-size: 1.8rem;
}

.loader-text .dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.loader-text .dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

/* Enhanced progress bar */
.loader-progress {
  width: 250px;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
  background-size: 200% 100%;
  border-radius: 3px;
  animation: progress 2.5s ease-in-out forwards, shimmer 1s linear infinite;
  box-shadow: 0 0 15px rgba(201, 162, 39, 0.5);
}

@keyframes progress {
  0% {
    width: 0%;
  }
  30% {
    width: 40%;
  }
  60% {
    width: 75%;
  }
  100% {
    width: 100%;
  }
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

/* Loading percentage text */
.loader-percentage {
  color: var(--accent-light);
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  margin-top: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
}

html {
  scroll-behavior: smooth;
}

/* Body with theme support */
body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px var(--shadow-color), 0 0 0 4px rgba(26, 92, 76, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 12px 40px var(--shadow-color), 0 0 0 8px rgba(26, 92, 76, 0.15);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle svg {
  width: 28px;
  height: 28px;
  color: white;
  transition: transform 0.5s ease;
}

.theme-toggle:hover svg {
  transform: rotate(360deg);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  position: absolute;
  transition: all 0.4s ease;
}

.theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Navigation with theme support */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 1px 3px var(--shadow-color);
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 0.7rem 5%;
  box-shadow: 0 4px 20px var(--shadow-color);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo:hover .logo-icon {
  transform: scale(1.05) rotateY(10deg);
}

.logo-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}

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

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hero Section with 3D parallax effect */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("/public/portada.png") center center / cover no-repeat;
  position: relative;
  padding: 120px 5% 80px;
  perspective: 1000px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 47, 42, 0.8) 0%, rgba(26, 92, 76, 0.7) 100%);
}

.hero-content {
  max-width: 700px;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease;
  transform-style: preserve-3d;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) translateZ(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* 3D Text effect for hero title */
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 0 rgba(0, 0, 0, 0.1), 0 4px 0 rgba(0, 0, 0, 0.1), 0 6px 0
    rgba(0, 0, 0, 0.1), 0 8px 15px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
  animation: title3D 0.8s ease-out;
}

@keyframes title3D {
  from {
    transform: rotateX(20deg) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: rotateX(0) translateY(0);
    opacity: 1;
  }
}

.hero h1 span {
  color: var(--accent-light);
  display: inline-block;
  animation: spanGlow 2s ease-in-out infinite alternate;
}

@keyframes spanGlow {
  from {
    text-shadow: 0 0 20px rgba(228, 196, 84, 0.3);
  }
  to {
    text-shadow: 0 0 40px rgba(228, 196, 84, 0.6);
  }
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

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

/* 3D Button effects */
.btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Montserrat", sans-serif;
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(500px) translateZ(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--dark);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.3), 0 6px 0 rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: perspective(500px) translateY(-4px) translateZ(10px);
  box-shadow: 0 8px 25px rgba(201, 162, 39, 0.4), 0 10px 0 rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
  transform: perspective(500px) translateY(0) translateZ(0);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
  transform: perspective(500px) translateY(-4px) translateZ(10px);
}

/* Page header with theme support */
.page-header {
  padding: 150px 5% 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.1) 0%, transparent 50%);
  animation: headerGlow 10s linear infinite;
}

@keyframes headerGlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: var(--white);
  position: relative;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  position: relative;
}

/* Sections with theme support */
section {
  padding: 100px 5%;
  transition: background-color 0.4s ease;
}

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

.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

/* 3D underline effect for section titles */
.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(26, 92, 76, 0.3);
}

.section-title p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Services cards with 3D hover effects */
.servicios {
  background: var(--bg-secondary);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.servicios-full {
  max-width: 1100px;
}

.servicio-card {
  background: var(--bg-tertiary);
  padding: 2.5rem;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid var(--border-color);
  transform-style: preserve-3d;
  transform: perspective(1000px) translateZ(0);
}

.servicio-card:hover {
  /* Removed white background effect, keeping only the 3D perspective transformation */
  transform: perspective(1000px) translateY(-10px) translateZ(20px) rotateX(2deg);
  box-shadow: 0 30px 60px var(--shadow-color);
}

.servicio-card.servicio-destacado {
  border: 2px solid var(--primary);
  background: var(--bg-tertiary);
  /* Changed from --bg-secondary (white) to --bg-tertiary (gray) to remove white effect and maintain visual consistency */
}

.servicio-card.servicio-destacado::before {
  content: "DESTACADO";
  position: absolute;
  top: 20px;
  right: -35px;
  background: var(--primary);
  color: white;
  padding: 5px 40px;
  font-size: 0.7rem;
  font-weight: 700;
  transform: rotate(45deg);
  letter-spacing: 1px;
}

.servicio-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(26, 92, 76, 0.3);
}

.servicio-card:hover .servicio-icon {
  transform: scale(1.1) rotateY(10deg);
  box-shadow: 0 12px 30px rgba(26, 92, 76, 0.4);
}

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

.servicio-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.servicio-features {
  list-style: none;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.servicio-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.servicio-features li:hover {
  transform: translateX(5px);
}

.servicio-features li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(26, 92, 76, 0.5);
}

/* Próximamente badge */
.proximamente-simple {
  opacity: 0.7;
}

.badge-proximamente {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 1rem;
  background: var(--border-color);
  color: var(--text-secondary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Info empresa section with theme support */
.info-empresa {
  background: var(--primary);
  padding: 60px 5%;
  position: relative;
  overflow: hidden;
}

.info-empresa::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.info-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  min-width: 250px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.info-item .info-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  flex-shrink: 0;
}

.info-item .info-text {
  color: var(--white);
}

.info-item .info-text span {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 2px;
}

.info-item .info-text strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.info-item.info-ruc {
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid rgba(201, 162, 39, 0.3);
}

/* Sobre Nosotros section with theme */
.sobre-nosotros {
  background: var(--bg-tertiary);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-logo-container {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px var(--shadow-color);
  transition: transform 0.5s ease;
}

.about-logo-container:hover {
  transform: perspective(1000px) rotateY(-5deg) scale(1.02);
}

.about-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.about-content h2 span {
  color: var(--primary);
}

.empresa-ruc {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.empresa-ruc strong {
  color: var(--accent-light);
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.features-list {
  list-style: none;
  margin: 2rem 0;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.features-list li:hover {
  transform: translateX(10px);
}

.features-list li::before {
  content: "";
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(26, 92, 76, 0.3);
}

/* Valores section */
.valores {
  background: var(--bg-secondary);
  padding: 80px 5%;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.valor-item {
  text-align: center;
  padding: 2rem;
  border-radius: 16px;
  transition: all 0.4s ease;
  border: 1px solid transparent;
  transform-style: preserve-3d;
}

.valor-item:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
  transform: perspective(1000px) translateY(-5px) rotateX(5deg);
}

.valor-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  transition: transform 0.4s ease;
}

.valor-item:hover .valor-icon {
  transform: scale(1.1) rotateY(15deg);
}

.valor-item h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.valor-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Por qué elegirnos section */
.porque-elegirnos {
  background: var(--bg-tertiary);
  padding: 80px 5%;
}

.razones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.razon-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.razon-card:hover {
  transform: perspective(1000px) translateY(-8px) translateZ(10px);
  box-shadow: 0 20px 40px var(--shadow-color);
  border-color: var(--primary);
}

.razon-number {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 0.5rem;
}

.razon-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

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

/* Coming Soon Section */
.coming-soon-section {
  background: var(--bg-tertiary);
  padding: 80px 5%;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-container {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.coming-soon-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--white);
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 15px 40px rgba(26, 92, 76, 0.3);
}

.coming-soon-container h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.coming-soon-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.coming-soon-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--shadow-color);
}

.feature-item .feature-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-item span {
  font-weight: 500;
  color: var(--text-secondary);
}

.coming-soon-cta {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.coming-soon-cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Redes Sociales section */
.redes-sociales {
  background: var(--bg-tertiary);
  padding: 80px 5%;
}

.redes-page {
  padding-top: 40px;
}

.redes-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.redes-intro h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.redes-intro p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.redes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.red-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px var(--shadow-color);
  border: 1px solid var(--border-color);
  transform-style: preserve-3d;
}

.red-card:hover {
  transform: perspective(1000px) translateY(-8px) rotateX(5deg);
  box-shadow: 0 20px 40px var(--shadow-color);
}

.red-card.activa {
  border: 2px solid var(--primary);
}

.red-card.proximamente {
  opacity: 0.5;
  pointer-events: none;
}

.red-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-tertiary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.red-card.activa .red-icon {
  background: var(--primary);
  color: var(--white);
}

.red-card:hover .red-icon {
  transform: scale(1.1) rotateY(15deg);
}

.red-card h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.red-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.red-action {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.red-grande {
  grid-column: 1 / -1;
}

.redes-full {
  max-width: 600px;
}

/* Contacto section with theme support */
.contacto {
  background: var(--bg-tertiary);
}

.contacto-container {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.contacto-info-centered {
  max-width: 800px;
  text-align: center;
  padding: 2rem;
}

.contacto-info-centered h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contacto-info-centered > p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.contacto-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* Contact cards with spam warning for phone */
.contacto-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px var(--shadow-color);
  border: 1px solid var(--border-color);
  min-width: 280px;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
}

.contacto-card:hover {
  transform: perspective(1000px) translateY(-5px) rotateX(3deg);
  box-shadow: 0 15px 35px var(--shadow-color);
  border-color: var(--primary);
}

.contacto-card .info-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

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

.contacto-card .info-text {
  text-align: left;
}

.contacto-card .info-text h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.contacto-card .info-text p {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

/* RUC card styling */
.contacto-card.ruc-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
}

.contacto-card.ruc-card .info-icon {
  background: rgba(255, 255, 255, 0.2);
}

.contacto-card.ruc-card .info-text h4 {
  color: rgba(255, 255, 255, 0.8);
}

.contacto-card.ruc-card .info-text p {
  color: var(--white);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* Spam Warning Modal */
.spam-warning-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.spam-warning-modal.active {
  opacity: 1;
  visibility: visible;
}

.spam-warning-content {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 20px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  transform: scale(0.8) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.spam-warning-modal.active .spam-warning-content {
  transform: scale(1) translateY(0);
}

.spam-warning-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #dc2626, #f59e0b, #dc2626);
}

.warning-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #dc2626, #f59e0b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: warningPulse 1.5s ease-in-out infinite;
}

@keyframes warningPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(220, 38, 38, 0);
  }
}

.warning-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.spam-warning-content h3 {
  font-size: 1.5rem;
  color: #dc2626;
  margin-bottom: 1rem;
}

.spam-warning-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.spam-warning-content .warning-list {
  text-align: left;
  background: var(--bg-tertiary);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.spam-warning-content .warning-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.spam-warning-content .warning-list li svg {
  color: #dc2626;
  flex-shrink: 0;
}

.spam-warning-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.spam-warning-buttons .btn-cancel {
  padding: 0.8rem 1.5rem;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.spam-warning-buttons .btn-cancel:hover {
  background: var(--border-color);
}

.spam-warning-buttons .btn-accept {
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spam-warning-buttons .btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

/* Mobile Info Tooltip */
.mobile-info-tooltip {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  margin-bottom: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.mobile-info-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--text-primary);
}

.contacto-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contacto-page {
  padding-top: 40px;
}

.mapa-container {
  margin-top: 3rem;
  text-align: center;
}

.mapa-container h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.mapa {
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 10px 30px var(--shadow-color);
  border-radius: 16px;
  overflow: hidden;
}

/* Footer with theme support */
footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 60px 5% 30px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.footer-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-ruc {
  color: var(--accent-light) !important;
  font-size: 0.9rem !important;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Social icons with proper SVG logos */
.social-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--primary);
  transform: translateY(-4px) rotateY(10deg);
  box-shadow: 0 10px 25px rgba(26, 92, 76, 0.4);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--accent-light);
}

.footer-links ul {
  list-style: none;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  position: relative;
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 20px rgba(26, 92, 76, 0.3);
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(26, 92, 76, 0.4);
}

/* Animations for elements on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Responsive styles */
@media (max-width: 968px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 1rem;
  }

  .footer-social {
    justify-content: center;
  }

  .theme-toggle {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .scroll-top {
    bottom: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0.8rem 4%;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 80px 2rem 2rem;
    gap: 0;
    box-shadow: -5px 0 30px var(--shadow-color);
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
  }

  .hero {
    padding: 100px 4% 60px;
    min-height: auto;
  }

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

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

  .hero-badge {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  section {
    padding: 60px 4%;
  }

  .info-container {
    flex-direction: column;
    align-items: center;
  }

  .info-item {
    width: 100%;
    max-width: 320px;
  }

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

  .about-logo-container {
    height: 280px;
  }

  .about-content h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .about-content p {
    text-align: center;
  }

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

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

  .contacto-cards {
    flex-direction: column;
    align-items: center;
  }

  .contacto-card {
    width: 100%;
    max-width: 350px;
  }

  /* Show mobile tooltips on touch */
  .contacto-card:active .mobile-info-tooltip {
    display: block;
    animation: tooltipFade 0.3s ease;
  }

  @keyframes tooltipFade {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
  }

  .contacto-actions {
    flex-direction: column;
    align-items: center;
  }

  .coming-soon-features {
    flex-direction: column;
    align-items: center;
  }

  .feature-item {
    width: 100%;
    max-width: 300px;
  }

  .loader-logo {
    width: 120px;
    height: 120px;
  }

  .loader-spinner {
    width: 80px;
    height: 80px;
  }

  .spam-warning-content {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }

  .spam-warning-buttons {
    flex-direction: column;
  }

  .spam-warning-buttons button {
    width: 100%;
  }
}

/* Print styles */
@media print {
  .loading-screen,
  .theme-toggle,
  .scroll-top,
  nav {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}

/* Enhanced Map Section Styles */
.mapa-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.mapa-section h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.mapa-section h3 svg {
  color: var(--primary);
}

.mapa-description {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.mapa-container {
  background: var(--bg-secondary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.mapa-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.mapa-wrapper iframe {
  display: block;
  border-radius: 20px 20px 0 0;
}

.mapa-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--bg-tertiary);
  gap: 1rem;
  flex-wrap: wrap;
}

.mapa-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.mapa-info-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.btn-directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(26, 92, 76, 0.3);
}

.btn-directions:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26, 92, 76, 0.4);
}

/* Horario Section Styles */
.horario-section {
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--bg-secondary);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.horario-section h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.horario-section h3 svg {
  color: var(--primary);
}

.horario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.horario-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-tertiary);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.horario-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px var(--shadow-color);
}

.horario-item .dia {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.horario-item .hora {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.horario-item.cerrado {
  background: rgba(220, 38, 38, 0.1);
}

.horario-item.cerrado .hora {
  color: #dc2626;
}

/* WhatsApp Icon special styling */
.whatsapp-icon {
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
}

/* Location Icon special styling */
.location-icon {
  background: linear-gradient(135deg, #ea4335, #c5221f) !important;
}

/* RUC number styling */
.ruc-number {
  font-family: "Montserrat", monospace;
  letter-spacing: 2px;
}

/* Social icons in redes page styling fix */
.redes-full .red-card {
  min-width: 160px;
}

.redes-full .red-card .red-icon svg {
  width: 32px;
  height: 32px;
}

.redes-full .red-grande .red-icon svg {
  width: 40px;
  height: 40px;
}

/* Facebook specific styling */
.redes-full .red-card.activa .red-icon {
  background: linear-gradient(135deg, #1877f2, #0d65d9);
}

/* 3D Text class */
.text-3d {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 0 rgba(0, 0, 0, 0.1), 0 3px 0 rgba(0, 0, 0, 0.1), 0 4px 0
    rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Card 3D effect class */
.card-3d {
  transform-style: preserve-3d;
  transform: perspective(1000px) translateZ(0);
}

.card-3d:hover {
  transform: perspective(1000px) translateY(-8px) translateZ(15px) rotateX(3deg);
}

/* Button glow effect */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
  0% {
    transform: rotate(45deg) translateX(-100%);
  }
  100% {
    transform: rotate(45deg) translateX(100%);
  }
}

/* Redes CTA section */
.redes-cta {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem;
  background: var(--bg-secondary);
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.redes-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.redes-cta p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive map styles */
@media (max-width: 768px) {
  .mapa-wrapper iframe {
    height: 300px;
  }

  .mapa-info {
    flex-direction: column;
    text-align: center;
  }

  .mapa-info-item {
    justify-content: center;
  }

  .btn-directions {
    width: 100%;
    justify-content: center;
  }

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

  .mapa-section h3,
  .horario-section h3 {
    font-size: 1.2rem;
  }
}
