/* =============== VARIABLES CSS =============== */
:root {
  /* Colors */
  --primary-color: #FF6B35;
  --secondary-color: #4A90E2;
  --accent-color: #2C3E50;
  --success-color: #27AE60;
  --warning-color: #F39C12;
  --danger-color: #E74C3C;
  
  /* Gray Scale */
  --white-color: #FFFFFF;
  --light-gray: #F8F9FA;
  --gray-100: #F1F3F4;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --dark-color: #212529;
  
  /* Typography */
  --body-font: 'Inter', system-ui, -apple-system, sans-serif;
  --biggest-font-size: 3rem;
  --h1-font-size: 2.5rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.2rem;
  --h4-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;
  
  /* Font Weight */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-black: 800;
  
  /* Spacing */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-25: 1.25rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;
  --mb-4: 4rem;
  
  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --border-radius-sm: 0.375rem;
  --border-radius: 0.5rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
}

/* Responsive Typography - REMOVED */
/* Los tamaños de fuente ahora son consistentes en todas las pantallas */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular);
  color: var(--gray-700);
  background-color: var(--white-color);
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

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

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: var(--transition-fast);
}

input, textarea, select {
  font-family: inherit;
  outline: none;
  border: none;
}

/* =============== REUSABLE CSS CLASSES =============== */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section {
  padding: var(--mb-4) 0;
}

.section__header {
  text-align: center;
  margin-bottom: var(--mb-3);
}

.section__subtitle {
  display: inline-block;
  font-size: var(--small-font-size);
  font-weight: var(--font-semibold);
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--mb-0-5);
}

.section__title {
  font-size: 1.1rem;
  color: var(--dark-color);
  margin-bottom: var(--mb-1);
}

.section__description {
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: var(--mb-0-5);
  padding: 1rem 2rem;
  border-radius: var(--border-radius-md);
  font-weight: var(--font-semibold);
  font-size: 0.8rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}

.button--primary {
  background: linear-gradient(135deg, var(--primary-color), #FF7A47);
  color: var(--white-color);
  box-shadow: var(--shadow-lg);
}

.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, #FF5722, var(--primary-color));
}

.button--outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.button--outline:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.button--secondary {
  background: linear-gradient(135deg, var(--secondary-color), #5BA0F2);
  color: var(--white-color);
  box-shadow: var(--shadow-lg);
}

.button--secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, #3A7BD5, var(--secondary-color));
}

/*=============== TOP BAR ===============*/
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  z-index: calc(var(--z-fixed) + 1);
  padding: 0.75rem 0;
  font-size: var(--small-font-size);
  height: 3rem;
  display: flex;
  align-items: center;
}

