* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 80px;
}

/* ==== HEADER ==== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 0 4vw;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  height: 80px;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-right: 300px;
}

.logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

nav {
  display: flex;
  justify-content: center;
  flex: 1;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  justify-content: center;
  padding: 0;
  margin: 0;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #f27922;
}

section {
  padding: 60px 40px;
  min-height: auto;
}

.container,
.container-tabs {
  max-width: 1100px;
  margin: 0 auto;
}

/* ==== INICIO ==== */
.inicio {
  position: relative;
  background-image: url("inicio.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding-top: 100px;
  z-index: 0;
}

.inicio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* <- oscurece la imagen */
  z-index: -1;
}


.inicio-contenido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding: 60px 0;
  min-height: auto;
}

.texto {
  flex: 1;
  min-width: min(280px, 75vw);
  padding-top: 40px;
}

.texto h1 {
  font-size: 2.6rem;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: bold;
}

.texto h2 {
  font-size: 1.4rem;
  color: #f0f0f0;
  margin-bottom: 20px;
  font-weight: 500;
}

.descripcion {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #f27922;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #d56212;
}

.imagen {
  flex: 1;
  text-align: center;
  min-width: min(280px, 75vw);
}

.imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ==== NOSOTROS ==== */
.nosotros {
  padding: 80px 20px;
  background-color: #f9f9f9;
}

.nosotros h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: #2b2b2b;
}

.quienes-somos h3,
.mision-vision-valores h3 {
  color: #0a3161;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 24px;
}

.quienes-somos p,
.mision-vision-valores p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.mision-vision-valores {
  margin-top: 40px;
}

.mision-vision-valores .bloque {
  margin-bottom: 30px;
}

.mision-vision-valores ul {
  padding-left: 20px;
  list-style-type: disc;
  color: #333;
}

/* ==== TABS ==== */
.tab-layout {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.tabs-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 300px;
}

.tab-button {
  padding: 14px 18px;
  background-color: #f0f0f0;
  border: none;
  border-left: 5px solid transparent;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 5px;
  text-align: left;
}

.tab-button.active {
  background-color: #005480;
  color: #fff;
  border-left: 5px solid #f27922;
}

.tab-button:hover {
  background-color: #005480;
  color: #fff;
}

.tab-content-area {
  flex-grow: 1;
  background-color: #fff;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-height: 200px;
}

.tab-content {
  display: none;
  font-size: 18px;
}

.tab-content.active {
  display: block;
}

/* Dropdown */
nav ul li.dropdown {
  position: relative;
}

nav ul li .dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 250px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding: 0;
}

nav ul li .dropdown-content li {
  list-style: none;
}

nav ul li .dropdown-content li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #000000;
  font-weight: 500;
}

nav ul li .dropdown-content li a:hover {
  background-color: #f2f2f2;
}

nav ul li.dropdown:hover .dropdown-content {
  display: block;
}

nav ul li .dropdown-content li a:hover {
  background-color: #f27922;
  color: white;
}

.servicios-resumen {
  padding: 60px 20px;
  background-color: #f5f5f5;
  text-align: center;
}

.servicios-resumen h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #002f6c;
}

.servicios-resumen p {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 16px;
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}

