/* ---------------------------------------------------
   RESET GENERAL
--------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}


/* ---------------------------------------------------
   NAVBAR
--------------------------------------------------- */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #008080;
}


/* ---------------------------------------------------
   HERO
--------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  padding-top: 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-fondo.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(0.6);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content .subtitulo {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.hero-content .descripcion {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background-color: #008080;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #006a6a;
}


/* ---------------------------------------------------
   SERVICIOS
--------------------------------------------------- */
.services {
  padding: 4rem 0;
  background: #f9f9f9;
}

.services .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.services .section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.services .section-header p {
  font-size: 1rem;
  color: #666;
}

.service-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: #f0f0f0;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 14px rgba(0,0,0,0.1);
}

.card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #008080;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}


/* ---------------------------------------------------
   TESTIMONIOS
--------------------------------------------------- */
.testimonials {
  padding: 4rem 0;
}

.testimonials .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonial-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testimonial-card {
  background: #f0f0f0;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
	transform: translateY(-5px);
  box-shadow: 0 8px 14px rgba(0,0,0,0.1);
}

.testimonial-card .stars {
  color: #f5a623;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-card .quote {
  font-style: italic;
  color: #444;
  margin-bottom: 1.5rem;
}

.testimonial-card .author {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}


/* ---------------------------------------------------
   CALL TO ACTION
--------------------------------------------------- */
.call-to-action {
  position: relative;
  padding: 6rem 1rem;
  text-align: center;
  color: white;
  overflow: hidden;
}

.call-to-action .cta-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/cta-fondo.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(0.5);
  z-index: -1;
}

.call-to-action .cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.call-to-action h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.call-to-action p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}


/* ---------------------------------------------------
   FORMULARIO DE CONTACTO
--------------------------------------------------- */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #008080;
}

.contact-form .btn {
  align-self: flex-start;
  background-color: #008080;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form .btn:hover {
  background-color: #006a6a;
}


/* ---------------------------------------------------
   SECCIÓN CONTACTO CON FONDO
--------------------------------------------------- */
/* ----- SECCIÓN CONTACTO ----- */
.contact {
  position: relative;
  padding: 4rem 1rem;
  color: white;
  overflow: hidden;
  background: none;
}

/* Fondo de la sección con overlay */
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/contacto-fondo.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;       /* efecto parallax opcional */
  background-color: rgba(0,0,0,0.5); /* overlay semitransparente */
  background-blend-mode: overlay;     /* mezcla overlay con imagen */
  z-index: -1;
}

/* Contenedor del contenido sobre la imagen */
.contact .container {
  position: relative;
  z-index: 1;
}

/* Título principal centrado y más grande */
.contacto-titulo {
  text-align: center;
  font-size: 3.4rem;
  margin-bottom: 1rem;
  line-height: 1.2; /* ajusta el salto de renglón */
}

/* Subtítulo del contacto */
.contacto-subtitulo {
  font-size: 1.4rem; /* tamaño ajustado previamente */
  color: #fff;
  line-height: 1.5;
  text-align: justify;         /* justificado a todo el ancho */
  text-align-last: center;     /* última línea centrada */
  max-width: 900px;             /* ocupa todo el ancho posible */
  margin: 0 auto 2rem;         /* centrado y separación inferior */
}

/* Subtítulo del contacto */
.contacto-subtitulo-dos {
  font-size: 1.2rem; /* tamaño ajustado previamente */
  color: #fff;
  line-height: 1.5;
  text-align: justify;         /* justificado a todo el ancho */
  text-align-last: center;     /* última línea centrada */
  max-width: 900px;             /* ocupa todo el ancho posible */
  margin: 0 auto 2rem;         /* centrado y separación inferior */
}

/* Frase “más de 40 años de experiencia” en verde */
.experiencia-verde {
  color: #008080; /* mismo que el botón */
}

/* Grid de tarjetas */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 900px;
  margin: 0 auto;
  margin-top: 2rem;
}

/* Wrapper para centrar las tarjetas de contacto */
.contact-grid-wrapper {
	display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 900px;   /* ancho máximo de las 3 tarjetas */
  margin: 0 auto;     /* centrado horizontal */
}



/* Tarjetas individuales de contacto */
.contact-card {
  background: rgba(255,255,255,0.3);
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
}

/* Tarjeta que ocupa todo el ancho del grid */
.contact-card-full {
  grid-column: 1 / -1; /* ocupa todas las columnas */
  background: rgba(255,255,255,0.3); /* misma apariencia transparente que las otras */
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  margin-bottom: 1rem; /* separación de las otras tarjetas */
}

/* Texto dentro de la tarjeta completa */
.contact-card-full .mensaje-experiencia {
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 500;
}

.contact-card h3,
.contact-card p {
  color: #fff;
  margin: 0.25rem 0;
}


/* Iconos dentro de las tarjetas de contacto */
.contact-card .contact-icon {
  display: block;
  margin: 0 auto 0.75rem; /* centrado horizontal y espacio abajo */
  width: 60px;             /* ajusta el tamaño a tu gusto */
  height: auto;
}

/* ---------------------------------------------------
   SECCION INFORMACION 
--------------------------------------------------- */

/* Sección info-grid */
.info-grid {
  padding: 4rem 1rem;
  background: #f9f9f9;
  color: #333;
}

.info-grid .service-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

.info-card {
  background: #f0f0f0;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 14px rgba(0,0,0,0.1);
}

