@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Montserrat:wght@700&display=swap');



/* =========================
  VARIABLES
   ========================= */
:root {
  --primary-color: #5217FB;
  --secondary-color: #7466FB;
  --accent-color: #A098FF;
  --background-dark: #F5F6FA;
  --background-medium: #fff;
  --text-main: #141325;
  --text-muted: #7466FB;

  --mobile: 480px;
  --tablet: 768px;
  --desktop: 1024px;
  --large-desktop: 1200px;

  --spacing-xs: 0.5em;
  --spacing-sm: 1em;
  --spacing-md: 1.5em;
  --spacing-lg: 2em;
  --spacing-xl: 3rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
}

/* =========================
  RESET Y BASE
   ========================= */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #F5F6FA !important;
  color: #141325 !important;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html, body {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}
@media (max-width: 900px) {
  .gracias-container, .about, main, .contacto-directo, .contact-methods {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 600px) {
  .gracias-container, .about, main, .contacto-directo, .contact-methods {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
}

img {
  max-width: 100%;
  height: auto;
}

/* =========================
  HEADER Y NAV
   ========================= */
header {
  background: var(--background-medium);
  border-bottom: 2px solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px #14132511;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem var(--spacing-lg);
  max-width: var(--large-desktop);
  margin: 0 auto;
  min-height: 110px;
}



.logo img{
  align-items: center;
  height: 180px;
  width: auto;
  align-items: center;
  margin: 0;
  padding: 0;
}

.logo {
  height: 80px;
  width: auto;
  display: flex;
  align-content: center;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
  padding: 0px;
  margin: 0px;

}

.logo:hover { transform: scale(1.05); }


nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav a, footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

nav a:hover {
  color: var(--secondary-color);
  background: #f0f2ff;
}



/* =========================
  HERO SECTION
   ========================= */
.hero {
  background: linear-gradient(120deg, #F5F6FA 0%, #E5E7F0 100%);
  padding: 5rem 2rem 4rem 2rem;
  text-align: center;
  border-radius: 0 0 32px 32px;
  position: relative;
  color: #141325 !important;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px #14132511;
}

.hero h1 {
  color: var(--primary-color);
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  font-weight: 800;
}

.hero p {
  color: var(--text-main);
  font-size: 1.3rem;
  margin-bottom: 2.2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta, .btn-primary, .services__cta-link {
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  border-radius: 30px;
  box-shadow: 0 4px 16px #5217FB22;
  transition: background 0.2s, color 0.2s;
}
.cta:hover, .btn-primary:hover, .services__cta-link:hover {
  background: var(--secondary-color);
  color: #fff;
}

/* =========================
  SECCIONES PRINCIPALES
   ========================= */
.about {
  color: #141325;
  text-align: center;
  margin: 3rem auto;
  max-width: 700px;
  background: var(--background-medium);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 4px 24px #14132513;
  border: 1px solid #E5E7F0;
  margin-bottom: 2.5rem;
}

.about h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.about ul {
  text-align: left;
  margin: 1rem 0;
}

.about-intro {
  color: #141325;
  margin-bottom: 2rem;
  color: var(--accent-color);
  font-size: 1.1rem;
}

.about-grid {
  display: grid;
  gap: 2rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  margin: 2rem 0;
}

.servicio-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 24px #5217FB11;
  border: 1px solid #E5E7F0;
  margin-bottom: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(82, 23, 251, 0.2);
}

.servicio-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
}

.servicio-box h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.servicio-box p {
  color: #dcd9fb !important;
  line-height: 1.6;
}

.servicios-cta-container {
  text-align: center;
  margin-top: 2rem;
}

/* =========================
  TÍTULOS DE PÁGINA
   ========================= */
h1, h2, h3, h4, h5, h6, .logo-text {
  color: #141325 !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

.page-title {
  color: #141325 !important;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 0 2px 8px rgba(82, 23, 251, 0.3);
}

h1.page-title, h2.page-title {
  color: #141325 !important;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin: 0 auto 2rem;
}

/* =========================
  FOOTER
   ========================= */


.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  padding: 0.2rem var(--spacing-lg) 0.2rem var(--spacing-lg);
  max-width: var(--large-desktop);
  margin: 0 auto;
}

.footer-section h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 0.1rem;
}




.footer-description {
  color: var(--accent-color);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.footer-description,
.contact-info,
.location-info {
  margin-top: 0;
}

.contact-info,
.location-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--accent-color);
}