.top-bar__container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.top-bar__contact {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.top-bar__link {
  color: var(--white-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.top-bar__link:hover {
  color: var(--secondary-color);
}

.top-bar__link i {
  font-size: 0.875rem;
}

/* =============== HEADER =============== */
.header {
  position: fixed;
  top: 3rem; /* Ajustado para estar exactamente debajo de la top bar */
  left: 0;
  width: 100%;
  background: #2f4255;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  z-index: var(--z-fixed);
  transition: var(--transition);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--mb-0-5);
  color: var(--dark-color);
  font-weight: var(--font-bold);
  font-size: var(--h4-font-size);
}

.nav__logo-img {
  width: 120px;
  height: 120px;
  border-radius: 10%;
  object-fit: cover;
  padding: 5px;
}

.nav__menu {
  display: flex;
  align-items: center;
}

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

.nav__link {
  color: var(--gray-300);
  font-weight: var(--font-medium);
  padding: var(--mb-0-5) var(--mb-1);
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
  position: relative;
}

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

.nav__link.active-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/*=============== MAIN ===============*/
.main {
  overflow: hidden; /* For the animations ScrollReveal*/
  padding-top: 6rem; /* Ajustado para compensar la top bar (3rem) y header (3rem) */
}

/* =============== HERO =============== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mb-4);
  align-items: center;
  min-height: 80vh;
}

.hero__content {
  z-index: 2;
}

.hero__title {
  font-size: 1.5rem;
  margin-bottom: var(--mb-1-5);
  line-height: 1.1;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__description {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: var(--mb-2-5);
  line-height: 1.6;
}

.hero__buttons {
  display: flex;
  gap: var(--mb-1-5);
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin-top: 120px;
}

.hero__img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.hero__image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(74, 144, 226, 0.1));
}

/* =============== ABOUT =============== */
.about {
  background: var(--white-color);
}

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

.about__description {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: var(--mb-2);
  line-height: 1.6;
}

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

.about__item {
  display: flex;
  gap: var(--mb-1);
}

.about__item-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.about__item-title {
  font-size: 1.1rem;
  margin-bottom: var(--mb-0-5);
  color: var(--dark-color);
}

.about__item-description {
  color: var(--gray-600);
  line-height: 1.6;
}

.about__image {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* =============== CHALLENGE =============== */
.challenge {
  background: linear-gradient(135deg, var(--accent-color), #34495E);
  color: var(--white-color);
}

.challenge__container {
  color: var(--white-color);
}

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

.challenge__subtitle {
  color: var(--primary-color);
}

.challenge__title {
  color: var(--white-color);
}

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

.challenge__item {
  display: flex;
  gap: var(--mb-1);
  padding: var(--mb-1-5);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(10px);
}

.challenge__item-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.challenge__item-content h3 {
  color: var(--white-color);
  margin-bottom: var(--mb-0-5);
  font-size: 1rem;
}

.challenge__item-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.challenge__image {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.challenge__img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

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

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

.services__card {
  background: var(--white-color);
  padding: var(--mb-2-5);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.services__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.services__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.services__card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 2rem;
  margin-bottom: var(--mb-1-5);
}

.services__card-title {
  font-size: 1rem;
  margin-bottom: var(--mb-1);
  color: var(--dark-color);
}

.services__card-description {
  color: var(--gray-600);
  margin-bottom: var(--mb-1-5);
  line-height: 1.6;
  font-size: 0.8rem;
}

.services__card-features {
  list-style: none;
  flex-grow: 1;
  margin-bottom: var(--mb-1-5);
  font-size: 0.8rem;
}

.services__card-features li {
  display: flex;
  align-items: center;
  gap: var(--mb-0-5);
  margin-bottom: var(--mb-0-5);
  color: var(--gray-600);
}

.services__card-features i {
  color: var(--success-color);
  font-size: 0.875rem;
}

/* =============== BENEFITS =============== */
.benefits {
  background: var(--white-color);
}

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

.benefits__image {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.benefits__img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

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

.benefits__item {
  padding: var(--mb-1-5);
  border-radius: var(--border-radius-md);
  background: var(--light-gray);
  transition: var(--transition);
}

.benefits__item:hover {
  background: rgba(255, 107, 53, 0.05);
  transform: translateX(10px);
}

.benefits__item-header {
  display: flex;
  align-items: center;
  gap: var(--mb-1);
  margin-bottom: var(--mb-0-75);
}

.benefits__item-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 1.25rem;
}

.benefits__item-title {
  color: var(--dark-color);
  font-size: 1rem;
}

.benefits__item-description {
  color: var(--gray-600);
  line-height: 1.6;
  font-size: 0.8rem;
}

/* =============== WHY US =============== */
.why-us {
  background: linear-gradient(135deg, var(--light-gray), var(--gray-100));
}

.why-us__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--mb-2);
  margin-top: var(--mb-3);
  margin-bottom: var(--mb-3);
}

.why-us__card {
  background: var(--white-color);
  padding: var(--mb-2-5);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.why-us__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.why-us__card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.why-us__card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 2rem;
  margin: 0 auto var(--mb-1-5);
}

.why-us__card-title {
  font-size: 1rem;
  margin-bottom: var(--mb-1);
  color: var(--dark-color);
}

.why-us__card-description {
  color: var(--gray-600);
  line-height: 1.6;
  font-size: 0.8rem;
}

.why-us__image {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin-top: var(--mb-2);
}

.why-us__img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

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

.contact__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mb-4);
  margin-top: var(--mb-3);
}

.contact__header {
  text-align: left;
}

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

.contact__info-item {
  display: flex;
  gap: var(--mb-1);
  padding: var(--mb-1-5);
  background: var(--light-gray);
  border-radius: var(--border-radius-md);
}

.contact__info-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact__info-content h3 {
  color: var(--dark-color);
  margin-bottom: var(--mb-0-25);
  font-size: 1rem;
}

.contact__info-content a {
  color: var(--gray-600);
  display: block;
  margin-bottom: var(--mb-0-25);
  font-size: 0.9rem;
}

.contact__info-content p {
  font-size: 0.9rem;
}

.contact__info-content a:hover {
  color: var(--primary-color);
}

.contact__map {
  margin-top: var(--mb-2);
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(3,74,40,.15);
}

.contact__map iframe {
  border-radius: .5rem;
}

.contact__form {
  background: var(--light-gray);
  padding: var(--mb-2-5);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
}

.contact__form-header {
  text-align: center;
  margin-bottom: var(--mb-2);
}

.contact__form-header h3 {
  color: var(--dark-color);
  margin-bottom: var(--mb-0-5);
}

.contact__form-header p {
  color: var(--gray-600);
}

.contact__form-group {
  position: relative;
  margin-bottom: var(--mb-1-5);
}

.contact__form-input {
  width: 100%;
  padding: 1rem;
  background: var(--white-color);
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  font-size: var(--normal-font-size);
  color: var(--dark-color);
  transition: var(--transition-fast);
}

.contact__form-input:focus {
  border-color: var(--primary-color);
  background: var(--white-color);
}

.contact__form-input:not(:placeholder-shown) {
  border-color: var(--primary-color);
}

.contact__form-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--gray-500);
  transition: var(--transition-fast);
  pointer-events: none;
  background: var(--white-color);
  padding: 0 0.25rem;
}

