/* ========================= Custom Styles ========================= */

:root {
  --primary-color: #35587a;
  --secondary-color: #f0f0f0;
  --text-color: #333;
  --text-light: #666;
  --border-color: #e0e0e0;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ========================= Preloader ========================= */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.preloader.hide {
  display: none;
}

.loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--secondary-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ========================= Header ========================= */
.header {
  padding: 0.2rem 0;
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.08);
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

.navbar-brand {
  padding: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: var(--transition);
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
  transition: var(--transition);
  flex-shrink: 0;
}

.brand-icon i {
  font-size: 1.2rem;
  color: #fff;
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  transition: var(--transition);
}

.brand-link:hover .brand-icon {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 102, 204, 0.35);
}

.brand-link:hover .brand-text {
  color: #0052a3;
}

.brand-logo {
  height: clamp(45px, 7vw, 72px);
  width: auto;
  display: block;
  transition: var(--transition);
}

.brand-link:hover .brand-logo {
  transform: translateY(-3px);
  filter: drop-shadow(0 6px 18px rgba(0, 102, 204, 0.35));
}

.navbar-nav .nav-link {
  margin-left: 1.5rem;
  font-weight: 500;
  color: var(--text-color);
  transition: var(--transition);
  position: relative;
  padding-bottom: 0.5rem;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #0052a3);
  transition: width 0.3s ease;
}

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

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.toggler-icon {
  display: block;
  height: 3px;
  width: 25px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* ========================= Buttons ========================= */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: #0052a3;
  border-color: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* ========================= Hero Section ========================= */
.hero-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 50%, #f8fbff 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(0, 102, 204, 0.05) 0%, transparent 70%);
  pointer-events: none;
}



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

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-image-wrapper {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-circle {
  position: relative;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 102, 204, 0.2);
  animation: float-slow 4s ease-in-out infinite;
}

.hero-image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.05) 100%);
  mask-image: radial-gradient(circle at center, black 0%, black 80%, transparent 100%);
}

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

.decoration-shape {
  position: absolute;
  border: 2px solid rgba(0, 102, 204, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.decoration-1 {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotate 20s linear infinite;
}

.decoration-2 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotate -15s linear infinite;
}

@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ========================= About Section ========================= */
.about-section {
  padding: 5rem 0;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 102, 204, 0.1) 50%, transparent 100%);
}

.about-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: radial-gradient(ellipse at 20% bottom, rgba(0, 102, 204, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 102, 204, 0.1);
  transition: var(--transition);
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 102, 204, 0.15);
  border-color: var(--primary-color);
}

.feature-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.15) 0%, rgba(0, 102, 204, 0.05) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

.feature-text h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #35587a;
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ========================= About Section ========================= */
.about-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 102, 204, 0.1) 50%, transparent 100%);
}

