/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
body {
  font-family: 'Poppins', sans-serif;
  background: #f7f9fb;
  color: #1a1a1a;
  line-height: 1.6;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* NAVBAR */
.navbar {
  background: linear-gradient(90deg, #0b3d3b, #0f5c5a);
  padding: 8px 0; /* antes 15px */
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  height: 100px;
}

.navbar nav a {
  color: white;
  margin-left: 18px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

/* EFECTO HOVER NAV */
.navbar nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #00c9a7;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

.navbar nav a:hover::after {
  width: 100%;
}

/* HERO */
.hero {
  height: 85vh;
  background: linear-gradient(rgba(11,61,59,0.7), rgba(11,61,59,0.7)),
              url('../assets/hero.jpg') center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero-simple {
  padding: 60px 20px 50px;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 15px;
}

.hero p {
  margin-bottom: 25px;
  font-size: 18px;
}

/* BOTÓN */
.btn {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(90deg, #00a896, #02c39a);
  border-radius: 30px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.card {
  max-width: 320px;
}
/* SECCIONES */
.section {
  padding: 80px 20px;
  text-align: center; /* 👈 centra contenido general */
}
.section h2 {
  text-align: center;
  margin-bottom: 20px;
}
.light {
  background: #ffffff;
}

.dark {
  background: #0b3d3b;
  color: white;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.grid img {
  width: 100%;
  border-radius: 12px;
}

/* TITULOS */
.titulo {
  font-size: 34px;
  text-align: center;
  margin-bottom: 10px;
}

.subtitulo {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
}

.subtitulo1 {
  text-align: center;
  color: #ADC9C5;
  margin-bottom: 50px;
}

/* CARDS GENERALES */
.cards {
  display: flex;
  justify-content: center;   /* centra horizontal */
  align-items: stretch;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.card {
  background: white;
  padding: 25px;
  width: 280px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
  text-align: center; /* 👈 esto faltaba */
}

.card:hover {
  transform: translateY(-8px);
}

/* SERVICIOS GRID */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* CARD MODERNA */
.servicio-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.servicio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* IMAGEN */
.servicio-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* CONTENIDO */
.contenido {
  padding: 20px;
}

.contenido h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.contenido p {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

/* LINK */
.contenido a {
  text-decoration: none;
  font-weight: 600;
  color: #0b3d3b;
}

.contenido a:hover {
  color: #00a896;
}

/* CONTACTO */
.contacto {
  background: #f1f5f9;
}

.contacto img {
  border-radius: 12px;
}

/* FOOTER */
footer {
  background: #0b3d3b;
  color: white;
  text-align: center;
  padding: 20px;
}

.footer-links a {
  color: #ADC9C5;              /* color típico de link */
  text-decoration: underline; /* subrayado */
  cursor: pointer;          /* cambia el cursor a manita */
}

.footer-links a:hover {
  color: #6CB0A8;          /* cambia de color al pasar el mouse */
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 28px;
  }
}

/* PROCESO GRID */
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

/* CARD CON IMAGEN */
.proceso-card {
  position: relative;
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* OVERLAY OSCURO */
.proceso-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* CONTENIDO */
.overlay {
  position: relative;
  color: white;
  text-align: center;
  padding: 25px;
  z-index: 2;
}

.overlay h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.overlay p {
  font-size: 14px;
  line-height: 1.6;
}

/* EFECTO HOVER */
.proceso-card:hover {
  transform: scale(1.02);
  transition: 0.3s;
}

.proceso-card:hover::before {
  background: rgba(0, 0, 0, 0.7);
}

.overlay h3 {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.proceso-card {
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* CTA MODERNO */
.cta {
  background: linear-gradient(135deg, #0b3d3b, #00a896);
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-box {
  max-width: 700px;
  text-align: center;
  color: white;
  padding: 50px;
  border-radius: 20px;

  /* efecto glass */
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);

  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.cta-box h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.cta-box p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
}

/* BOTONES */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  background: white;
  color: #0b3d3b;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* BOTÓN SECUNDARIO */
.btn-outline {
  border: 2px solid white;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-outline:hover {
  background: white;
  color: #0b3d3b;
}

/* BOTÓN WHATSAPP FLOTANTE */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ===== MOBILE PRO ===== */
@media (max-width: 768px) {

.servicio-overlay {
    opacity: 1;
    background: rgba(11, 61, 59, 0.75);
  }

  /* NAVBAR */
  .nav-content {
    flex-direction: column;
    gap: 10px;
  }

  .navbar nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar nav a {
    margin: 5px 10px;
    font-size: 13px;
  }

  .logo {
    height: 90px;
  }

  /* HERO */
  .hero {
    height: auto;
    padding: 20px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 16px;
  }

  /* SECCIONES */
  .section {
    padding: 60px 15px;
  }

  /* CARDS */
  .card {
    width: 100%;
  }

  /* PROCESO */
  .proceso-card {
    height: 280px;
  }

  /* CTA */
  .cta-box {
    padding: 30px 20px;
  }

  .cta-box h2 {
    font-size: 24px;
  }

  /* BOTÓN WHATSAPP */
  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 24px;
  }
}

/* CONTENEDOR */
.servicio-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

/* IMAGEN */
.servicio-card img {
  width: 100%;
  height: 220px; /* 👈 Ajusta este valor */
  object-fit: cover;
  display: block;
  transition: 0.4s;
}

/* OVERLAY */
.servicio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 61, 59, 0.85);
  color: white;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 20px;

  opacity: 0;
  transition: 0.4s;
}

/* TEXTO */
.servicio-overlay h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.servicio-overlay p {
  font-size: 14px;
  margin-bottom: 15px;
}

/* LINK */
.servicio-overlay a  {
  background: white;
  color: #0b3d3b;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
}

.servicio-overlay a.link-texto {
  all: unset;              /* 🔥 resetea TODO lo del botón */
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
}



/* EFECTO HOVER */
.servicio-card:hover img {
  transform: scale(1.05);
}

.servicio-card:hover .servicio-overlay {
  opacity: 1;
}

/* CUANDO HAY HOVER → DESAPARECE */
.servicio-card:hover .servicio-titulo {
  opacity: 0;
}


.servicio-overlay {
  transform: translateZ(0);
  will-change: opacity;
}

.servicio-overlay a {
  position: relative;
  z-index: 10;
  transform: translateZ(0);
}

.servicio-titulo {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px 10px;

  /* EFECTO GRADIENTE PREMIUM */
  background: linear-gradient(
    to top,
    rgba(11, 61, 59, 0.95),
    rgba(11, 61, 59, 0.6),
    rgba(11, 61, 59, 0.2),
    transparent
  );

  color: white;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;

  /* EFECTO PRO */
  backdrop-filter: none;
  
  

  z-index: 2;
  transition: 0.3s;
}

/* SECCIÓN */
.proceso-section {
  background: #f7f9fb;
}

/* GRID */
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* CARD */
.proceso-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  text-align: center;

  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transition: 0.3s;

  position: relative;
  overflow: hidden;
}

/* EFECTO HOVER */
.proceso-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

/* NUMERO GRANDE */
.numero {
  font-size: 40px;
  font-weight: 700;
  color: rgba(0, 168, 150, 0.15);
  margin-bottom: 10px;
}

/* TITULO */
.proceso-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* TEXTO */
.proceso-card p {
  font-size: 14px;
  color: #555;
}

.proceso-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #00a896, #02c39a);
}

.mapa {
  margin-top: 20px;
}

.btn-whatsapp {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  background: #25D366;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* EFECTO SCROLL SUAVE */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.redes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 25px;
}

.red {
  width: 65px;
  height: 65px;
  border-radius: 16px;

  background: rgba(255,255,255,0.1);

  display: flex;
  justify-content: center;
  align-items: center;

  transition: all 0.3s ease;
}

/* HOVER PREMIUM */
.red:hover {
  transform: translateY(-5px) scale(1.05);
  background: rgba(255,255,255,0.2);
}

/* COLORES DE MARCA */
.red:nth-child(1):hover {
  background: #E1306C;
}

.red:nth-child(2):hover {
  background: #1877F2;
}

.red:nth-child(3):hover {
  background: #000000;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #1ebe5d);
}
/* HOVER */
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

/* CLICK */
.btn-whatsapp:active {
  transform: scale(0.97);
}

.calculadora-box {
  text-align: center;
}

.calculadora-box label {
  text-align: center;
  display: block;
  font-weight: 600;
  margin-top: 15px;
}

.calculadora-box input {
  text-align: center;
  font-size: 16px;
}

/* TEXTO EXPLICATIVO */
.helper-text {
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}

.btn-whatsapp {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-size: 0;
}

.btn-whatsapp i {
  font-size: 28px;
}
button:disabled {
  opacity: 0.6;     
  cursor: not-allowed;
}

.email-copy {
  cursor: pointer;
  text-decoration: underline;
}

.email-copy:hover {
  color: #00ffcc;
}

/* 🔥 FIX DEFINITIVO CLICK */
.servicio-overlay {
  pointer-events: none !important;
}

.servicio-overlay a {
  pointer-events: auto !important;
  z-index: 999 !important;
  position: relative;
}

.servicio-titulo {
  pointer-events: none;
}

.link-texto {
    background: none;
    padding: 0;
    border: none;
    color: #fff; /* o el color que uses */
    text-decoration: underline;
    display: inline;
}

.link-texto {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.link-texto:hover {
    text-decoration: underline;
}
.link-texto {
    background: transparent;   /* 🔥 quita el fondo blanco */
    padding: 0;                /* elimina espacio tipo botón */
    border: none;
    color: #fff;               /* ajusta según tu diseño */
    text-decoration: underline;
    display: inline;
}

.link-texto {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.link-texto:hover {
    text-decoration: underline;
}

/* BOTÓN GPT */
.gpt-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 100px; /* 👈 arriba del WhatsApp */
  right: 20px;
  background-color: #111;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  line-height: 60px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
  z-index: 100;
  transition: 0.3s;
}

.gpt-float:hover {
  background-color: #333;
  transform: scale(1.1);
}

.gpt-float::after {
  content: "Asistente IA";
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);

  background: linear-gradient(135deg, #0b3d3b, #16796F);
  color: #fff;

  padding: 6px 12px;
  border-radius: 20px;

  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;

  white-space: nowrap;

  opacity: 0;
  transition: all 0.3s ease;

  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* HOVER */
.gpt-float:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.gpt-float:hover {
  box-shadow: 0 0 15px rgba(0, 200, 170, 0.6);
}
.gpt-float:hover::after {
  opacity: 1;
}

#sendBtn {
  z-index: 9999;
  position: relative;
}

/* CHAT CONTENEDOR */
#chatContainer {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 9999;
}

.chat-hidden {
  display: none;
}

/* CAJA */
.chat-box {
  width: 300px;
  height: 400px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* HEADER */
.chat-header {
  background: #0b3d3b;
  color: white;
  padding: 10px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* MENSAJES */
.chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
}

/* INPUT */
.chat-input {
  display: flex;
  border-top: 1px solid #ddd;
}

.chat-input input {
  flex: 1;
  border: none;
  padding: 10px;
  outline: none;
}

.chat-input button {
  background: #00a896;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}