@media (max-width: 1200px) {
  .grid-servicios {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

.servicio-card {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  height: 100%;
  border: 2px solid #007bff;
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.servicio-card img {
  width: 140px;
  height: 140px;
  margin-bottom: 6px;
  object-fit: contain;
}

.servicio-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.servicio-card p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.subtitulo-servicios {
  font-size: 42px;
  font-weight: 800;
  color: #002f6c;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
  letter-spacing: 1px;
  font-family: "Inter", sans-serif;
}

.btn-servicio {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  background-color: #002f6c;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn-servicio:hover {
  background-color: #004a9f;
}

.contacto-btn {
  background-color: #f28627;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.contacto-btn:hover {
  background-color: #d96f12;
}

.mision-vision-valores {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.mision-vision-valores .bloque {
  flex: 1;
  min-width: 250px;
}

.quienes-somos-doble {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.quienes-texto {
  flex: 1;
  min-width: min(280px, 75vw);
}

.quienes-logo {
  flex: 1;
  min-width: min(280px, 75vw);
  text-align: center;
}

.quienes-logo img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.titulo-nosotros {
  color: #002855;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
}

.porque-elegir-ecsa {
  max-width: 1000px;
  margin: 50px auto;
  padding: 30px;
  background-color: #f7f9fc;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.porque-elegir-ecsa h3 {
  color: #002855;
  font-size: 28px;
  margin-bottom: 15px;
}

.porque-elegir-ecsa p {
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.porque-elegir-ecsa ul {
  list-style: none;
  padding-left: 0;
}

.porque-elegir-ecsa ul li {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.lista-detalle {
  list-style: none;
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.lista-detalle > li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.2rem;
}

.lista-detalle > li::before {
  content: "•";
  color: #0056b3;
  position: absolute;
  left: 0;
}

.lista-detalle ul {
  margin-top: 0.5rem;
  margin-left: 1rem;
  list-style: disc;
  color: #444;
}

.servicio-detallado {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.etiqueta {
  color: #9bd4f1;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
}

.titulo-principal {
  font-size: 42px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 25px;
}

.titulo-principal .destacado {
  color: #ffffff;
}

.descripcion {
  font-size: 18px;
  line-height: 1.6;
  color: #e1ecf4;
}

.contenido-detalle {
  background-color: #f0f6ff;
  padding: 2rem 3rem;
  border-radius: 12px;
  max-width: 900px;
  margin: 40px auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contenido-detalle {
  flex: 0 0 65%;
  background-color: #f0f6ff;
  padding: 2rem 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.lista-detalle {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.lista-detalle li {
  margin-bottom: 0.8rem;
  font-size: 17px;
  color: #333;
  line-height: 1.6;
}

.contenedor-servicio {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contenido-detalle {
  flex: 3;
}

.menu-lateral {
  flex: 0 0 30%;
  max-height: 500px;
  position: sticky;
  top: 100px;
  background-color: #f7f7f7;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.menu-lateral h4 {
  margin-bottom: 10px;
  font-weight: 600;
}

.menu-lateral ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-lateral ul li {
  margin-bottom: 10px;
}

.menu-lateral ul li a {
  text-decoration: none;
  color: #0b3c5d;
  font-weight: 500;
  transition: color 0.3s;
}

.menu-lateral ul li a:hover {
  color: #0099cc;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 20px;
  background-color: #f27922;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #d56212;
}

.icono-whatsapp {
  width: 35px;
  height: 35px;
}

header {
  background-color: white;
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}

.contenedor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 385px;
}

.logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin-right: 40px;
}

.nav-principal ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-principal ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 18px; /* antes sin tamaño, ahora más grande */
  transition: color 0.3s ease;
}


.nav-principal ul li a:hover {
  color: #f97316;
}

.contacto-btn {
  background-color: #f97316;
  color: white !important;
  padding: 8px 15px;
  border-radius: 5px;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 10px 0;
  z-index: 999;
}

.dropdown-content li a {
  padding: 10px 20px;
  display: block;
  color: #333;
  text-decoration: none;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.descripcion-servicio {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #333;
}

.contenido-detalle h3 {
  margin-bottom: 15px;
}

.menu-lateral a.activo {
  color: #ff6600;
  font-weight: bold;
  text-decoration: none;
}

/* ===== FOOTER ===== */
.footer {
  background: url("final.png") no-repeat center center;
  background-size: cover;
  color: #fff;
  padding: 40px 20px 20px;
  font-size: 14px;
}

.footer-contenido {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer .columna {
  flex: 1 1 200px;
}

.footer h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #ff8c00;
}

.footer p,
.footer a {
  color: #dcdcdc;
  text-decoration: none;
  margin: 4px 0;
  display: block;
}

.footer-copy {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 13px;
  color: #aaa;
}

.servicio-constitucion {
  background-image: url("inicio2.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  min-height: 500px;
  max-height: 600px;
  overflow: hidden;
}

.contenido-servicio {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 40px;
  text-align: left;
  line-height: 1.6;
}

.servicio-contable {
  background: url("inicio3.jpg") no-repeat center center;
  background-size: cover;
  color: white;
  padding: 100px 20px;
  text-align: left;
}

.servicio-planillas {
  background: url("inicio4.jpg") no-repeat center center;
  background-size: cover;
  color: white;
  padding: 100px 20px;
  text-align: left;
}

.servicio-inventarios {
  background: url("inicio5.jpg") no-repeat center center;
  background-size: cover;
  color: white;
  padding: 100px 20px;
  text-align: left;
}

.servicio-gestion {
  background-image: url("inicio6.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  min-height: 500px;
  max-height: 600px;
  overflow: hidden;
}

.logo a {
  display: inline-block;
  height: 100%;
}

.logo a img {
  display: block;
}

.footer {
  background-color: #001f3f;
  color: #fff;
  padding: 40px 20px;
  font-size: 18px;
}

.footer-contenido.fila-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.columna-footer {
  flex: 1;
  min-width: 250px;
}

.footer h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #00d9a6;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer a:hover {
  color: #00d9a6;
}

.centrado {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-wsp-footer {
  padding: clamp(10px, 2vw, 15px) clamp(20px, 5vw, 25px);
  font-size: clamp(14px, 3vw, 18px);
  background-color: #25d366;
  color: white;
  padding: 15px 25px;
  font-size: 18px;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  text-align: center;
  max-width: 100%;
}

.btn-wsp-footer:hover {
  background-color: #1ebe5b;
}

.footer-copy {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: #cccccc;
}

.footer h3 {
  color: #d35400;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  color: inherit;
  text-decoration: underline;
}

.icono-footer {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #002f6c;
  background: none;
  border: none;
  padding: 5px;
}

/* ===== RESPONSIVE DESIGN MEJORADO PARA MÓVILES ===== */
@media (max-width: 768px) {
  /* Reset del padding del body para móvil */
  body {
    padding-top: 70px;
  }

  /* HEADER MÓVIL MEJORADO */
  header {
    height: 70px;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .contenedor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    height: 100%;
  }

  .logo {
    margin-right: 0;
    flex-shrink: 0;
  }

  .logo img {
    height: 50px;
    width: auto;
  }

  /* MENÚ HAMBURGUESA MEJORADO */
  .menu-toggle {
    display: block;
    order: 3;
    z-index: 1001;
  }

  .nav-principal {
    position: relative;
  }

  .nav-principal ul {
    display: none;
    position: absolute;
    top: 60px;
    left: -15px;
    right: -15px;
    background-color: white;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 10px 10px;
    z-index: 1000;
    gap: 0;
  }

  .nav-principal ul.open {
    display: flex;
  }

  .nav-principal ul li {
    width: 100%;
    text-align: center;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-principal ul li:last-child {
    border-bottom: none;
  }

  .nav-principal ul li a {
    display: block;
    padding: 15px 20px;
    font-size: 16px;
    color: #333;
    transition: background-color 0.3s ease;
  }

  .nav-principal ul li a:hover {
    background-color: #f8f9fa;
    color: #f97316;
  }

  /* Dropdown en móvil */
  .dropdown-content {
    position: static !important;
    display: block !important;
    box-shadow: none;
    background-color: #f8f9fa;
    margin-top: 0;
  }

  .dropdown-content li a {
    padding: 10px 30px !important;
    font-size: 14px;
    color: #666 !important;
  }

  /* BOTÓN CONTÁCTANOS MÓVIL */
  .contacto-btn {
    position: absolute;
    top: 15px;
    right: 60px;
    background-color: #f97316;
    color: white !important;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
    text-decoration: none;
    z-index: 1001;
    white-space: nowrap;
  }

  /* SECCIÓN INICIO MÓVIL */
  .inicio {
    padding: 40px 15px;
    background-attachment: scroll;
    min-height: 70vh;
  }

  .inicio-contenido {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 40px 0;
  }

  .texto {
    padding: 0;
    min-width: auto;
  }

  .texto h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 15px;
  }

  .texto h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .descripcion {
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.5;
  }

  .btn {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 8px;
  }

  /* SERVICIOS MÓVIL MEJORADO */
  .servicios-resumen {
    padding: 50px 15px;
  }

  .servicios-resumen h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .subtitulo-servicios {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.4;
  }

  .grid-servicios {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
  }

  .servicio-card {
    padding: 25px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
  }

  .servicio-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .servicio-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #002f6c;
  }

  .servicio-card p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  .btn-servicio {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 6px;
  }

  /* NOSOTROS MÓVIL */
  .nosotros {
    padding: 50px 15px;
  }

  .nosotros h2 {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .quienes-somos-doble {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  .quienes-texto {
    min-width: auto;
  }

  .titulo-nosotros {
    font-size: 22px;
    text-align: center;
    margin-bottom: 15px;
  }

  .quienes-logo {
    min-width: auto;
  }

  .quienes-logo img {
    max-width: 250px;
    border-radius: 8px;
  }

  .mision-vision-valores {
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
  }

  .mision-vision-valores .bloque {
    min-width: auto;
    text-align: center;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .mision-vision-valores h3 {
    font-size: 20px;
    color: #002f6c;
    margin-bottom: 12px;
  }

  .mision-vision-valores p,
  .mision-vision-valores ul {
    font-size: 14px;
    line-height: 1.6;
  }

  .porque-elegir-ecsa {
    margin: 30px 15px;
    padding: 25px 20px;
    text-align: center;
  }

  .porque-elegir-ecsa h3 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .porque-elegir-ecsa p,
  .porque-elegir-ecsa ul li {
    font-size: 14px;
    line-height: 1.6;
  }

  /* PÁGINAS DE SERVICIOS MÓVIL */
  .servicio-constitucion,
  .servicio-contable,
  .servicio-planillas,
  .servicio-inventarios,
  .servicio-gestion {
    padding: 60px 15px;
    min-height: 60vh;
    max-height: none;
    text-align: center;
  }

  .contenido-servicio {
    padding: 0;
    text-align: center;
  }

  .etiqueta {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .titulo-principal {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 20px;
  }

  .descripcion {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
  }

  .btn-whatsapp {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 8px;
  }

  .icono-whatsapp {
    width: 20px;
    height: 20px;
  }

  /* CONTENIDO DETALLE MÓVIL */
  .contenedor-servicio {
    flex-direction: column;
    padding: 20px 15px;
    gap: 20px;
  }

  .contenido-detalle {
    flex: none;
    padding: 20px;
    margin: 0;
  }

  .descripcion-servicio {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .contenido-detalle h3 {
    font-size: 20px;
    margin: 25px 0 15px 0;
    color: #002f6c;
    text-align: center;
  }

  .lista-detalle {
    padding-left: 0;
  }

  .lista-detalle li {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 20px;
  }

  .lista-detalle li::before {
    left: 0;
    color: #f97316;
    font-weight: bold;
  }

  .menu-lateral {
    display: none;
  }

  /* FOOTER MÓVIL MEJORADO */
  .footer {
    padding: 40px 15px 20px;
    font-size: 16px;
  }

  .footer-contenido.fila-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
  }

  .columna-footer {
    min-width: auto;
    width: 100%;
  }

  .footer h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #f97316;
  }

  .footer p,
  .footer a {
    font-size: 15px;
    line-height: 1.6;
    margin: 8px 0;
  }

  .icono-footer {
    width: 16px;
    height: 16px;
    margin-right: 8px;
  }

  .btn-wsp-footer {
  padding: clamp(10px, 2vw, 15px) clamp(20px, 5vw, 25px);
  font-size: clamp(14px, 3vw, 18px);
    width: 100%;
    max-width: min(280px, 75vw);
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 25px;
  }

  .footer-copy {
    font-size: 14px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #444;
  }

  /* UTILIDADES MÓVIL */
  section {
    padding: 40px 15px;
  }

  .container {
    padding: 0 15px;
  }

  h1,
  h2,
  h3 {
    text-align: center;
  }

  /* ANIMACIONES SUAVES */
  * {
    transition: all 0.3s ease;
  }

  /* MEJORAS DE ACCESIBILIDAD */
  .btn,
  .btn-servicio,
  .btn-whatsapp,
  .contacto-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* ESPACIADO CONSISTENTE */
  .servicio-card + .servicio-card {
    margin-top: 0;
  }
}

/* TABLET RESPONSIVE (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .contenedor-header {
    padding: 10px 40px;
  }

  .grid-servicios {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .inicio-contenido {
    gap: 30px;
  }

  .texto h1 {
    font-size: 2.2rem;
  }

  .mision-vision-valores {
    flex-direction: column;
    gap: 25px;
  }
}

/* MEJORAS ADICIONALES PARA PANTALLAS MUY PEQUEÑAS */
@media (max-width: 480px) {
  .logo img {
    height: 45px;
  }

  .contacto-btn {
    right: 50px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .texto h1 {
    font-size: 1.8rem;
  }

  .titulo-principal {
    font-size: 22px;
  }

  .servicio-card {
    padding: 20px 15px;
  }

  .btn-whatsapp {
    padding: 10px 16px;
    font-size: 13px;
  }
}

.fila-mvv {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.tarjeta-mvv {
  flex: 1 1 300px;
  max-width: 400px;
  background-color: #f8f9fa; /* igual que ¿Por qué elegir ECSA? */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.valores ul {
  padding-left: 30px;
}

/* Reducir espacio vertical de la sección Nosotros */
.nosotros {
  padding-top: 30px;
  padding-bottom: 30px;
}

/* Si también quieres reducir el espacio dentro del contenedor */
.nosotros .container {
  padding-top: 0;
  padding-bottom: 0;
}

/* Desplazar la palabra 'Nosotros' un poco más abajo */
.nosotros h2 {
  margin-top: 30px; /* Puedes cambiar 30px a lo que quieras */
}

.redes-footer {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.icono-red {
  width: 30px;
  height: 30px;
  transition: transform 0.2s;
}

.icono-red:hover {
  transform: scale(1.1);
}

.bloque-contacto-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px; /* Aumenta separación entre botón y redes */
}

/* ===== CORRECCIÓN: ESTILOS SOLO PARA MÓVILES ===== */
/* OCULTAR elementos móviles en desktop */
.header-mobile-right,
.contacto-btn-mobile,
.menu-toggle,
.nav-mobile,
.nav-overlay {
  display: none;
}

/* ===== SOLO PARA MÓVILES ===== */
@media (max-width: 768px) {
  /* Header móvil */
  header {
    height: 70px;
  }

  .contenedor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 150px;
    height: 100%;
    position: relative;
  }

  /* Logo a la izquierda */
  .logo {
    flex: 0 0 auto;
    margin-right: 0;
  }

  .logo img {
    height: 45px;
    width: auto;
  }

  /* OCULTAR navegación desktop en móviles */
  .nav-principal {
    display: none !important;
  }

  /* MOSTRAR elementos móviles solo en móviles */
  .header-mobile-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
  }

  /* Menú hamburguesa */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #333;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 1px;
  }

  /* Animación del menú hamburguesa */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 4px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-4px, -4px);
  }

  /* Botón Contáctanos móvil */
  .contacto-btn-mobile {
    display: inline-block;
    background-color: #f97316;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
  }

  .contacto-btn-mobile:hover {
    background-color: #ea580c;
  }

  /* Menú móvil deslizante */
  .nav-mobile {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(280px, 75vw);
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
    overflow-y: auto;
  }

  .nav-mobile.active {
    right: 0;
  }

  .nav-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav-mobile ul li {
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-mobile ul li a {
    display: block;
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
  }

  .nav-mobile ul li a:hover {
    background-color: #f8f9fa;
    color: #f97316;
  }

  /* Dropdown en móvil */
  .nav-mobile .dropdown-content {
    position: static;
    display: block;
    box-shadow: none;
    background-color: #f8f9fa;
    padding: 0;
  }

  .nav-mobile .dropdown-content li a {
    padding-left: 40px;
    font-size: 14px;
    color: #666;
  }

  /* Overlay */
  .nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Prevenir scroll cuando el menú está abierto */
  body.menu-open {
    overflow: hidden;
  }

  /* Ajustar padding del body */
  body {
    padding-top: 70px;
  }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
  .contenedor-header {
    padding: 0 15px;
  }

  .header-mobile-right {
    gap: 12px;
  }

  .contacto-btn {
  margin-right: 15px;
}

  .logo img {
    height: 40px;
  }
}

@media (max-width: 1199px) {
  .contenedor-header {
    padding: 10px 40px;
  }

  .logo img {
    height: 60px;
  }

  .nav-principal ul {
    gap: 20px;
  }
}

/* ✅ Forzar nav-mobile a columna vertical */
.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-mobile ul li {
  width: 100%;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.nav-mobile ul li a {
  display: block;
  padding: 16px 25px;
  font-size: 16px;
  color: #333;
  text-decoration: none;
}

/* ==== SUBMENÚ DE SERVICIOS EN MENÚ MÓVIL ==== */
.nav-mobile ul .submenu-servicios {
  padding-left: 20px;
  list-style: none;
  background-color: #f9f9f9;
}

.nav-mobile ul .submenu-servicios li {
  border-bottom: 1px solid #eee;
}

.nav-mobile ul .submenu-servicios li a {
  display: block;
  padding: 12px 25px;
  font-size: 15px;
  color: #444;
  text-decoration: none;
}

.nav-mobile ul .submenu-servicios li a:hover {
  background-color: #f1f1f1;
  color: #f97316;
}

.fila-mvv h3 {
  color: #002855; /* mismo color que ¿Quiénes somos? */
  font-weight: bold;
}

.columna-footer p {
  display: flex;
  align-items: center;
  gap: 8px; /* espacio entre icono y texto */
  margin: 4px 0;
}

.icono-footer {
  width: 18px;
  height: 18px;
}

/* === Degradado oscuro en todas las secciones con imagen de fondo === */
.servicio-constitucion,
.servicio-contable,
.servicio-planillas,
.servicio-inventarios,
.servicio-gestion {
  position: relative;
  overflow: hidden; /* evita que el degradado se salga */
}

.servicio-constitucion::before,
.servicio-contable::before,
.servicio-planillas::before,
.servicio-inventarios::before,
.servicio-gestion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* mismo degradado oscuro que en inicio */
  z-index: 0;
}

.servicio-constitucion > *,
.servicio-contable > *,
.servicio-planillas > *,
.servicio-inventarios > *,
.servicio-gestion > * {
  position: relative;
  z-index: 1; /* contenido encima del degradado */
}

@media (max-width: 768px) {
  .contenedor-header {
    display: flex;
    flex-wrap: wrap; /* permite que baje a segunda línea si no cabe */
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    height: auto; /* importante: quitar altura fija */
  }

  .contacto-btn-mobile {
    font-size: 12px;
    padding: 6px 10px;
  }

  .menu-toggle {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .contenedor-header {
    padding: 8px 10px;
  }

  .contacto-btn-mobile {
    font-size: 11px;
    padding: 5px 8px;
  }
}

.etiqueta {
  color: #f97316; /* naranja */
}