.contact-item a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: var(--primary-color);
}


.footer-bottom {
  background: #dcd9fb;
  padding: 0.3rem 0 0.7rem 0;
  text-align: center;
  border-top: none;
  margin-top: 0;
}

.footer-bottom .copyright {
  color: #fff;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 12px #a198ff33;
  line-height: 1.1;
}

.footer-divider {
  width: 100%;
  height: 2px;
  background: #141325;
  opacity: 0.5;
  border: none;
  margin: 0 auto 0 auto;
  display: block;
}

/* =========================
  FORMULARIOS
   ========================= */
.contact-form-container {
  max-width: 600px;
  margin: 3rem auto;
  background: var(--background-medium);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #E5E7F0;
  margin-bottom: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  background: #A098FF;
  border: 2px solid var(--accent-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath stroke='%235217FB' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5em 1.5em;
  padding-right: 3rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 3px rgba(82, 23, 251, 0.5);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #ff4757;
  box-shadow: 0 0 3px rgba(255, 71, 71, 0.5);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--accent-color);
  font-size: 1rem;
  transition: all 0.3s ease;
  pointer-events: none;
  background: #fff;
  padding: 0 0.25rem;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=\"\"]) + label {
  top: -0.5rem;
  left: 0.8rem;
  font-size: 0.8rem;
  color: var(--primary-color);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.btn-primary {
  text-decoration: none;
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 16px rgba(82, 23, 251, 0.2);
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(82, 23, 251, 0.2);
}

.btn-primary:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


.validation-error {
  color: #ff4757;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


h1, h2, h3, h4, h5, h6, .logo {
  color: #141325 !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
} 
.equipo-box {
  background: var(--background-medium);
  border-radius: 18px;
  box-shadow: 0 4px 24px #14132513;
  border: 1px solid #E5E7F0;
  max-width: 600px;
  margin: 2.5rem auto;
  padding: 2.5rem 2rem 2rem 2rem;
  text-align: center;
}
.equipo-img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px #14132533;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.equipo-box h1 {
  margin-bottom: 1.2rem;
  font-size: 2.1rem;
  color: #dcd9fb !important;
}
.equipo-box p {
  font-size: 1.13rem;
  text-align: center;
  padding: 1rem 0;
  display: block;
  justify-content: unset;
  align-items: unset;
}


nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-size: 19px !important;
  font-weight: 800;
  transition: color 0.2s;
}
nav a:hover {
  color: #A098FF;
}
.hero {
  background: linear-gradient(120deg, #141325cc 0%, #14132599 100%), url('img/logo-oficina.jpg') center 35%/cover no-repeat;
  padding: 6rem 2rem 5rem 2rem;
  text-align: center;
  border-radius: 0 0 32px 32px;
  position: relative;
  color: #FFFFFF;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  color: #FFFFFF;
  text-shadow: 0 2px 16px #141325cc;
}
.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.2rem;
  color: #A098FF;
  text-shadow: 0 2px 8px #14132599;
}
.cta {
  text-align: center;
  align-items: center;
  background: #5217FB;
  color: #FFFFFF;
  padding: 0.9rem 2.2rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 16px #14132533;
  transition: background 0.2s, color 0.2s;
}
.cta:hover {
  background: #7466FB;
  color: #FFFFFF;
}
.cta a{
  text-align: center;
  align-items: center;
}
.about {
  text-align: center;
  margin: 3rem auto;
  max-width: 700px;
  background: #fFF;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 2px 12px #14132522;
}
.about h2 {
  color: #fff;
  margin-bottom: 1rem;
}
.about ul {
  color: #A098FF;
  font-size: 1.1rem;
  padding-left: 1.2rem;
}
.about-intro {
  color: #fff;
  font-size: 1.08rem;
  margin-bottom: 2.2rem;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.about-grid {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}
/* Limitar ancho del grid de 3 servicios en el index */
.about-grid .servicios-grid:first-child {
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 1000px) {
  .about-grid .servicios-grid:first-child {
    max-width: 98vw;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
/* =========================
  RESPONSIVE
   ========================= */
@media (max-width: 900px) {
  .servicio-destacado {
    flex-direction: column !important;
    text-align: center;
    padding: 1.5rem 0.5rem;
  }
  .servicio-img-destacada, .servicio-texto-destacado {
    min-width: 0;
    max-width: 100%;
    padding: 0;
  }
  .servicio-img-destacada img {
    max-width: 90vw;
    margin-bottom: 1.2em;
  }
  .servicio-texto-destacado h2 {
    font-size: 1.4em;
  }
  .servicio-texto-destacado p {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-title { font-size: 2rem; }
  nav { padding: 0.5rem 1rem; }
  .logo { min-width: 140px; }
  .logo-img { height: 50px; }
  .logo-text { font-size: 1.5rem; }
  nav ul { gap: 1em; }
  nav a { padding: 0.3rem 0.7rem; font-size: 0.9em; }
  .hero { padding: 4rem 1em; min-height: 350px; }
  .hero h1 { font-size: 2rem; }
}

/* =========================
  CONTACTO Y GRACIAS
  ======================== */
.contact-info-section {
  margin-bottom: 3rem;
}
.contact-info-section h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  justify-items: center;
}
.contact-method {
  background: var(--background-medium);
  padding: 1.5rem 1rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 4px 16px rgba(82,23,251,0.08);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.contact-method:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 24px rgba(82,23,251,0.13);
}
.contact-method svg {
  flex-shrink: 0;
  margin-right: 0.5rem;
}
.contact-method a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
  transition: color 0.2s;
}
.contact-method a:hover {
  color: var(--secondary-color);
}

.gracias-container {
  background: var(--background-medium);
  border-radius: 18px;
  max-width: 600px;
  margin: 3rem auto;
  padding: 3rem 2rem 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(82,23,251,0.10);
  text-align: center;
  border: 1px solid #E5E7F0;
  margin-bottom: 2.5rem;
}
.gracias-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  animation: bounceIn 0.6s ease;
}
@keyframes bounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.gracias-container h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.gracias-message {
  color: var(--accent-color);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease 0.4s both;
}
.gracias-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.6s both;
  margin-bottom: 2rem;
}
.btn-secondary {
  text-decoration: none;
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 16px rgba(82,23,251,0.08);
}
.btn-secondary:hover {
  background: var(--primary-color);
  color: #fff;
}
.contacto-directo {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(82,23,251,0.13);
}
.contacto-directo h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
@media (max-width: 600px) {
  .gracias-container {
    padding: 1.5rem 0.5rem;
  }
  .gracias-actions {
    flex-direction: column;
    gap: 0.7rem;
  }
  .contact-methods {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Restaurar grid de 4 servicios a estilo anterior */
.servicios-grid {
  background: #A098FF;
  gap: 1.5em;
  margin: 2rem 0;
  padding: 0;
}
.servicio-box {
  margin: 0;
  padding: 2rem;
}

/* Mejorar visibilidad de los iconos SVG en .servicio-img */
.servicio-img {
  background: none;
  box-shadow: none;
}
.servicio-img svg {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(82,23,251,0.04);
  padding: 4px;
  transition: box-shadow 0.3s, background 0.3s;
}
.servicio-box:hover .servicio-img svg {
  background: #A098FF;
  box-shadow: 0 6px 20px rgba(82,23,251,0.10);
}
/* Mejorar contraste de los paths y rellenos en SVG (solo visual, los SVG ya usan los colores correctos) */
.about-grid {

  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 60vh;
}
.equipo-box {
  margin-left: auto;
  margin-right: auto;
  float: none;
}
@media (max-width: 700px) {
  .about-grid {
    display: block;
    min-height: unset;
  }
  .equipo-box {
    margin: 2.5rem 1rem;
  }
}

/* Servicios destacados: cada box separada y ocupando casi todo el ancho */
.servicios-destacados {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin: 0;
  padding: 0 2vw;
  background: none;
  border: none;
  box-shadow: none;
}
.servicio-destacado {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--background-medium);
  border-radius: 18px;
  box-shadow: 0 4px 24px #5217FB11;
  border: 1px solid #E5E7F0;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .servicio-destacado {
    flex-direction: column !important;
    text-align: center;
    padding: 1.5rem 0.5rem;
  }
  .servicios-destacados {
    padding: 0 0.5rem;
  }
}

