/* Reset y Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #10b981;
  --accent-color: #f59e0b;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --background: #ffffff;
  --surface: #f9fafb;
  --border: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  max-width: 150px; /* Tamaño máximo en pantalla */
  width: 100%; /* Se adapta al contenedor */
  height: auto; /* Mantiene proporción original */
  display: block; /* Elimina espacios extra debajo de la imagen */
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-logo i {
  margin-right: 0.5rem;
  font-size: 1.8rem;
}

/* Espacio entre logo y el primer campo */
.contact-info2:first-of-type {
  margin-left: 50px;
}

/* Espacio extra entre correo y teléfono */
.contact-info2:last-of-type {
  margin-left: 30px; /* Aumenta este valor si quieres más separación */
}

.contact-info2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  color: #003366;
}

.contact-info2 i {
  font-size: 14px;
  color: #003366;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  padding: 1rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.3s ease;
}

.dropdown-content a:hover {
  background: var(--surface);
  color: var(--primary-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
}

/*mision vision section */
/* Estilo para la sección de Misión y Visión */
.mision-vision {
  background-color: #f9f9f9; /* Fondo claro */
  padding: 50px 0;
}

.mision-vision .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.mision-vision .section-title {
  font-size: 32px;
  font-weight: 600;
  color: #003366; /* Azul oscuro */
}

.mision-vision .section-subtitle {
  font-size: 18px;
  color: #666;
  margin-top: 10px;
}

/* Estilo para las tarjetas de Misión y Visión */
.mision-vision-cards {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
}

.mision-card,
.vision-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 48%; /* Ajustamos el tamaño de las tarjetas */
  text-align: center;
}

.mision-card .card-icon,
.vision-card .card-icon {
  font-size: 40px;
  color: #003366;
  margin-bottom: 15px;
}

.mision-card h3,
.vision-card h3 {
  font-size: 22px;
  color: #003366;
  font-weight: 600;
}

.mision-card p,
.vision-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* Responsividad */
@media (max-width: 768px) {
  .mision-vision-cards {
    flex-direction: column;
    gap: 20px;
  }

  .mision-card,
  .vision-card {
    width: 100%; /* Las tarjetas ocupan todo el ancho en pantallas pequeñas */
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.carousel-container {
  width: 100%;
  position: relative;
}

.carousel-slide {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.carousel-slide.active {
  display: block;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 80vh;
}

.hero-text {
  color: white;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--secondary-color);
  color: white;
}

.btn-primary:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-color);
}

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

.carousel-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.carousel-image:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.floating-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  color: white;
  animation: float 3s ease-in-out infinite;
}

.floating-card i {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.floating-card span {
  font-size: 1.2rem;
  font-weight: 600;
}

.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  transform: scale(1.2);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
}

/* Services Section */
.services {
  padding: 6rem 0;
  background: var(--surface);
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

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

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon i {
  font-size: 2rem;
  color: white;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

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

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.features-list i {
  color: var(--secondary-color);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* Partners Section */
.partners {
  padding: 6rem 0;
  background: white;
}

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

.partner-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

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

.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.partner-logo i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.partner-logo span {
  font-weight: 600;
  color: var(--text-primary);
}

/* Partners Section */
.partners {
  padding: 6rem 0;
  background: white;
  position: relative;
  overflow: hidden;
}

.partners::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.partners-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.partner-logo-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}

.partner-logo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
  transition: left 0.5s ease;
}

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

.partner-logo-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.partner-logo-img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: grayscale(0.3);
}

.partner-logo-card:hover .partner-logo-img {
  transform: scale(1.1);
  filter: grayscale(0);
}

/* Partners Stats */
.partners-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--gradient-primary);
  border-radius: 20px;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* Emergency Guide Section */
.emergency-guide {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
}

.emergency-guide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.emergency-content {
  max-width: 1200px;
  margin: 0 auto;
}

.emergency-header {
  text-align: center;
  margin-bottom: 4rem;
}

.emergency-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.emergency-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.emergency-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.emergency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.emergency-contacts h3,
.emergency-steps h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

/* Contact List Styles */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item-emergency {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.contact-item-emergency:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.contact-logo {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.logo-small {
  max-width: 45px;
  max-height: 45px;
  object-fit: contain;
}

.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.contact-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-number:hover {
  color: var(--primary-dark);
}

.contact-alt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Steps List Styles */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.step-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-item p {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.5;
  font-weight: 500;
}

/* Emergency Button */
.emergency-button-container {
  text-align: center;
}

.btn-emergency {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
  transition: all 0.3s ease;
  animation: pulse-emergency 2s infinite;
}

.btn-emergency:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.4);
}

