body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #333;
  background-color: white;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

header {
  background: #31dffa;
  color: white;
  padding: 0.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.logo-container img {
  width: 60px;
  transition: all 0.3s ease;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #333;
  background-color: white;
  padding-top: 70px;
}

header.scrolled {
  padding: 0.3rem 0;
  background: rgba(6, 204, 235, 0.95);
  backdrop-filter: blur(10px);
}

header.scrolled .logo-container img {
  width: 50px;
}

/* HEADER CON MENÚ PEGADO A LA DERECHA */
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

nav {
  margin-left: auto; /* Empuja el menú a la derecha */
  margin-right: 0;
}

/* MEJORAS DE TIPOGRAFÍA DEL MENÚ */
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
  font-family: 'Inter', sans-serif;
}

/* Efecto hover mejorado */
nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffffff, #a0e7ff, #ffffff);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(160, 231, 255, 0.8);
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

/* Para móviles, reducir efectos */
@media (max-width: 768px) {
  nav a:hover {
    text-shadow: none;
    transform: none;
  }
  
  nav a:hover::after {
    width: 0;
  }
}

/* Hero section actualizada */
.hero {
  background: linear-gradient(rgba(2, 221, 255, 0.85), rgba(238, 247, 248, 0.50)),
              url('../assets/img/background.png') center/cover;
  padding: 4rem 0;
  color: white;
  position: relative;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3rem;
  min-height: 70vh;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  background: #ffffff;
  color: #06cceb;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: transparent;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: #ffffff;
  color: #06cceb;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 0.875rem 1.5rem;
    width: 200px;
    text-align: center;
  }
}

.services {
  background: linear-gradient(rgba(245, 245, 245, 0.9), rgba(245, 245, 245, 0.9)),
              url('../assets/img/background-nurses.jpg') center/cover;
  padding: 4rem 0;
  position: relative;
}

/* Fallback si no hay imagen */
.services:not([style*="background-image"]) {
  background: #f5f5f5;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.services .service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.services .service-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.services .service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.services .service-card.highlight {
  background: linear-gradient(135deg, #06cceb, #007b8f);
  color: white;
}

.services .service-card.highlight h3 {
  color: white;
}

.about,
.contact {
  padding: 4rem 0;
  text-align: center;
}

.about .features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.about .feature {
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  text-align: left;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.contact-info h3 {
  color: #06b5cf;
  margin-bottom: 1.5rem;
}

.contact-info a {
  color: #06cceb;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form input,
form textarea,
form select {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

form .btn {
  background: #05b7d3;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 1rem;
  border-radius: 4px;
  font-size: 1rem;
}

form .btn:hover {
  background: #06cceb;
  transform: translateY(-2px);
}

/* ESTILOS PARA MENSAJES DEL FORMULARIO */
.success-message {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  border: 1px solid #c3e6cb;
  text-align: center;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  border: 1px solid #f5c6cb;
  text-align: center;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Botón en estado de éxito */
.btn.success {
  background: #28a745 !important;
}

footer {
  background: #06cceb;
  color: white;
  padding: 2rem 0 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-info p {
  margin: 0.5rem 0;
  max-width: 500px;
}

footer .container > p {
  text-align: center;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.header {
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.btn {
  transition: all 0.3s ease;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.status {
  margin-top: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.status.loading {
  color: #999;
}

.status.error {
  color: #e74c3c;
}

.status.success {
  color: #2ecc71;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #06cceb;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    margin-right: 0;
  }

  nav ul.active {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Menú responsive */
  nav a {
    font-size: 1.1rem;
    padding: 0.75rem 0;
    text-align: center;
  }

  /* En móviles, el menú hamburguesa se alinea a la derecha */
  nav {
    margin-left: auto;
  }

  /* Mensajes responsive */
  .success-message,
  .error-message {
    padding: 0.875rem;
    font-size: 0.9rem;
  }
}

.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../assets/img/whatsappicon.png');
  background-size: 30px;
  background-repeat: no-repeat;
  background-position: center;
  text-indent: -9999px;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.3);
}

.logo-text {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

/* Para móviles */
@media (max-width: 768px) {
  .logo-container {
    gap: 0.75rem;
  }
  
  .logo-text {
    font-size: 1.3rem;
  }
  
  .logo-divider {
    height: 25px;
  }
  
  .logo-container img {
    width: 50px;
  }
}