/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #00A3E0;
  --secondary-color: #F1B434;
  --dark-color: #333;
  --light-color: #fff;
  --gray-color: #666;
  --light-gray: #f8f9ff;
  --border-color: #e6f2ff;
  
  /* Typography */
  --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --big-font-size: 3.5rem;
  --h1-font-size: 2.5rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.5rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  
  /* Font Weight */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  --font-extra-bold: 800;
  
  /* Margins */
  --mb-0-5: 0.5rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;
  
  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  line-height: 1.6;
  color: var(--dark-color);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  color: var(--dark-color);
  font-weight: var(--font-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--mb-1);
}

.section {
  padding: 6rem 0;
}

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-1);
  color: var(--dark-color);
}

.section__subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: var(--mb-3);
  color: var(--primary-color);
  font-weight: var(--font-semi-bold);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  transition: var(--transition);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.nav__logo {
  font-size: 2.2rem;
  font-weight: var(--font-bold);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.nav__logo:hover {
  transform: scale(1.05);
}

.nav__logo-n {
  background: var(--secondary-color);
  color: var(--light-color);
  padding: 0.2rem 0.4rem;
  border-radius: 8px;
  font-weight: var(--font-extra-bold);
}

.nav__menu {
  position: relative;
}

.nav__list {
  display: flex;
  gap: var(--mb-2);
}

.nav__link {
  color: var(--dark-color);
  font-weight: var(--font-medium);
  position: relative;
  transition: var(--transition);
}

.nav__link:hover {
  color: var(--primary-color);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

/* Mobile Navigation */
.nav__toggle,
.nav__close {
  display: none;
  cursor: pointer;
}

.nav__toggle {
  flex-direction: column;
  width: 25px;
  height: 20px;
  justify-content: space-between;
}

.nav__toggle-line {
  width: 100%;
  height: 3px;
  background: var(--dark-color);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--dark-color);
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--light-color);
  padding: 9rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>') center/cover;
  opacity: 0.1;
}

.hero__circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.circle {
  position: absolute;
  background: rgba(0, 163, 224, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.circle:nth-child(1) { width: 80px; height: 80px; top: 10%; left: 10%; animation-delay: 0s; }
.circle:nth-child(2) { width: 120px; height: 120px; top: 20%; left: 80%; animation-delay: 1s; }
.circle:nth-child(3) { width: 60px; height: 60px; top: 60%; left: 5%; animation-delay: 2s; }
.circle:nth-child(4) { width: 100px; height: 100px; top: 80%; left: 90%; animation-delay: 3s; }
.circle:nth-child(5) { width: 40px; height: 40px; top: 40%; left: 60%; animation-delay: 4s; }

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-1);
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

.hero__subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--mb-1);
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
  color: var(--secondary-color);
  font-weight: var(--font-semi-bold);
}

.hero__description {
  font-size: 1.2rem;
  margin-bottom: var(--mb-2);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 1s ease 0.7s forwards;
}

.hero__cta {
  display: inline-block;
  background: var(--light-color);
  color: var(--primary-color);
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  font-weight: var(--font-semi-bold);
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: var(--secondary-color);
  color: var(--light-color);
}

/* ===== ANIMATED BANNER ===== */
.banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--light-color);
  padding: 2.5rem 0;
  overflow: hidden;
  position: relative;
}

.banner__content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  position: relative;
}

.banner__text {
  font-size: 1.4rem;
  font-weight: var(--font-semi-bold);
  text-align: center;
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  animation: textRotate 24s linear infinite;
}

.banner__text:nth-child(1) { animation-delay: 0s; }
.banner__text:nth-child(2) { animation-delay: 4s; }
.banner__text:nth-child(3) { animation-delay: 8s; }
.banner__text:nth-child(4) { animation-delay: 12s; }
.banner__text:nth-child(5) { animation-delay: 16s; }
.banner__text:nth-child(6) { animation-delay: 20s; }