/* Boxes de servicios destacados (servicios.html) */
.servicios-destacados {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 2.5em 0;
}
.servicio-destacado {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: var(--background-medium);
  border-radius: 18px;
  box-shadow: 0 4px 24px #5217FB11;
  border: 1px solid #E5E7F0;
  padding: 2.5rem 2rem;
  flex-wrap: wrap;
}
.fila-normal {
  flex-direction: row;
}
.fila-invertida {
  flex-direction: row-reverse;
}
.servicio-img-destacada {
  flex: 1 1 320px;
  min-width: 220px;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.servicio-img-destacada img {
  width: 100%;
  max-width: 350px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(82, 23, 251, 0.10);
  object-fit: cover;
}
.servicio-texto-destacado {
  flex: 2 1 400px;
  min-width: 220px;
  padding: 0 1.5rem;
}
.servicio-texto-destacado h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.servicio-texto-destacado p {
  color: var(--accent-color);
  font-size: 1.15rem;
  line-height: 1.7;
}
/* Contenedor general */
.services {
  padding: 2rem 1rem;
}

/* Título */
.services__heading {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
}

/* Cada servicio como grid de 2 columnas */
.services__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 3rem auto;
}

/* Alternar orden: texto-imagen en los que tienen este modificador */
.services__item--reverse {
  grid-template-areas: "content image";
}