.contact__form-input:focus + .contact__form-label,
.contact__form-input:not(:placeholder-shown) + .contact__form-label {
  transform: translateY(-1.5rem) scale(0.875);
  color: var(--primary-color);
}

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

.contact__form-button {
  width: 100%;
  margin-top: var(--mb-1);
}

.contact__form-message {
  text-align: center;
  margin-top: var(--mb-1);
  padding: var(--mb-0-75);
  border-radius: var(--border-radius);
  font-weight: var(--font-medium);
  opacity: 0;
  transition: var(--transition);
}

.contact__form-message.success {
  background: rgba(39, 174, 96, 0.1);
  color: var(--success-color);
  opacity: 1;
}

.contact__form-message.error {
  background: rgba(231, 76, 60, 0.1);
  color: var(--danger-color);
  opacity: 1;
}

/* =============== FOOTER =============== */
.footer {
  background: linear-gradient(135deg, var(--dark-color), var(--accent-color));
  color: var(--white-color);
  padding: var(--mb-4) 0 var(--mb-2);
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--mb-2-5);
  margin-bottom: var(--mb-2);
}

.footer__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--mb-0-5);
  margin-bottom: var(--mb-1);
}

.footer__logo-img {
  width: 140px;
  height: 140px;
  border-radius: 10%;
  object-fit: cover;
}

.footer__logo-title {
  color: var(--white-color);
  font-size: var(--h3-font-size);
}

.footer__description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: var(--mb-1-5);
}

.footer__title {
  color: var(--white-color);
  font-size: var(--h4-font-size);
  margin-bottom: var(--mb-1);
}

.footer__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--mb-0-5);
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--mb-0-5);
}

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

.footer__icon {
  font-size: 1rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--mb-1-5);
  text-align: center;
}

.footer__copy {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--small-font-size);
}