.info-card h3 {
  color: #008080;
  margin-bottom: 0.75rem;
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-card ul li {
  margin-bottom: 0.5rem;
}

.info-logo {
  width: 100px; /* ajusta según necesidad */
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

/* Botón dentro de info-card */
.info-btn {
  display: inline-block;
  background-color: #008080;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
  margin-top: 1rem;
}

.info-btn:hover {
  background-color: #006a6a;
}


/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */
.site-footer {
  background: #f3f3f3;
  text-align: center;
  color: #555;
  position: relative;
  padding: 1.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid #dcdcdc;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Sombra / Fade arriba del footer */
.site-footer::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.12), rgba(0,0,0,0));
  pointer-events: none;
}

/* ---------------------------------------------------
   MODAL (FINAL UNIFICADO Y OPTIMIZADO)
--------------------------------------------------- */

/* Texto general dentro del modal */
.modal-content p,
.modal-content ul,
.modal-content li {
  font-size: 0.92rem;   /* ↓ más pequeño */
  line-height: 1.55;
  color: #333;
}

/* ==== OVERLAY ==== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
/*  backdrop-filter: blur(4px);*/
  display: none;
  justify-content: center; /* horizontal centramiento */
  align-items: flex-start; /* vertical: desde arriba */
  overflow-y: auto;        /* permite scroll si modal es muy alto */
  padding: 2rem 1rem;      /* espacio arriba y abajo */
  z-index: 3000;
}

/* ==== MODAL PRINCIPAL ==== */
.modal {
  width: 90%;
  max-width: 780px;
/*  min-width: 320px;*/
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop .25s ease-out;
/*  position: relative;*/ /* para el botón al final */
}


/* ==== HEADER FIJO ==== */
.modal-header2 {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(12px);
  padding: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: #008080;
  color: #fff;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: #111;
}

/* Subtítulos dentro del modal */
.modal-content h3 {
  font-size: 1.25rem;
  margin-top: 1.2rem;
  margin-bottom: .6rem;
  font-weight: 700;
  color: #000;
}


.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
}


/* ==== BOTÓN CERRAR ==== */
.modal-close2 {
  background: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  font-weight: bold;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: .2s;
}


.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}

.modal-close:hover {
  background: #f1f1f1;
  transform: scale(1.05);
}

/* ==== CONTENIDO (SCROLL) ==== */
.modal-content2 {
  padding: 1.8rem;
  overflow-y: auto;
  max-height: calc(85vh - 160px);
  scroll-behavior: smooth;
}


.modal-content {
  padding: 1rem 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}


/* ==== FOOTER FIJO ==== */
/*.modal-footer {
  position: sticky;
  bottom: 0;
  padding: 1rem;
  background: rgba(255,255,255,0.25);
  border-top: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  z-index: 10;
} */

.modal-footer {
  padding: 1rem 1.5rem;
  text-align: center;
  background-color: #f0f0f0;
}

.modal-footer .modal-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  background-color: #008080;
  color: white;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
}

.modal-btn {
  width: 100%;
  max-width: 250px;
  padding: 0.9rem;
  background: #008080;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background .3s;
}

.modal-btn:hover {
  background: #006b6b;
}

/* ==== ANIMACIONES ==== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


/* ---------------------------------------------------
   MENÚ MÓVIL + HAMBURGUESA
--------------------------------------------------- */

.hamburger {
  display: none;
  position: relative;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2100;
  padding-right: 10px;
}

/* Las 3 líneas */
.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: #333;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(.4,.0,.2,1);
}

/* Posición inicial */
.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 9px;
}

.hamburger span:nth-child(3) {
  bottom: 0;
}



/* ========= ESTADO ACTIVO ========= */

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Overlay oscuro */
#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 1500;
}

#menu-overlay.show {
  display: block;
}

/* ===== MOBILE ===== */

@media (min-height: 600px) {
  .modal-overlay {
    align-items: center;
    padding: 0;
  }
}


@media (max-width: 768px) {

	.navbar .container {
	  padding: 1rem 1rem;
	}

  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
  }

  .hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    display: block;
  }

  /* Convertir menú en panel lateral */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 260px;
    background: white;
    flex-direction: column;
    padding: 5rem 2rem;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 2000;
  }

  .nav-links.show {
    right: 0px; /* separa 0px del borde derecho */
  }

  /* Ocultar scroll cuando menú abierto */
  body.menu-open {
    overflow: hidden;
  }
}

/* Menú normal en escritorio */
@media (min-width: 769px) {

  .nav-links {
    display: flex;
  }

}


html {
  scroll-behavior: smooth;
}

/* ---------------------------------------------------
   BOTÓN VOLVER ARRIBA
--------------------------------------------------- */

#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: #008080;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: transform 0.2s, background 0.2s;
}

#backToTop:hover {
  background: #006a6a;
  transform: translateY(-2px);
}


/* ---------------------------------------------------
   BOTÓN VOLVER ARRIBA PREMIUM
--------------------------------------------------- */

#backToTop{
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: #008080;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#backToTop.show{
  opacity: 1;
  visibility: visible;
}

/* Hover elegante */
#backToTop:hover {
  background: #006a6a;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}

/* Icono */
#backToTop svg {
  pointer-events: none;
}




/* Botón cerrar al final */
.modal-footer2 {
  display: flex;
  justify-content: center;  /* Centrar horizontalmente */
  padding: 1.5rem;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.3);
}