/* Orden por defecto: imagen-texto */
.services__item:not(.services__item--reverse) {
  grid-template-areas: "image content";
}

/* Áreas */
.services__image {
  grid-area: image;
}
.services__content {
  grid-area: content;
}

/* Imagen */
.services__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Texto */
.services__content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.services__content p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #555;
}

/* Botón de llamada a la acción */
.services__cta {
  text-align: center;
  margin: 4rem 0;
}
.services__cta-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: #FFF;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}
.services__cta-link:hover {
  background-color: var(--secondary-color);
}

/* Responsive: apilar imagen y texto */
@media (max-width: 768px) {
  .services__item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "content";
  }
}

@media (max-width: 700px) {
  .logo-img {
    height: 80px;
  }
  nav {
    min-height: 90px;
    padding: 0.5rem 1rem;
  }
}

main {
  flex: 1 0 auto;
  padding-bottom: 0;
}

section {
  margin-bottom: 0;
}

/* Responsive: mejorar padding en mobile */
@media (max-width: 900px) {
  .hero {
    padding: 3rem 0.5rem 2rem 0.5rem;
  }
  .about, .servicio-box, .equipo-box, .contact-form-container, .gracias-container, .servicio-destacado {
    padding: 1.2rem 0.5rem;
  }
}
header, nav {
  background: #7465f9 !important;
  color: #fff !important;
}
nav a, nav a:visited, footer a, footer a:visited {
  color: #dcd9fb !important;
}
nav a:hover, footer a:hover {
  color: var(--secondary-color) !important;
  background: rgba(82, 23, 251, 0.10) !important;
}
nav a:hover, .footer-content a:hover {
  color: #141325 !important;
}
footer {
  background: #7465f9;
  border-top: 2px solid var(--primary-color);
  margin-top: 4rem;
  padding: 0;
  margin-bottom: 0;
}




.footer-logo img{
  align-items: center;
  height: 150px;
  width: auto;
  align-items: center;
  margin: 0;
  padding: 0;
}

.footer-logo {
  height: 80px;
  width: auto;
  display: flex;
  align-content: center;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
  padding: 0px;
  margin: 50px;

}