.about-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: radial-gradient(ellipse at 20% bottom, rgba(0, 102, 204, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.about-image-wrapper {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@keyframes pulse-scale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes rotate-soft {
  0%, 100% {
    transform: rotateZ(0deg);
  }
  25% {
    transform: rotateZ(2deg);
  }
  75% {
    transform: rotateZ(-2deg);
  }
}

@keyframes diamond-sway {
  0%, 100% {
    transform: rotateZ(45deg) translateY(0px) rotateX(0deg);
  }
  50% {
    transform: rotateZ(45deg) translateY(-10px) rotateX(5deg);
  }
}

@keyframes pulse-shadow {
  0%, 100% {
    box-shadow: 0 20px 60px rgba(0, 102, 204, 0.2);
  }
  50% {
    box-shadow: 0 30px 80px rgba(0, 102, 204, 0.3);
  }
}

/* ========================= About Image ========================= */
.about-image-circle {
  position: relative;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 102, 204, 0.2);
  animation: float-slow 4s ease-in-out infinite;
  border: 3px solid rgba(0, 102, 204, 0.1);
}

.about-image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.about-decoration-shape {
  position: absolute;
  border: 2px solid rgba(0, 102, 204, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.about-deco-1 {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotate 30s linear infinite;
}

.about-deco-2 {
  width: 450px;
  height: 450px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotate 40s linear infinite reverse;
}
.services-section {
  padding: 5rem 0;
  background-color: #f8fbff;
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.services-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.services-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #35587a;
}

.services-section > .container > .row:first-child p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ========================= SERVICE CARDS - 6 OPCIONES MODERNAS ========================= */

.service-card {
  transition: var(--transition);
  text-align: center;
}

.service-content {
  padding: 1.5rem;
}

.service-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* OPCIÓN 1: Circular Moderno */
.service-card-1 {
  background: #fff;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 102, 204, 0.1);
}

.service-image-circle {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  position: relative;
}

.service-image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card-1 .service-content {
  padding: 1.5rem;
}

.service-card-1:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 35px rgba(0, 102, 204, 0.18);
}

.service-card-1:hover .service-image-circle img {
  transform: scale(1.08) rotate(1deg);
}

.service-card-1 h4 {
  color: var(--primary-color);
  font-weight: 700;
}

/* OPCIÓN 2: Hexagonal */
.service-card-2 {
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
  border-radius: 20px;
  position: relative;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.08), -5px -5px 15px rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 102, 204, 0.1);
}

.service-image-hex {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  position: relative;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 102, 204, 0.15);
}

.service-image-hex img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card-2:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 15px 15px 40px rgba(0, 102, 204, 0.15), -5px -5px 15px rgba(255, 255, 255, 0.7);
}

.service-card-2:hover .service-image-hex img {
  transform: scale(1.15) rotate(-5deg);
}

/* OPCIÓN 3: Asimétrico Premium */
.service-card-3 {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0, 102, 204, 0.08);
}

.service-image-asymmetric {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 102, 204, 0.05));
}

.service-image-asymmetric img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card-3:hover {
  transform: translateY(-14px) skewY(-2deg);
  box-shadow: 0 18px 45px rgba(0, 102, 204, 0.2);
}

.service-card-3:hover .service-image-asymmetric img {
  transform: scale(1.12) rotate(2deg);
}

.service-card-3 .service-content {
  padding: 1.8rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* OPCIÓN 4: Imagen Superpuesta Ángulo */
.service-card-4 {
  background: linear-gradient(145deg, #f8faff, #ffffff);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 8px 8px 24px rgba(0, 0, 0, 0.1);
  padding-top: 80px;
  padding-bottom: 1.5rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.service-image-tilted {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
  width: 160px;
  height: 160px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 102, 204, 0.25), 0 0 0 8px #fff;
  border: 3px solid var(--primary-color);
}

.service-image-tilted img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card-4:hover {
  transform: translateY(-12px);
  box-shadow: 12px 12px 35px rgba(0, 102, 204, 0.18);
}

.service-card-4:hover .service-image-tilted {
  transform: translateX(-50%) rotate(0deg) scale(1.05);
}

.service-card-4:hover .service-image-tilted img {
  transform: scale(1.1);
}

/* OPCIÓN 5: Neumórfico con Imagen Arriba */
.service-card-5 {
  background: linear-gradient(145deg, #f9faff, #ffffff);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 12px 12px 30px rgba(0, 0, 0, 0.08), -8px -8px 20px rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 102, 204, 0.08);
}

.service-image-rounded {
  width: 100%;
  height: 180px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 102, 204, 0.12);
}

.service-image-rounded img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card-5:hover {
  transform: translateY(-16px);
  box-shadow: 16px 16px 40px rgba(0, 102, 204, 0.15), -8px -8px 20px rgba(255, 255, 255, 0.8);
}

.service-card-5:hover .service-image-rounded img {
  transform: scale(1.1) rotate(-2deg);
}

.service-card-5 h4 {
  color: var(--primary-color);
  font-weight: 700;
}

/* OPCIÓN 6: Borde Circular Lateral (ACTIVA POR DEFECTO) */
.service-card-6 {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
  border: 1px solid rgba(0, 102, 204, 0.1);
  height: 100%;
  min-height: 200px;
  transition: var(--transition);
  align-items: center;
  padding: 1.5rem 0;
}

/* Imagen a la izquierda (tarjetas impares) */
.service-card-odd {
  flex-direction: row;
}

/* Imagen a la derecha (tarjetas pares) */
.service-card-even {
  flex-direction: row-reverse;
}

.service-image-circular-border {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: 1.5rem;
  margin-right: 0;
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.2);
  border: 3px solid var(--primary-color);
  position: relative;
  padding: 4px;
  background: #fff;
  animation: float-slow 4s ease-in-out infinite;
}

/* Ajuste de márgenes para tarjetas pares */
.service-card-even .service-image-circular-border {
  margin-left: 0;
  margin-right: 1.5rem;
}

.service-image-circular-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 102, 204, 0.05);
  padding: 3px;
  pointer-events: none;
}

