/* VARIABLES */

:root {
  --btn-call-color: #34b7f1;
  --btn-call-color-hover: #007bb5;
  --btn-whatsapp-color: #25d366;
  --btn-whatsapp-color-hover: #128c7e;
}

/* Reset y tipografía */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fff;

  padding-top: 90px;
}

h2 {
  color: #212529;
}

/* GENERAL */

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #2d3748;
}

.hidden {
  visibility: hidden;
}

section {
  padding: 4rem 2rem;
}

/* Ajustes opcionales para secciones */
section {
  padding: 4rem 0;
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #333;
  color: white;
}

/* NAVBAR */

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-buttons {
  display: flex;
}

.navbar-btn-whatsapp,
.navbar-btn-call {
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background-color: white;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .navbar-links.show {
    display: flex;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  z-index: 800;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2d3748;
  text-decoration: none;
}

.navbar-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #4a5568;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-links a:hover {
  color: #2b6cb0;
}

.logo-img {
  height: 60px;
  width: auto;
  display: block;
}

.navbar-btn-whatsapp,
.navbar-btn-call {
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  color: white;
  font-size: 14px;
}

a.navbar-btn-whatsapp,
a.navbar-btn-call {
  color: white;
}

a.navbar-btn-whatsapp:hover,
a.navbar-btn-call:hover {
  color: white;
}

.navbar-btn-whatsapp,
.navbar-btn-call {
  background-color: var(--btn-whatsapp-color);
}

.navbar-btn-whatsapp:hover {
  background-color: var(--btn-whatsapp-color-hover);
}

.navbar-btn-call {
  background-color: var(--btn-call-color);
}

.navbar-btn-call:hover {
  background-color: var(--btn-call-color-hover);
}

/* HERO SECTION */
.hero-carousel {
  position: relative;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* oscurece la imagen */
  z-index: 1;
}

.carousel-slides {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.slide {
  position: absolute;
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  max-width: 90%;
  z-index: 2; /* por encima del overlay */
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 3;
  color: #000;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  color: rgba(255, 255, 255, 0.7);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.btn {
  background-color: #bd966f;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

/* MODAL IMAGENES */
/* Modal general */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 2rem;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  text-align: center;
}

/* Imagen centrada */
.modal-content {
  max-width: 90%;
  max-height: 80vh;
  margin: auto;
  display: block;
  border-radius: 12px;
  position: relative;
  z-index: 2;
}

/* Botón de cerrar */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 3;
}

.modal-close:hover {
  color: #ccc;
}

.mision-vision .container {
  gap: 20px;
}

/* MISION Y VISION */

.mision-vision {
  padding: 60px 20px;
  background: linear-gradient(to right, #f9fafb, #eef1f4);
}

.cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 768px) {
  .cards-wrapper {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }
}

.info-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 30px 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 500px;
  margin: auto;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #111827;
}

.info-card p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
}

/* SERVICIOS */

.servicios {
  padding: 60px 20px;
  background-color: #f4f7fa;
  color: #333;
}

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.servicio-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.servicio-icon {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #4caf50;
}

.servicio-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.servicio-card p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
}

.mapa {
  margin-top: 40px;
}

@media (max-width: 768px) {
  .servicios-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .servicios-grid {
    grid-template-columns: 1fr;
  }
}

/* GALERIA */

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.galeria-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s;
  cursor: pointer;
  border-radius: 16px;
}

.galeria-grid img:hover {
  transform: scale(1.05);
}

/* CONTACTO */

.contacto {
  padding: 60px 20px;
  background-color: #f4f7fa;
  color: #333;
  text-align: center;
}

.subtitulo {
  font-size: 1.2rem;
  color: #4a5568;
  margin-bottom: 30px;
}

.contacto-info {
  margin-bottom: 30px;
}

.whatsapp-link {
  color: var(--btn-whatsapp-color);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
}

.whatsapp-link:hover {
  color: var(--btn-whatsapp-color-hover);
}

.whatsapp-icon {
  font-size: 1.6rem;
  margin-right: 8px;
}

.contacto-buttons {
  margin-top: 20px;
  display: flex;
  flex-direction: column; /* Cambiado para apilar los botones verticalmente */
  align-items: center; /* Centrar los botones */
  gap: 20px; /* Espacio entre los botones */
}

.contacto-buttons a {
  color: white;
}

.btn-whatsapp {
  background-color: var(--btn-whatsapp-color);
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: var(--btn-whatsapp-color-hover);
}

.btn-llamanos {
  background-color: var(--btn-call-color);
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-llamanos:hover {
  background-color: var(--btn-call-color-hover);
}

.contacto-img {
  margin-top: 30px;
}

.contacto-img img {
  max-width: 150px;
  margin: 0 auto;
  display: block;
}

@media (max-width: 768px) {
  .contacto-info {
    font-size: 1.2rem;
  }
  .btn-whatsapp .btn-llamanos {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .hidden {
    display: none;
  }
}