.footer-logo:hover { transform: scale(1.05);
  color: var(--secondary-color) !important;
  background: rgba(82, 23, 251, 0.10) !important; }


.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  padding: 0.2rem var(--spacing-lg) 0.2rem var(--spacing-lg);
  max-width: var(--large-desktop);
  margin: 0 auto;
}

.footer-section h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 0.1rem;
}

.footer-description,
.contact-item a,
.location-info a {
  color: var(--accent-color);
}

.footer-bottom {
  background: #dcd9fb;
  color: #141325;
  padding: 0.3rem 0 0.7rem 0;
  text-align: center;
  border-top: none;
  margin-top: 0;
}

.footer-bottom .copyright {
  color: #fff;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 12px #a198ff33;
  line-height: 1.1;
}

/* #7465f9Unificación de estilo visual para todas las páginas y secciones principales */
.servicio-box, .servicio-destacado, .equipo-box, .contact-form-container, .gracias-container, .services__item, .servicios-destacados{
  background: rgba(161, 152, 255, 0.45) !important; /* #a198ff85 más transparente */
  border-radius: 24px !important;
  box-shadow: 0 8px 32px #5217FB11 !important;
  border: none !important;
  padding: 2.5rem 2rem !important;
  margin-bottom: 2.5rem !important;
  font-family: 'Inter', 'Montserrat', Arial, sans-serif !important;
}
.about, .servicios-grid {
  background: #ffffff88 !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 32px #5217FB11 !important;
  border: none !important;
  padding: 2.5rem 2rem !important;
  margin-bottom: 2.5rem !important;
  font-family: 'Inter', 'Montserrat', Arial, sans-serif !important;
}
.about h2, .servicio-box h2, .servicio-texto-destacado h2, .services__content h2, .page-title, h1, h2, h3, h4, h5, h6 {
  color: #141325 !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 800 !important;
  font-size: 2rem !important;
  margin-bottom: 1rem !important;
  letter-spacing: 0.01em;
}

.about-intro, .footer-description, .contact-item, .servicio-box p, .servicio-texto-destacado p, .services__content p, .gracias-message {
  color: #5b5b5b !important;
  font-size: 1.125rem !important;
  line-height: 1.7 !important;
  font-family: 'Inter', Arial, sans-serif !important;
}

.servicio-img, .servicio-img-destacada, .services__image {
  background: #F5F6FA !important;
  border-radius: 50% !important;
  width: 80px !important;
  height: 80px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 1.5rem auto !important;
  box-shadow: 0 2px 8px #5217FB22 !important;
}
.servicio-img svg, .servicio-img-destacada img, .services__image img {
  width: 48px !important;
  height: 48px !important;
  display: block !important;
  margin: 0 auto !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 2px 8px #5217FB22 !important;
  padding: 4px !important;
}

.cta, .btn-primary, .services__cta-link {
  background: #5217FB !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 30px !important;
  box-shadow: 0 4px 16px #5217FB22 !important;
  transition: background 0.2s, color 0.2s !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 1.1rem !important;
  padding: 0.9rem 2.2rem !important;
  text-decoration: none !important;
}
.cta:hover, .btn-primary:hover, .services__cta-link:hover {
  background: #7466FB !important;
  color: #fff !important;
}

input, textarea, select {
  background: #fff !important;
  color: #141325 !important;
  border: 2px solid #A098FF !important;
  font-size: 1rem !important;
  border-radius: 12px !important;
  font-family: 'Inter', Arial, sans-serif !important;
}
input:focus, textarea:focus, select:focus {
  border-color: #5217FB !important;
}

.form-group label {
  background: #fff !important;
  color: #A098FF !important;
  font-family: 'Inter', Arial, sans-serif !important;
}

/* Responsive: mantener look en mobile */
@media (max-width: 900px) {
  .about, .servicio-box, .servicio-destacado, .equipo-box, .contact-form-container, .gracias-container, .services__item, .servicios-destacados, .servicios-grid {
    padding: 1.2rem 0.5rem !important;
    border-radius: 16px !important;
  }
  .servicio-img, .servicio-img-destacada, .services__image {
    width: 60px !important;
    height: 60px !important;
  }
  .servicio-img svg, .servicio-img-destacada img, .services__image img {
    width: 36px !important;
    height: 36px !important;
  }
}