.service-image-circular-border img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  border-radius: 50%;
}

.service-card-6 .service-content {
  flex-grow: 1;
  padding: 1.5rem 1.8rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card-6 h4 {
  color: #35587a;
  font-weight: 700;
  text-align: left;
  margin-bottom: 0.6rem;
}

.service-card-6 p {
  text-align: left;
}

.service-card-6:hover {
  transform: translateY(-12px);
  box-shadow: 0 18px 45px rgba(0, 102, 204, 0.18);
}

.service-card-6:hover .service-image-circular-border img {
  transform: scale(1.15) rotate(8deg);
}

.service-card-6:hover .service-image-circular-border {
  box-shadow: 0 12px 28px rgba(0, 102, 204, 0.3);
}

/* ========================= Gallery Section ========================= */
.gallery-section {
  padding: 5rem 0;
  position: relative;
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
}

.gallery-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
}

.gallery-section > .container > .row:first-child p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.gallery-item {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.1);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 102, 204, 0.2);
}

.gallery-video .video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #000;
}

.gallery-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

.gallery-photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.gallery-photo:hover img {
  transform: scale(1.05);
}

.gallery-photos {
  margin-top: 2rem;
}

/* ========================= Contact Section ========================= */
.contact-section {
  padding: 5rem 0;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 102, 204, 0.1) 50%, transparent 100%);
}

.contact-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #35587a;
}

.contact-section > .container > .row:first-child p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Contact Cards */
.contact-card {
  background: linear-gradient(145deg, #f8f9ff, #ffffff);
  border: 1px solid rgba(0, 102, 204, 0.1);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(0, 102, 204, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 102, 204, 0.2);
}

.contact-card:hover .contact-card-icon {
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.contact-card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.15) 0%, rgba(0, 102, 204, 0.08) 100%);
  border-radius: 20px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 102, 204, 0.1);
}

.contact-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #35587a;
  letter-spacing: -0.3px;
}

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

.contact-card a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
}

.contact-card a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #0052a3);
  transition: width 0.3s ease;
}

.contact-card a:hover {
  color: #0052a3;
}

.contact-card a:hover::after {
  width: 100%;
}

/* ========================= CONTACT CARD STYLES - NEUMÓRFICO PREMIUM ========================= */

/* El estilo neumórfico premium está aplicado a .contact-card por defecto */

/* Map Container */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.map-container:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: scale(1.01);
}

.map-container a {
  display: block;
  text-decoration: none;
}

.map-container img {
  display: block;
  cursor: pointer;
  transition: var(--transition);
}

.map-container:hover img {
  opacity: 0.9;
}

