/* ======== Reset básico ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", Arial, sans-serif;
}

/* ======== Header ======== */
html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #386896c0, #e5e1f7);
  color: #fff;
  min-height: 100dvh;
}

section {
  scroll-margin-top: 70px; /* ajusta al alto del header */
}

.navbar {
  position: fixed;       /* Fija el header en la parte superior */
  top: 0;                /* Lo coloca al inicio de la página */
  left: 0;
  width: 100%;           /* Que ocupe todo el ancho */
  z-index: 1000;         /* Evita que otros elementos lo tapen */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4rem;
  background: rgba(56, 104, 150, 0.9); /* Fondo semitransparente para distinguirlo */
  backdrop-filter: blur(8px);           /* Da un efecto elegante de difuminado */
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.logo img {
  width: 28px;
  height: 28px;
}

/* Contenedor de enlaces */
.nav-links {
  display: flex;
  gap: 1.5rem;
}

/* Estilos generales de los enlaces del menú */
.nav-links a {
  text-decoration: none;
  color: #e2e2e2;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

/* Efecto hover */
.nav-links a:hover {
  color: #fff;
}

/* estilo de botones */
.btn-header {
  background-color: white;
  color: #2e1f74;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-header:hover {
  background-color: #e8e8e8;
}

/* ======== Hero Section ======== */
.hero {
  display: flex;
  margin-top: 100px; /* Ajusta según la altura real del header */
  margin-bottom: 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 4rem;
  gap: 2rem;
}

.hero-content {
  max-width: 50%;
}

.tag {
  display: inline-block;
  background-color: rgba(97, 97, 97, 0.623);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  color: #e0e0e0;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1rem;
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.buttons {
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background-color: white;
  color: #1f6074;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #1f6074;     /* efecto hover */
  color: #ffffff
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid white;
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.hero-image img {
  width: 480px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ======== Responsivo ======== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-image img {
    width: 100%;
  }
  .seccion-caracteristicas {
    text-align: center;
  }

  .caracteristica {
    text-align: center;
  }

  .caracteristica .icono {
    position: static;
    margin-bottom: 1rem;
  }

  .caracteristica h3 {
    margin-top: 0.5rem;
  }
}

  /* ===================== */
/* SECCIÓN: COMPROMISO */
/* ===================== */

.seccion-sobre-nosotros {
  padding: 4rem 2rem;
  color: #fff;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 1200px;
}

.slider-content {
  width: 100%;
  overflow: hidden;
}

.slider-tabs {
  text-align: center;
  margin-bottom: 2rem;
}

.slider-tabs .tab-btn {
  margin: 0 0.5rem;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.dot {
  width: 14px;
  height: 14px;
  border: 2px solid #1f6074;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
  flex-shrink: 0; /* evita que cambie el tamaño por error de flex */
}

.dot.active {
  background: #1f6074;
  border-color: #1f6074;
  transform: scale(1.15); /* opcional: resalta ligeramente sin deformar */
}

.slides-wrapper {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.slide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 100%;
  gap: 2rem;
}

.slide-text {
  flex: 1;
}

.slide-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f6074;
}

.slide-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #2b2b2b;
}

.slide-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.slide-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #1f6074;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* ======== Responsivo ======== */
@media (max-width: 900px) {
  .slide {
    flex-direction: column;
    text-align: center;
  }

  .slide-image img {
    max-width: 90%;
  }
}

/* ===================== */
/* SECCIÓN: CARACTERÍSTICAS */
/* ===================== */
.seccion-caracteristicas {
  background-color: white;
  padding: 1.5rem 2rem;
  text-align: center;
}

.seccion-caracteristicas h2 {
  color: #1f6074;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.grid-caracteristicas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.caracteristica {
  background: linear-gradient(135deg, #CDE0F0, #e5e1f7);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: left;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.caracteristica:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(29, 29, 29, 0.404);
}

.caracteristica .icono {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.caracteristica h3 {
  color: #1f6074;
  margin-top: 3rem;
  font-size: 1.2rem;
}

.caracteristica p {
  color: #555;
  margin-top: 0.5rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* ======== Sección Workflow ======== */
.seccion-workflow {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  color: white;
  background: linear-gradient(135deg, #386896c0, #e5e1f7);
}

.workflow-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1100px;
  width: 100%;
  gap: 3rem;
}

.workflow-text {
  flex: 1;
}

.workflow-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.workflow-text p {
  font-size: 1rem;
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.workflow-steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-left: 2px solid rgba(255, 255, 255, 0.4);
  padding-left: 2rem;
  position: relative;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.icono {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.step h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.step p {
  font-size: 0.95rem;
  font-weight: 600; /* aumenta el grosor del texto - semi-bold*/
  color: #e0e0e0;
}

/* ======== Responsivo ======== */
@media (max-width: 900px) {
  .workflow-content {
    flex-direction: column;
    text-align: center;
  }

  .workflow-steps {
    border-left: none;
    padding-left: 0;
  }

  .step {
    flex-direction: column;
    align-items: center;
  }

  .icono {
    margin-bottom: 0.5rem;
  }
}

/* ===== FAQ Section ===== */
.faq-section {
  background-color: #f3f4fc;
  padding-top: 3rem;     /* espacio superior */
  padding-right: 2rem;
  padding-bottom: 7rem;  /* aumenta el espacio inferior */
  padding-left: 2rem;
  border-radius: 16px;
  margin: 4rem auto;
  max-width: 1100px;
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-label {
  color: #ff5a5f;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.faq-title {
  font-size: 2rem;
  color: #1f1f1f;
  margin: 0.5rem 0;
}

.faq-subtitle {
  color: #555;
  font-size: 1rem;
  /*max-width: 600px;*/
  margin: 0 auto;
}

/* ===== Grid Layout ===== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Siempre 2 columnas */
  gap: 1.5rem;
  align-items: start;
}

/* ===== FAQ Item ===== */
.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  flex: 1 1 calc(50% - 1.5rem);
  display: block;
}

.faq-item.open {
  border: 2px solid #1f6074;
}

/* ===== Question Button ===== */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-item.open .faq-question {
  color: #1f6074;
}

.arrow {
  font-size: 1rem;
  color: #1f6074;
  transition: transform 0.3s ease;
}

.faq-item.open .arrow {
  transform: rotate(180deg);
}

/* ===== Answer with smooth animation ===== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  transition: all 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px; /* Ajusta según tu texto */
  padding-bottom: 1.2rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-section {
    padding: 3rem 1.5rem;
  }

  .faq-title {
    font-size: 1.8rem;
  }
  
  .faq-item {
    flex: 1 1 100%;
  }
}

/* ===== Testimonial Section ===== */
.testimonials-section {
  padding: 2.75rem 2rem;
  background: #fff;
  text-align: center;
  color: #1f1f1f;
}

.testimonials-header {
  max-width: 800px;
  margin: 0 auto 1rem;
}

.section-label {
  color: #1f6074;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-title {
  font-size: 2rem;
  margin: 0.5rem 0;
  font-weight: 800;
}

.section-subtitle {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}

.slides-wrapper {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: #f9f9fb;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 1.8rem;
  text-align: left;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.stars {
  color: #00b67a;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.98rem;
  color: #333;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.testimonial-author strong {
  display: block;
  font-weight: 600;
  color: #1f1f1f;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: #777;
}

.slider-controls {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.slider-controls button {
  background: #1f6074;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.3s ease;
}

.slider-controls button:hover {
  background: #174b58;
}

.slider-dots {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: #1f6074;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .slide {
    grid-template-columns: 1fr;
  }
}

/* --- CONTACTO --- */
  /* === Estilo general === */
  .contact-section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    color: #222;
  }

  .contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
  }

  .contact-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
  }

  .contact-header p {
    color: #555;
    font-size: 1.1rem;
  }

  /* === Layout en dos columnas === */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }

  /* === Formulario === */
  .contact-form {
    background: #f7f8fc;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .contact-form h3 {
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    font-weight: 600;
  }

  .contact-form label {
    font-size: 0.95rem;
    margin-top: 0.6rem;
    display: block;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
  }

  .contact-form input:focus,
  .contact-form select:focus,
  .contact-form textarea:focus {
    outline: none;
    border-color: #2563eb;
  }

  .contact-form button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    margin-top: 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .contact-form button:hover {
    background: #1e4fd1;
  }

  .contact-form button:disabled {
  background-color: #aaa;
  }

  .form-status {
    margin-top: 0.8rem;
    font-size: 0.95rem;
  }

  .form-status.success {
    color: #1d9b3b;
  }

  .form-status.error {
    color: #d33;
  }

  /* === Columna de información === */
  .contact-info {
    padding: 2rem;
  }

  .contact-info .badge {
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 600;
  }

  .contact-info h3 {
    font-size: 1.6rem;
    margin: 0.8rem 0;
  }

  .contact-info p {
    color: #444;
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .contact-info a {
    color: #2563eb;
    text-decoration: none;
  }

  /* === Responsive === */
  @media (max-width: 768px) {
    .contact-grid {
      grid-template-columns: 1fr;
    }
  }

/* === Botón flotante de WhatsApp === */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
}

.whatsapp-float img {
  width: 60px;
  height: 60px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* === mensaje flotante de envio form === */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #236fa1;
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
    transform: translateY(-20px);
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 99999; /* muestra en msg flotante*/
} 
.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.toast button {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
.hidden { display: none; }


/* --- FOOTER --- */
.footer {
  background: linear-gradient(135deg, #1f6074, #386896);
  color: #ffffff;
  padding: 3rem 2rem 1.5rem;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-logo p {
  font-size: 0.95rem;
  color: #e0e0e0;
  line-height: 1.5;
}

/* --- ENLACES --- */
.footer-links h4,
.footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #ffffff;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #ffffff;
}

/* --- CONTACTO --- */
.footer-contact p {
  font-size: 0.95rem;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
}

/* --- COPYRIGHT --- */
.footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}