/* Títulos principales modernos y destacados */
.page-title h1, h1, h1.page-title {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 900 !important;
  font-size: 2.7rem !important;
  letter-spacing: 0.02em !important;
  margin-bottom: 0.1rem !important;
  background: #7466FB ;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.hero h1 {  
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 900 !important;
  font-size: 2.7rem !important;
  letter-spacing: 0.02em !important;
  margin-bottom: 0.1rem !important;
  background: linear-gradient(90deg, #fdfdfd 0%, #7466FB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 12px #a198ff33;
  line-height: 1.1;

}

h2, .about h2, .servicio-box h2, .servicio-texto-destacado h2, .services__content h2 {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 800 !important;
  font-size: 2rem !important;
  color: #fff !important;
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem !important;
  text-shadow: 0 2px 8px #a198ff22;
  line-height: 1.15;
}

.contacto-directo h4{
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 700 !important;
  color: #f8efff !important;
  font-size: 1.25rem !important;
  margin-bottom: 0.8rem !important;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px #a198ff22;
}

h3, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 700 !important;
  color: #c1bcf4 !important;
  font-size: 1.25rem !important;
  margin-bottom: 0.8rem !important;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px #a198ff22;
}

/* Ajuste responsive para títulos */
@media (max-width: 700px) {
  .page-title, h1, h1.page-title {
    font-size: 2rem !important;
  }
  h2, .about h2, .servicio-box h2, .servicio-texto-destacado h2, .services__content h2 {
    font-size: 1.3rem !important;
  }
  h3, h4, h5, h6 {
    font-size: 1.05rem !important;
  }
}
.about-grid {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  padding: 0 1rem;
}
.about-grid .page-title {
  text-align: center;
  margin: 0 auto 2.5rem auto;
  display: block;
}
.servicios-grid {
  margin: 0 auto 2.5rem auto;
}
.about-grid {
  margin: 0 auto 1.5rem auto;
}
.servicios-grid {
  margin-bottom: 1.5rem;
}
/* Si la siguiente sección tiene mucho margin-top, puedes reducirlo así: */
section + section {
  margin-top: 1.5rem !important;
}
.servicios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  margin: 0 auto 1.5rem auto;
  max-width: 900px;
}
@media (max-width: 700px) {
  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 1.2em;
  }
}
.about-grid .servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  margin: 0 auto 2.5rem auto;
  max-width: 1200px;
}
section .page-title {
  text-align: center;
  margin: 0 auto 2.5rem auto;
  display: block;
}