/* ========================= Footer ========================= */
.footer {
  background: linear-gradient(135deg, #35587a 0%, #34495e 100%);
  color: #fff;
  padding: 3.5rem 0 1rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
}

.footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-content {
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

.footer h5 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.footer p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}

/* ========================= Scroll Top ========================= */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 999;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.scroll-top:hover {
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4);
}

.scroll-top:active {
  transform: translateY(-3px) scale(0.98);
}

/* ========================= Animations ========================= */
.wow {
  visibility: hidden;
}

.wow.animated {
  visibility: visible;
}

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

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fadeInUp {
  animation-name: fadeInUp;
}

.fadeInDown {
  animation-name: fadeInDown;
}

.fadeInLeft {
  animation-name: fadeInLeft;
}

.fadeInRight {
  animation-name: fadeInRight;
}

/* ========================= Responsive ========================= */

/* Tablet y dispositivos medianos */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-section {
    padding: 4rem 0;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-image-circle {
    width: 280px;
    height: 280px;
  }

  .about-content h2,
  .services-section h2,
  .contact-section h2 {
    font-size: 2rem;
  }
}

/* Móviles pequeños */
@media (max-width: 767px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Header */
  .header {
    padding: 1rem 0;
  }

  .navbar-brand h2 {
    font-size: 1.2rem;
  }

  .navbar-nav .nav-link {
    margin-left: 0;
    padding: 0.5rem 0;
    font-size: 0.95rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 3rem 0;
    min-height: auto;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  }

  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .hero-image {
    margin-top: 2rem;
  }

  /* About Section */
  .about-section {
    padding: 3rem 0;
  }

  .about-image {
    margin-bottom: 2rem;
  }

  .about-content h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .about-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .feature-item {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  /* Services Section */
  .services-section {
    padding: 3rem 0;
  }

  .services-section h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }

  .services-section > .container > .row:first-child p {
    font-size: 0.95rem;
  }

  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .service-card h4 {
    font-size: 1.1rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  /* Gallery Section */
  .gallery-section {
    padding: 3rem 0;
  }

  .gallery-section h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }

  .gallery-section > .container > .row:first-child p {
    font-size: 0.95rem;
  }

  /* Contact Section */
  .contact-section {
    padding: 3rem 0;
  }

  .contact-section h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }

  .contact-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .contact-card-icon {
    width: 55px;
    height: 55px;
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .contact-card h4 {
    font-size: 1.1rem;
  }

  .contact-card p {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
  }

  .footer h5 {
    font-size: 1.1rem;
  }

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

  /* Scroll Top */
  .scroll-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Móviles pequeños (iPhone SE, etc) */
@media (max-width: 480px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Header */
  .header {
    padding: 0.75rem 0;
  }

  .navbar-brand h2 {
    font-size: 1rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 2rem 0;
    min-height: 400px;
  }

  .hero-background {
    width: 100%;
  }

  .hero-content h1 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }

  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .hero-image-wrapper {
    height: 300px;
    margin-top: 2rem;
  }

  .hero-image-circle {
    width: 220px;
    height: 220px;
  }

  .decoration-1 {
    width: 280px;
    height: 280px;
  }

  .decoration-2 {
    width: 200px;
    height: 200px;
  }

  .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Headings */
  .about-content h2,
  .services-section h2,
  .gallery-section h2,
  .contact-section h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .services-section > .container > .row:first-child p,
  .gallery-section > .container > .row:first-child p,
  .contact-section > .container > .row:first-child p {
    font-size: 0.9rem;
  }

  /* About Section */
  .about-section {
    padding: 2rem 0;
  }

  .about-content p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .feature-item {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  /* Services Section */
  .services-section {
    padding: 2rem 0;
  }

  .service-card {
    padding: 1.2rem;
    margin-bottom: 1rem;
  }

  .service-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .service-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }

  /* Contact Section */
  .contact-section {
    padding: 2rem 0;
  }

  .contact-card {
    padding: 1.2rem;
    margin-bottom: 1rem;
  }

  .contact-card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }

  .contact-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .contact-card p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  /* Footer */
  .footer {
    padding: 1.5rem 0 0.75rem;
  }

  .footer h5 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .footer p {
    font-size: 0.85rem;
  }

  /* Scroll Top */
  .scroll-top {
    bottom: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

/* ========================= SERVICE OPTIONS SELECTOR ========================= */
.service-options-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
}

