:root {
  --purple-gradient: linear-gradient(135deg, #4f46e5 0%, #7e22ce 50%, #a855f7 100%);
  --purple-accent: #7e22ce;
  --yellow-btn: #facc15;
  --yellow-hover: #eab308;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  background-color: #ffffff;
  color: var(--text-dark);
}

/* NAVBAR & HERO */
.hero-section {
  background: var(--purple-gradient);
  color: #ffffff;
  padding: 1.5rem 8% 5rem 8%;
}

.navbar {
  display: flex;
  justify-content: space-between; /* Empuja el logo a la izquierda y el menú a la derecha */
  align-items: center;
  margin-bottom: 4rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  margin-left: auto; /* Fuerza todo el menú a pegarse a la derecha */
}
/* Estilo opcional para destacar el texto de Facebook */
.nav-facebook {
  font-weight: 700;
  color: #facc15 !important; /* Resalta en amarillo igual que el botón */
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

.social-icons a {
  color: #ffffff;
  margin-left: 1rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  max-width: 50%;
}

.hero-text h1 {
  font-size: 3.8rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 450px;
}

.btn-yellow {
  background-color: var(--yellow-btn);
  color: #1e1b4b;
  padding: 0.9rem 2.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: transform 0.2s, background-color 0.2s;
}

.btn-yellow:hover {
  background-color: var(--yellow-hover);
  transform: translateY(-2px);
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* FEATURES BAR */
.features-bar {
  display: flex;
  justify-content: space-between;
  padding: 4rem 8%;
  background-color: #ffffff;
  gap: 1.5rem;
}

.feature-card {
  flex: 1;
}

.icon-circle {
  width: 45px;
  height: 45px;
  background-color: #f3e8ff;
  color: var(--purple-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.feature-card h3, .why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-card p, .why-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* SERVICES */
.services-section {
  padding: 3rem 8% 5rem 8%;
}

.services-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
}

.services-grid {
  display: flex;
  gap: 2rem;
}

.service-card {
  flex: 1;
}

.img-box {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 280px;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ABOUT SECTION */
.about-section {
  display: flex;
  align-items: center;
  padding: 5rem 8%;
  gap: 4rem;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
}

/* TESTIMONIAL */
.testimonial-section {
  background-color: #f8fafc;
  text-align: center;
  padding: 5rem 15%;
}

.profile-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.testimonial-quote {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.profile-name {
  font-weight: 700;
  color: var(--purple-accent);
}

/* WHY CHOOSE US */
.why-us-section {
  padding: 5rem 8%;
}

.why-us-section h2 {
  font-size: 2.2rem;
  margin-bottom: 3rem;
}

.why-grid {
  display: flex;
  gap: 2rem;
}

.why-card {
  flex: 1;
}

/* FOOTER CTA */
.footer-cta {
  background: var(--purple-gradient);
  color: #ffffff;
  text-align: center;
  padding-top: 5rem;
}

.cta-content {
  padding-bottom: 5rem;
}

.cta-content h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
}

.footer-copyright {
  background-color: rgba(0, 0, 0, 0.15);
  padding: 1.2rem;
  font-size: 0.85rem;
  color: #e2e8f0;
}

/* RESPONSIVE DESIGN (Celulares y Tablets) */
@media (max-width: 900px) {
  .hero-container, .features-bar, .services-grid, .about-section, .why-grid {
    flex-direction: column;
  }
  .hero-text {
    max-width: 100%;
  }
  .nav-links {
    display: none; /* Simplificado para móviles */
  }
}
/* Estilos para recursos locales/placeholders */
.img-box {
  background-color: #f1f5f9;
  font-size: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pink-bg { background-color: #fce7f3; }
.blue-bg { background-color: #e0f2fe; }
.yellow-bg { background-color: #fef9c3; }

.placeholder-box {
  width: 100%;
  height: 280px;
  background-color: #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-weight: 600;
  border: 2px dashed #cbd5e1;
}

.profile-avatar {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* BOTONERA EN HERO */
.hero-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-wsp {
  background-color: #25d366;
  color: #ffffff;
  padding: 0.9rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, background-color 0.2s;
}

.btn-wsp:hover {
  background-color: #128c7e;
  transform: translateY(-2px);
}

#openModalBtn {
  border: none;
  cursor: pointer;
}

/* ESTRUCTURA DEL MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #ffffff;
  color: var(--text-dark);
  padding: 2.5rem;
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: #64748b;
  cursor: pointer;
}

.close-btn:hover {
  color: #0f172a;
}

.modal-content h3 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
  color: var(--purple-accent);
}

.modal-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* CAMPOS DEL FORMULARIO */
.modal-form .form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.modal-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #334155;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.modal-form input:focus,
.modal-form textarea:focus {
  border-color: var(--purple-accent);
}

.modal-form textarea {
  resize: vertical;
  max-height: 200px;
  overflow-y: auto;
}

.btn-submit {
  width: 100%;
  background: var(--purple-gradient);
  color: #ffffff;
  border: none;
  padding: 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: opacity 0.2s;
}

.btn-submit:hover {
  opacity: 0.9;
}
/* GRILLA DE 8 CARACTERÍSTICAS */
.features-bar {
  padding: 3rem 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); /* Sombra suave para dar volumen */
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.icon-circle {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  background-color: rgba(250, 204, 21, 0.15); /* Fondo suave estilo amarillo */
  color: #facc15; /* Color del vector */
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.88rem;
  line-height: 1.4;
  opacity: 0.85;
}
/* SECCIÓN NUESTROS SERVICIOS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto 0 auto;
}

.service-card {
  text-align: left;
}

.img-box {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: transform 0.2s;
}

.service-card:hover .img-box {
  transform: translateY(-4px);
}

/* Colores de fondo pastel */
.pink-bg { background-color: #fce7f3; }
.blue-bg { background-color: #e0f2fe; }
.yellow-bg { background-color: #fef9c3; }

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.service-card p {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.5;
}
/* SECCIÓN SOBRE NOSOTROS */
.about-section {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-img-style {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: block;
}
/* SECCIÓN PERFIL / TESTIMONIO */
.testimonial-section {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background-color: #ffffff;
  max-width: 850px;
  margin: 2rem auto;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #8b5cf6; /* Borde violeta limpio */
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.testimonial-quote {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
  max-width: 750px;
  margin: 0 auto 1.2rem auto;
  font-style: italic;
  color: #1e293b; /* Texto oscuro bien legible */
}

.profile-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e3a8a; /* Azul marino elegante */
  margin-bottom: 0.2rem;
}

.profile-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #475569; /* Azul grisáceo legible */
}
/* SECCIÓN POR QUÉ ELEGIRNOS */
.why-us-section {
  padding: 4rem 1.5rem;
  background-color: #f8fafc;
}

.why-us-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.why-us-container h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.8rem;
}

.why-us-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 650px;
  margin: 0 auto 3rem auto;
  line-height: 1.5;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: left;
}

.why-card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.why-icon {
  width: 56px;
  height: 56px;
  background-color: #f3e8ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.why-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.6rem;
}

.why-card p {
  font-size: 0.93rem;
  color: #64748b;
  line-height: 1.6;
}
/* SECCIÓN FOOTER / CONTACTO */
.site-footer {
  background-color: #0f172a; /* Fondo azul oscuro sobrio */
  color: #ffffff;
  padding: 4rem 1.5rem 2rem 1.5rem;
  text-align: center;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
}

.site-footer h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: #ffffff;
}

.footer-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 550px;
  margin: 0 auto 3rem auto;
}

.footer-contact-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: #64748b;
}
/* Estilo para el contador de visitas */
.visitor-counter {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.visitor-counter:hover {
  opacity: 1;
}

.visitor-counter img {
  height: 20px;
  border-radius: 4px;
}