/* Estilos generales */
body {
  font-family: Arial, sans-serif;
  background-color: rgb(249, 250, 251);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navegación */
nav {
  background-color: #009688;
  color: white;
  position: sticky;
  top: 0;
  width: 100%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo i {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.logo span {
  font-size: 1.15rem;
  font-weight: bold;
  color: white;
}

/* Estilos para enlaces de navegación */
.nav-links {
  display: flex;
  gap: 1rem;
  font-size: larger;
  padding: 5px;
}

.menu-icon .hamburguesa {
  display: none;
  font-size: 1.5rem;
  color: white;
}

/* Mostrar menú hamburguesa en pantallas pequeñas */
@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #00695c;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
  }

  .nav-links.responsive {
    display: flex;
    padding-bottom: 0;
  }

  .nav-links.responsive .mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
  }

  .nav-links.responsive .mobile-auth-buttons .auth-btn {
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
  }

  .menu-icon .hamburguesa {
    display: block;
  }
}

.nav-container a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  text-align: center;
}

.nav-container a:hover {
  color: #bfdbfe;
  background-color: #009688;
}

/* Cookies */

/* Cookies */

.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 16px;
  z-index: 1000;
  max-width: 90%; /* establece el tamaño máximo de la ventana emergente de cookies */
  display: flex;
  flex-direction: column; /* cambio columnas para que se vea mejor en el navegador */
  align-items: center; /* centrado contenido vertical */
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.cookie-popup.hidden {
  display: none;
}

.cookie-popup a {
  color: #007bff;
  text-decoration: underline;
  font-size: 12px; /* añade un tamaño de fuente menor para el texto */
}

.cookie-button {
  background-color: #009688;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  margin: 5px; /* añade margen para separar los botones */
}

.cookie-button:hover,
.cookie-button:focus {
  background-color: #00e7d0; /* color del hover */
}

@media (max-width: 768px) {
  /* Establece el tamaño máximo de la ventana emergente de cookies en dispositivos móviles */
  .cookie-popup {
    max-width: 90%;
    font-size: 12px;
  }

  .cookie-button {
    font-size: 12px;
  }

  .cookie-button:hover,
  .cookie-button:focus {
    background-color: #00e7d0; /* color del hover */
  }
}

/* Hero Section */
.hero {
  position: relative;
  background-color: transparent;
  color: white;
  padding: 5rem 0;
  text-align: center;
  height: auto;
  /* Cambiado de 100vh a auto */
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.video-background video {
  /*position: absolute;*/
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  /*position: absolute;*/
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 105, 92, 0.7);
}

.hero-container {
  position: relative;
  z-index: 1;
  /* display: block; */
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  /* Añadido padding para dar altura específica a la sección */
}

.hero-content {
  text-align: center;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    1px 1px 0 #000;
}

.hero h1 {
  font-size: 3.75rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  padding: 2px;
}