.service-option-btn {
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--primary-color);
  background: #fff;
  color: var(--primary-color);
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.service-option-btn:hover {
  background: rgba(0, 102, 204, 0.1);
  transform: translateY(-2px);
}

.service-option-btn.active {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

/* ========================= Advanced Animations ========================= */
@keyframes float-elegant {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes subtle-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========================= Enhanced Section Backgrounds ========================= */
.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 40%, #e8f1ff 100%);
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../fonts/bcg-2.svg') no-repeat center center;
  background-size: cover;
  opacity: 0.3; /* Controla visibilidad del SVG */
  pointer-events: none;
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.about-section {
  background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.services-section {
  background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 50%, #f0f4ff 100%);
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-section {
  background: linear-gradient(to bottom, #f8fbff 0%, #ffffff 100%);
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -15%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ========================= Enhanced Button Effects ========================= */
.btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
  transition: all 0.4s ease;
}

.btn-primary::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;
}

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

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.35);
  transform: translateY(-3px);
}

/* ========================= Card Enhancements ========================= */
.feature-card,
.service-card-6,
.contact-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.feature-card:hover,
.service-card-6:hover,
.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 102, 204, 0.15);
}

.contact-card {
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.contact-card:hover::before {
  transform: scaleX(1);
}

/* ========================= Text Animations ========================= */
h1, h2, h3, h4, h5 {
  color: #35587a;
  letter-spacing: -0.5px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  color: #35587a;
  animation: slide-in-left 0.8s ease 0.3s both;
}

.hero-content p {
  animation: slide-in-left 0.8s ease 0.5s both;
  font-size: 1.1rem;
  color: var(--text-light);
}

/* ========================= Icon Animations ========================= */
.feature-icon,
.contact-card-icon {
  animation: subtle-bounce 3s ease-in-out infinite;
}

.feature-card:nth-child(1) .feature-icon {
  animation-delay: 0s;
}

.feature-card:nth-child(2) .feature-icon {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3) .feature-icon {
  animation-delay: 0.4s;
}

.contact-card:nth-child(1) .contact-card-icon {
  animation-delay: 0s;
}

.contact-card:nth-child(2) .contact-card-icon {
  animation-delay: 0.15s;
}

.contact-card:nth-child(3) .contact-card-icon {
  animation-delay: 0.3s;
}

.contact-card:nth-child(4) .contact-card-icon {
  animation-delay: 0.45s;
}

/* ========================= Link Hover Effects ========================= */
a {
  position: relative;
}

.contact-card p a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.contact-card p a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.contact-card p a:hover {
  color: #0052a3;
}

.contact-card p a:hover::after {
  width: 100%;
}

/* ========================= Payment Methods Section ========================= */
.payment-methods-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.payment-subtitle {
  color: #555;
  font-size: 16px;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.payment-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 12px;
  background: #f8f9fa;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 10;
}

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

.payment-item:hover .payment-tooltip {
  opacity: 1;
  visibility: visible;
}

.payment-item img {
  max-height: 50px;
  object-fit: contain;
}

.payment-tooltip {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  background: #35587a;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-weight: 500;
  z-index: 100;
  pointer-events: none;
}

/* Payment item hover background colors */
.payment-item-blue:hover   { background: #e3f2fd; }
.payment-item-red:hover    { background: #ffe3e3; }
.payment-item-orange:hover { background: #fff3e0; }
.payment-item-green:hover  { background: #f1f8e9; }