.btn-emergency i {
  font-size: 1.2rem;
}

@keyframes pulse-emergency {
  0%,
  100% {
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
  }
  50% {
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.5), 0 0 0 10px rgba(220, 38, 38, 0.1);
  }
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.whatsapp-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  animation: whatsapp-pulse 2s infinite;
  font-weight: 600;
  font-size: 0.95rem;
  max-width: 60px;
  overflow: hidden;
  white-space: nowrap;
}

.whatsapp-button:hover {
  background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
  max-width: 200px;
}

.whatsapp-button i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.whatsapp-text {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.whatsapp-button:hover .whatsapp-text {
  opacity: 1;
  transform: translateX(0);
}

@keyframes whatsapp-pulse {
  0%,
  100% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  }
  50% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5), 0 0 0 10px rgba(37, 211, 102, 0.1);
  }
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: var(--gradient-primary);
  color: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.contact-item i {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-item p {
  opacity: 0.8;
  margin: 0;
}

.contact-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-group select {
  color: white;
}

.form-group select option {
  background: var(--primary-color);
  color: white;
}

.btn-full {
  width: 100%;
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.footer-section p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

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

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

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

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  .carousel-image {
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
  }

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

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* AOS Animation styles */
[data-aos] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

/* Mejoras generales para responsive */
img {
  max-width: 100%;
  height: auto;
}

.logo {
  max-width: 120px;
}

/* Prevenir overflow horizontal */
body {
  overflow-x: hidden;
}

* {
  max-width: 100%;
}

/* Ajustar contenedores que puedan causar overflow */
.nav-container,
.hero-content,
.container {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-container {
    padding: 0 15px;
  }

  .nav-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .contact-info2 {
    display: none; /* Ocultar en móvil para ahorrar espacio */
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem 0;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero {
    min-height: 100vh;
    padding: 80px 0 20px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 0 15px;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.3;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .carousel-image {
    max-width: 90%;
    margin: 0 auto;
    display: block;
  }

  .carousel-indicators {
    bottom: 1rem;
  }

  .scroll-indicator {
    display: none;
  }

  .container {
    padding: 0 15px;
  }

  .section-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: 1rem;
    padding: 0 10px;
  }

  .services {
    padding: 4rem 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
    margin: 0 10px;
  }

  .mision-vision {
    padding: 3rem 0;
  }

  .mision-vision-cards {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 15px;
  }

  .mision-card,
  .vision-card {
    width: 100%;
    padding: 1.5rem;
  }

  .partners {
    padding: 4rem 0;
  }

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

  .partners-logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .partner-logo-card {
    padding: 1rem;
    min-height: 80px;
  }

  .partner-logo-img {
    max-height: 50px;
  }

  .emergency-guide {
    padding: 4rem 0;
  }

  .emergency-title {
    font-size: 1.8rem;
    line-height: 1.3;
    padding: 0 15px;
  }

  .emergency-description {
    font-size: 1rem;
    padding: 0 15px;
  }

  .emergency-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 15px;
  }

  .contact-item-emergency {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .contact-logo {
    width: 50px;
    height: 50px;
  }

  .logo-small {
    max-width: 35px;
    max-height: 35px;
  }

  .contact-number {
    font-size: 1rem;
  }

  .step-item {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .step-item:hover {
    transform: translateY(-5px);
  }

  .contact {
    padding: 4rem 0;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 15px;
  }

  .contact-info h2 {
    font-size: 2rem;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .footer {
    padding: 2rem 0 1rem;
  }

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

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-button {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .whatsapp-button:hover {
    max-width: 60px; /* Mantener compacto en móvil */
  }

  .whatsapp-text {
    display: none; /* Ocultar texto en móvil */
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

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

  .partners-grid,
  .partners-logos-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    margin: 0 5px;
  }

  .emergency-title {
    font-size: 1.5rem;
  }

  .contact-info h2 {
    font-size: 1.8rem;
  }

  .hero-content {
    padding: 0 10px;
  }

  .container {
    padding: 0 10px;
  }
}

/* Ajustes adicionales para muy pequeñas pantallas */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .service-card,
  .mision-card,
  .vision-card {
    margin: 0;
  }

  .emergency-grid,
  .contact-content {
    padding: 0 10px;
  }
}