/* Media queries */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    padding: 3rem 0;
  }

  .hero-logo {
    margin: 0 0 2rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

.cta-button {
  background-color: #009688;
  color: black;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: bold;
  border: none;
  transition: background-color 0.3s;
  cursor: pointer;
}

.cta-button a {
  color: white;
  text-decoration: none;
}

.cta-button:hover {
  background-color: #00695c;
}

/* Servicios */
.services {
  padding: 4rem 0;
  background-color: white;
}

.services h2 {
  font-size: 1.875rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: rgb(249, 250, 251);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
  border: outset;
}

.no-link {
  color: inherit;
  text-decoration: none;
  cursor: default;
}

/* Opcional: cursor pointer al pasar sobre las tarjetas de servicio */
.no-link:hover .service-card {
  cursor: pointer;
}

.service-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-card i {
  font-size: 2.25rem;
  color: #009688;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: #4b5563;
}

/* Blog */
.blog {
  padding: 4rem 0;
  background-color: rgb(243, 244, 246);
}

.blog h2 {
  font-size: 1.875rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.blog-card img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-content h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.blog-content p {
  color: #4b5563;
  margin-bottom: 1rem;
}

.blog-content a {
  color: #3b82f6;
  text-decoration: none;
}

.blog-content a:hover {
  color: #2563eb;
}

/* Testimonios */
.testimonials {
  padding: 4rem 0;
  background-color: white;
}

.testimonials h2 {
  font-size: 1.875rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background-color: rgb(249, 250, 251);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.testimonial-header img {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  margin-right: 1rem;
}

.testimonial-header h4 {
  font-weight: bold;
}

.rating {
  color: #fbbf24;
}

/* Newsletter */
.newsletter {
  background-color: #00695c;
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.newsletter h2 {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.newsletter p {
  margin-bottom: 2rem;
}

.newsletter-form {
  max-width: 28rem;
  margin: 0 auto;
}

.newsletter-form form {
  display: flex;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  color: #1f2937;
}

.newsletter-form button {
  background-color: white;
  color: black;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.newsletter-form button:hover {
  background-color: #dbeafe;
}

/* Footer */
footer {
  background-color: #1f2937;
  color: white;
  padding: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-section h4 {
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-section p {
  color: #9ca3af;
  margin-bottom: 0.3rem;
  margin-top: 0px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.legal-links p {
  color: #9ca3af;
  margin-top: 0.1rem;
  padding: 0;
}

.social-links a,
.legal-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}

.social-links a:hover,
.legal-links a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1rem 0;
  text-align: center;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 600px;
  margin: 0 auto;
  gap: 0.25rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

/* Utilidades adicionales */
.text-center {
  text-align: center;
}

.font-bold {
  font-weight: bold;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .newsletter-form form {
    flex-direction: column;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card,
.blog-card,
.testimonial-card {
  animation: fadeIn 0.5s ease-out;
}

/* Accesibilidad */
:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Ajustes para impresión */
@media print {
  nav,
  .newsletter,
  .social-links {
    display: none;
  }

  body {
    color: black;
    background: white;
  }

  .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }
}
/* Estilo
s para botones de autenticación en navbar */
.auth-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.auth-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.login-btn {
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.login-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: white;
  transform: translateY(-1px);
}

.register-btn {
  background-color: #00796b;
  color: white;
}

.register-btn:hover {
  background-color: #004d40;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Estilos para usuario logueado */
.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.welcome-text {
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
}

.logout-btn {
  background-color: #dc3545;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logout-btn:hover {
  background-color: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilos para modales */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
  margin: 0;
  color: #009688;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.close {
  color: #9ca3af;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.close:hover {
  color: #374151;
  background-color: #f3f4f6;
}

.modal-body {
  padding: 1.5rem 2rem 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #009688;
  box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.1);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.875rem;
}

.checkbox-container input {
  margin-right: 0.5rem;
  width: auto;
}

.forgot-password {
  color: #009688;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.forgot-password:hover {
  color: #00695c;
  text-decoration: underline;
}

.modal-btn {
  width: 100%;
  padding: 0.875rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modal-btn.primary {
  background-color: #009688;
  color: white;
}

.modal-btn.primary:hover {
  background-color: #00695c;
  transform: translateY(-1px);
}

.modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.modal-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.modal-footer p {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
}

.modal-footer a {
  color: #009688;
  text-decoration: none;
  font-weight: 500;
}

.modal-footer a:hover {
  color: #00695c;
  text-decoration: underline;
}

/* Estilos para notificaciones */
.notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 3000;
  min-width: 300px;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  animation: notificationSlideIn 0.3s ease-out;
}

@keyframes notificationSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notification.success {
  background-color: #10b981;
  color: white;
}

.notification.error {
  background-color: #ef4444;
  color: white;
}

.notification.warning {
  background-color: #f59e0b;
  color: white;
}

.notification.info {
  background-color: #3b82f6;
  color: white;
}

.notification-content {
  display: flex;
  align-items: center;
  padding: 1rem;
  gap: 0.75rem;
}

.notification-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  margin-left: auto;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.notification-close:hover {
  opacity: 1;
}



/* Responsive para modales */
@media (max-width: 768px) {
  .auth-buttons {
    display: none; /* Ocultar en móvil, se puede agregar al menú hamburguesa */
  }

  .modal-content {
    margin: 10% auto;
    width: 95%;
  }

  .modal-header,
  .modal-body {
    padding: 1rem;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .notification {
    right: 1rem;
    left: 1rem;
    min-width: auto;
  }
}

/* Mejoras para el menú móvil - agregar botones de auth */
@media (max-width: 768px) {
  .nav-links.mobile-menu-open {
    display: flex;
    flex-direction: column;
  }

  .mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-auth-buttons .auth-btn {
    justify-content: center;
    width: 100%;
  }
}
/* Advertencia de contenido mixto */
.mixed-content-warning {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  padding: 10px;
  margin-top: 5px;
  font-size: 0.9em;
  color: #856404;
}

.mixed-content-warning i {
  color: #f39c12;
  margin-right: 5px;
}/* Men
saje informativo de demo */
.demo-notice {
  margin-top: 10px;
  padding: 8px;
  background-color: #e3f2fd;
  border: 1px solid #bbdefb;
  border-radius: 4px;
  text-align: center;
}

.demo-notice small {
  color: #1976d2;
  font-size: 0.85em;
}

.demo-notice i {
  margin-right: 5px;
  color: #2196f3;
}