/* Servicios - Imagen con overlay */
.services__img-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: 18px;
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
}
.services__img-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 4px 16px #14132533;
}
.services__img-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, #14132588 0%, #14132555 100%);
  border-radius: 18px;
  pointer-events: none;
}
.equipo-section-bg {
  background: #dcd9fb;
  border-radius: 32px;
  padding: 2.5rem 0;
  max-width: 900px;
  margin: 0 auto 2.5rem auto;
  box-shadow: 0 8px 32px #5217FB11;
}
.about-intro-imgleft {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.about-img-left {
  width: 260px;
  min-width: 180px;
  border-radius: 16px;
  box-shadow: 0 4px 24px #14132533;
  display: block;
}
.about-text-right {
  flex: 1;
  color: #141325;
  font-size: 1.13rem;
  line-height: 1.7;
  text-align: left;
}
@media (max-width: 900px) {
  .about-intro-imgleft {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .about-img-left {
    margin-right: 0;
    width: 100%;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
  .about-text-right {
    text-align: center;
  }
}
/* Navbar Responsive Mejorado */
header, nav {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100; /* Asegura que el botón esté por encima */
}

.nav-toggle-bar {
  width: 28px;
  height: 4px;
  background: #fff;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 900px) {
  nav {
    min-height: 70px;
    position: relative;
    z-index: 1000;
  }
  .nav-menu {
    position: fixed;
    top: 110px; /* Ajusta este valor si tu navbar es más bajo o más alto */
    left: 0;
    width: 100vw;
    background: #7465f9;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0 1.5rem 0;
    display: none;
    box-shadow: 0 8px 32px #5217FB11;
    border-radius: 0 0 18px 18px;
    z-index: 999;
    transition: all 0.3s;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  nav ul {
    gap: 0;
  }
}
@media (max-width: 600px) {
  .logo {
    min-width: 120px;
  }
  .logo-img {
    height: 40px;
  }
  .nav-menu {
    top: 90px; /* Igual que en el breakpoint de 900px para que nunca tape el logo */
    padding: 1.2rem 0 1rem 0;
  }
}
@media (max-width: 900px) {
  .services__img-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 1.5rem !important;
    margin-top: 1.5rem !important;
    width: 100% !important;
    min-height: 80px !important;
  }
  .services__img-wrapper img {
    display: block !important;
    max-width: 80vw !important;
    height: auto !important;
    margin: 0 auto !important;
  }
}
@media (max-width: 700px) {
  .services__img-wrapper img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
  }
}
@media (max-width: 480px) {
  .services__img-wrapper img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
  }
}
@media (max-width: 900px) {
  .services__item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
  }
  .services__img-wrapper {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
  }
  .services__img-wrapper img {
    max-width: 80vw !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }
  .services__content {
    width: 100% !important;
  }
}
@media (max-width: 900px) {
  body {
    overflow-x: hidden !important;
  }
  .gracias-container, .about, main, .contacto-directo, .contact-methods {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  .gracias-container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  .gracias-actions {
    flex-direction: column !important;
    gap: 0.7rem !important;
    align-items: stretch !important;
    width: 100% !important;
  }
  .btn, .btn-primary, .btn-secondary {
    width: 100% !important;
    min-width: unset !important;
    font-size: 1rem !important;
    padding: 1rem 0.5rem !important;
    box-sizing: border-box !important;
  }
  .gracias-icon {
    font-size: 2.5rem !important;
    margin-bottom: 1.2rem !important;
  }
  .gracias-message {
    font-size: 1.05rem !important;
    margin-bottom: 2rem !important;
  }
  .contacto-directo {
    padding-top: 1rem !important;
    margin-top: 2rem !important;
  }
  .contact-methods {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .contact-method {
    width: 100% !important;
    justify-content: flex-start !important;
    font-size: 1rem !important;
  }
}
@media (max-width: 600px) {
  .gracias-container, .about, main, .contacto-directo, .contact-methods {
    padding-left: 0.2rem !important;
    padding-right: 0.2rem !important;
    max-width: 100vw !important;
  }
  .gracias-container {
    border-radius: 10px !important;
  }
  .page-title, h1.page-title {
    font-size: 1.3rem !important;
  }
  .gracias-icon {
    font-size: 2rem !important;
  }
  .gracias-message {
    font-size: 0.98rem !important;
  }
}


    @media (max-width: 900px) {
      .gracias-container {
        padding: 1.2rem 0.5rem !important;
        border-radius: 16px !important;
        max-width: 98vw !important;
      }
      .gracias-actions {
        flex-direction: column !important;
        gap: 0.7rem !important;
        align-items: stretch !important;
      }
      .btn, .btn-primary, .btn-secondary {
        width: 100% !important;
        min-width: unset !important;
        font-size: 1rem !important;
        padding: 1rem 0.5rem !important;
      }
      .gracias-icon {
        font-size: 2.5rem !important;
        margin-bottom: 1.2rem !important;
      }
      .gracias-message {
        font-size: 1.05rem !important;
        margin-bottom: 2rem !important;
      }
      .contacto-directo {
        padding-top: 1rem !important;
        margin-top: 2rem !important;
      }
      .contact-methods {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
      }
    }
    @media (max-width: 600px) {
      .gracias-container {
        padding: 0.7rem 0.2rem !important;
        border-radius: 10px !important;
      }
      .page-title, h1.page-title {
        font-size: 1.5rem !important;
      }
      .gracias-icon {
        font-size: 2rem !important;
      }
    }