.banner__particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: floatParticle 8s linear infinite;
}

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

/* ===== SERVICES SECTION ===== */
.services {
  background: var(--light-color);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--mb-2);
}

.service {
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--border-color) 100%);
  padding: var(--mb-2);
  border-radius: 20px;
  transition: var(--transition);
  border: 1px solid rgba(0, 163, 224, 0.1);
  position: relative;
  overflow: hidden;
  text-align: center; /* Centrar contenido */
}

.service::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 163, 224, 0.1) 0%, transparent 70%);
  transition: var(--transition);
  opacity: 0;
}

.service:hover::before {
  opacity: 1;
  transform: scale(1.2);
}

.service:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 163, 224, 0.2);
}

.service__header {
  display: flex;
  flex-direction: column; /* Cambiar a columna para centrar */
  align-items: center;
  gap: var(--mb-1);
  margin-bottom: var(--mb-1-5);
}

.service__icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.service__title {
  color: var(--dark-color);
  font-size: 1.4rem;
  margin: 0;
}

.service__content {
  margin-bottom: var(--mb-1);
  text-align: center; /* Centrar texto */
}

.service__description {
  color: var(--gray-color);
  line-height: 1.7;
  margin-bottom: var(--mb-1);
}

.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center; /* Centrar tags */
}

.service__tag {
  background: rgba(0, 163, 224, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

/* ===== ABOUT SECTION ===== */
.about {
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--border-color) 100%);
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mb-3);
  align-items: center;
}

.about__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-1);
}

.about__description {
  margin-bottom: var(--mb-1-5);
  color: var(--gray-color);
}

.about__values-title {
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-1);
  color: var(--primary-color);
}

.about__values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--mb-1);
}

.value {
  background: var(--light-color);
  padding: var(--mb-1);
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary-color);
}

.value__title {
  color: var(--primary-color);
  margin-bottom: var(--mb-0-5);
}

.about__image {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  height: 400px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  font-size: 1.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about__image::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

.about__image-content {
  position: relative;
  z-index: 2;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--light-color);
}

.contact__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mb-3);
  align-items: center;
}

.contact__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--mb-1-5);
}

.contact__button {
  display: flex;
  align-items: center;
  gap: var(--mb-1);
  padding: 1.2rem 1.8rem;
  border-radius: 12px;
  font-weight: var(--font-semi-bold);
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}

.contact__button--whatsapp {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #e6a02a 100%);
  color: var(--light-color);
}

.contact__button--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(241, 180, 52, 0.3);
  border-color: rgba(241, 180, 52, 0.4);
}

.contact__button--email {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0088cc 100%);
  color: var(--light-color);
}

.contact__button--email:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 163, 224, 0.3);
  border-color: rgba(0, 163, 224, 0.4);
}

.contact__button-icon {
  font-size: 1.3rem;
}

.contact__button-text h4 {
  margin: 0 0 0.1rem 0;
  font-size: var(--normal-font-size);
}

.contact__button-text p {
  margin: 0;
  opacity: 0.9;
  font-size: var(--small-font-size);
  font-weight: var(--font-regular);
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--mb-2);
}

.contact__item {
  display: flex;
  align-items: center;
  gap: var(--mb-1);
  padding: var(--mb-1);
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--border-color) 100%);
  border-radius: 10px;
}

.contact__item-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  font-size: 1.2rem;
}

.contact__item-content h4 {
  margin-bottom: 0.2rem;
}

.contact__item-content p {
  margin: 0;
  color: var(--gray-color);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-color);
  color: var(--light-color);
  text-align: center;
  padding: var(--mb-2) 0;
}

.footer__text {
  margin: 0;
}

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

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

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

@keyframes textRotate {
  0%, 12.5% { opacity: 0; transform: translateY(20px); }
  16.67%, 20.83% { opacity: 1; transform: translateY(0); }
  25%, 100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes floatParticle {
  0% { 
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { 
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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