/* =============== SERVICES CARD BUTTON =============== */
.services__card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25D366;
  color: var(--white-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: var(--font-medium);
  font-size: var(--small-font-size);
  margin-top: auto;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.services__card-button:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.services__card-button i {
  font-size: 1.2rem;
}

/* =============== WHATSAPP FLOATING BUTTON =============== */
.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 8rem;
  background: #25D366;
  padding: 1rem;
  border-radius: 50%;
  color: var(--white-color);
  font-size: 1.5rem;
  z-index: var(--z-tooltip);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.whatsapp-float:hover {
  background: #128C7E;
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* =============== SCROLL UP =============== */
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 1rem;
  border-radius: 50%;
  color: var(--white-color);
  font-size: 1.25rem;
  z-index: var(--z-tooltip);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.scrollup:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.scrollup.show-scroll {
  bottom: 3rem;
}

/*=============== POPUP EXITO ===============*/
#popupExito {
  display: none;
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 1rem;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  text-align: center;
  z-index: 1000;
}

/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (max-width: 992px) {
  .container {
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
  }
  
  .hero__container,
  .about__content,
  .challenge__content,
  .benefits__content,
  .contact__content {
    grid-template-columns: 1fr;
    gap: var(--mb-2-5);
  }
  
  .hero__image,
  .about__image,
  .challenge__image,
  .benefits__image {
    order: -1;
  }
  
  .hero__img,
  .about__img,
  .challenge__img,
  .benefits__img {
    height: 300px;
  }
  
  .services__content {
    grid-template-columns: 1fr;
  }
  
  .why-us__content {
    grid-template-columns: 1fr;
  }
}

/* For medium devices */
@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    left: -100%;
    top: 4.5rem;
    width: 100%;
    height: calc(100vh - 4.5rem);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: var(--mb-2-5) var(--mb-1-5);
    transition: var(--transition);
  }
  
  .nav__menu.show-menu {
    left: 0;
  }
  
  .nav__list {
    flex-direction: column;
    gap: var(--mb-1-5);
  }
  
  .nav__link {
    padding: var(--mb-1);
    font-size: var(--h4-font-size);
    color: var(--dark-color) !important;
  }
  
  .nav__toggle,
  .nav__close {
    display: block;
  }
  
  .nav__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  
  .hero__buttons {
    flex-direction: column;
  }
  
  .section {
    padding: var(--mb-3) 0;
  }
  
  .contact__form {
    margin-top: var(--mb-2);
  }
}

/* For small devices */
@media screen and (max-width: 568px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }
  
  .hero__title {
    font-size: 1.5rem;
  }
  
  .hero__description {
    font-size: var(--normal-font-size);
  }
  
  .services__content {
    grid-template-columns: 1fr;
  }
  
  .services__card {
    padding: var(--mb-1-5);
  }
  
  .hero__img,
  .about__img,
  .challenge__img,
  .benefits__img {
    height: 250px;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    bottom: 7rem;
  }
  
  .scrollup {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
  
  .services__card-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }


/*=============== MEDIA QUERIES ===============*/
/* For medium devices */
@media screen and (min-width: 568px) {
  .top-bar__contact {
    gap: 3rem;
  }

  .hero__content {
    grid-template-columns: max-content 1fr 1fr;
  }

  .hero__data {
    grid-column: initial;
  }

  .hero__img {
    order: 1;
    justify-self: center;
  }

  .about__container,
  .skills__container,
  .portfolio__content,
  .project__container,
  .contact__container,
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .qualification__sections {
    display: grid;
    grid-template-columns: .6fr;
    justify-content: center;
  }
}

@media screen and (min-width: 768px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  body {
    margin: 0;
  }

  .section {
    padding: 6rem 0 2rem;
  }

  .section__subtitle {
    margin-bottom: 4rem;
  }

  .header {
    top: 3rem; /* Mantener debajo de la top bar en tablets */
    bottom: initial;
  }

  .top-bar {
    height: 3rem;
  }

  .header,
  .main,
  .footer__container {
    padding: 0 1rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
    column-gap: 1rem;
  }

  .nav__icon,
  .nav__close,
  .nav__toggle {
    display: none;
  }

  .nav__list {
    display: flex;
    column-gap: 2rem;
  }

  .nav__menu {
    margin-left: auto;
  }

  .change-theme {
    margin: 0;
  }

  .hero__container {
    row-gap: 5rem;
  }

  .hero__content {
    padding-top: 5.5rem;
    column-gap: 2rem;
  }

  .hero__blob {
    width: 270px;
  }

  .hero__scroll {
    display: block;
  }

  .hero__scroll-button {
    margin-left: 3rem;
  }

  .about__container {
    column-gap: 5rem;
  }

  .about__img {
    width: 100%;
    height: 400px;
    object-fit: cover;
  }

  .about__description {
    text-align: initial;
  }

  .about__info {
    justify-content: space-between;
  }

  .about__buttons {
    justify-content: initial;
  }

  .qualification__tabs {
    justify-content: center;
  }

  .qualification__button {
    margin: 0 var(--mb-1);
  }

  .qualification__sections {
    grid-template-columns: .5fr;
  }

  .services__container {
    grid-template-columns: repeat(3, 218px);
    justify-content: center;
  }

  .services__icon {
    font-size: 2rem;
  }

  .services__content {
    padding: 6rem 0 2rem 2.5rem;
  }

  .services__modal-content {
    width: 450px;
  }

  .portfolio__img {
    width: 320px;
  }

  .portfolio__content {
    align-items: center;
  }

  .project {
    text-align: initial;
  }

  .project__bg {
    background: none;
  }

  .project__container {
    background-color: var(--first-color-second);
    border-radius: 1rem;
    padding: 3rem 2.5rem 0;
    grid-template-columns: 1fr max-content;
    column-gap: 3rem;
  }

  .project__data {
    padding-top: .8rem;
  }

  .footer__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__bg {
    padding: 3rem 0 3.5rem;
  }

  .footer__links {
    flex-direction: row;
    column-gap: 2rem;
  }

  .footer__socials {
    justify-self: flex-end;
  }

  .footer__copy {
    margin-top: 4.5rem;
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .header,
  .main,
  .footer__container {
    padding: 0;
  }

  .hero__blob {
    width: 320px;
  }

  .hero__social {
    transform: translateX(-6rem);
  }

  .services__container {
    grid-template-columns: repeat(3, 238px);
  }

  .portfolio__content {
    column-gap: 5rem;
  }

  .swiper-portfolio-icon {
    font-size: 3.5rem;
  }

  .swiper-button-prev {
    left: -3.5rem;
  }

  .swiper-button-next {
    right: -3.5rem;
  }

  .swiper-container-horizontal > .swiper-pagination-bullets {
    bottom: -4.5rem;
  }

  .contact__form {
    width: 460px;
  }

  .contact__inputs {
    grid-template-columns: repeat(2, 1fr);
  }
}



@media screen and (max-width: 420px) {

  .top-bar {
    padding-top: 35px !important;
    padding-bottom: 35px !important;
  }

  .top-bar__contact {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    align-items: center;
  }

  .header {
    margin-top: 20px;
  }

}



/* For extra small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }



  .top-bar__container {
    width: 100%;
  }

  .top-bar__contact {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    align-items: center;
  }

  .top-bar__link {
    font-size: 0.75rem;
  }

  .nav__menu {
    padding: 2rem .25rem 4rem;
  }

  .nav__list {
    column-gap: 0;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .hero__description {
    font-size: var(--small-font-size);
  }

  .services__card {
    padding: var(--mb-1);
  }

  .hero__img,
  .about__img,
  .challenge__img,
  .benefits__img {
    height: 200px;
  }

  .whatsapp-float,
  .scrollup {
    width: 45px;
    height: 45px;
    font-size: 1rem;
    bottom: 1rem;
  }

  .services__card-button {
    font-size: var(--small-font-size);
    padding: 0.5rem 1rem;
  }
}

/* =============== ANIMATIONS =============== */
@keyframes fadeInUp {
  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);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

/* =============== DARK THEME (FORCED) =============== */
/* Tema oscuro aplicado por defecto - media query removida */

/* =============== PRINT STYLES =============== */
@media print {
  .header,
  .scrollup,
  .whatsapp-float,
  .nav__toggle,
  .nav__close {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .hero__title {
    font-size: 24pt;
  }
  
  .section__title {
    font-size: 18pt;
  }
}
