* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #D9D9D9;
  z-index: 1000;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
}

/* LOGO */
.nav-logo img {
  height: 55px;
}

/* MENÚ */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-menu a {
  position: relative;
  text-decoration: none;
  color: #085368;
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.3s ease;
}

/* ANIMACIÓN HOVER */
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #AB6923;
  transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #AB6923;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* REDES */
.nav-social {
  display: flex;
  gap: 16px;
}

.nav-social a {
  color: #085368;
  font-size: 18px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav-social a:hover {
  color: #AB6923;
  transform: translateY(-3px);
}

/* HAMBURGUESA */
.nav-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #085368;
}

/* RESPONSIVE */
@media (max-width: 900px) {

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #D9D9D9;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    display: none;
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-social {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}
/* HERO */
.hero {
  width: 100%;
  height: 100vh;
  margin-top: 90px; /* altura del header fijo */
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

/* SLIDE */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* overlay para legibilidad */
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* CONTENIDO */
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 80px;
  max-width: 700px;
  color: #D9D9D9;
  animation: fadeUp 1s ease;
}

.hero-content h1 {
  font-size: 50px;
  font-weight: 600;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 25px;
  margin-bottom: 30px;
}

/* CONTENEDOR BOTONES */
.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

/* BASE CTA */
.btn-cta {
  padding: 14px 34px;
  font-family: 'Poppins', sans-serif;
  font-weight: 650;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* BOTÓN PRINCIPAL */
.btn-cta.primary {
  background-color: #085368;
  color: #D9D9D9;
}

.btn-cta.primary:hover {
  background-color: #D9D9D9;
  transform: translateY(-3px);
  color: #085368
}

/* BOTÓN SECUNDARIO */
.btn-cta.secondary {
  border: 2px solid #D9D9D9;
  color: #D9D9D9;
  background-color: transparent;
}

.btn-cta.secondary:hover {
  background-color: #D9D9D9;
  color: #085368;
  transform: translateY(-3px);
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ANIMACIÓN */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-content {
    padding: 0 30px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-content p {
    font-size: 16px;
  }
}

/* ... (mantén todo el CSS anterior hasta .services) ... */

 .services {
  padding: 80px 0;
  background-color: #085368;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services-title {
  font-size: 38px;
  color: #AB6923;
  margin-bottom: 60px;
  position: relative;
}

.services-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: #AB6923;
  margin: 20px auto;
}

/* CONTENEDOR DEL CARRUSEL */
.services-carousel {
  position: relative;
  width: 100%;
  max-width: 1210px; /* 4 tarjetas: (4*280) + (3*30) */
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

/* TRACK (contiene las tarjetas) */
.services-track {
  display: flex;
  gap: 30px; /* REDUCIDO de 50px a 30px */
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 40px 0;
}

/* TARJETA BASE */
.service-card {
  transform: scale(0.9);

  background: linear-gradient(145deg, #e0e0e0, #ffffff);
  width: 280px; /* COINCIDIR CON JS */
  padding: 20px 15px;
  border-radius: 10px;
  flex-shrink: 0;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.7;
  transform: scale(0.9);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: #AB6923;
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

/* TARJETA ACTIVA (CENTRO) */
.service-card.active {
  transform: scale(1.15);
  opacity: 1;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  z-index: 5;
}

.service-card.active::before {
  transform: scaleX(1);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.service-card.active img {
  transform: scale(1.05);
}

.service-card h3 {
  color: #085368;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 15px;
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}

.service-card p {
  color: #085368;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  min-height: 80px;
  opacity: 0.9;
}

/* BOTÓN VER DESCRIPCIÓN */
.btn-service {
  background: linear-gradient(to right, #AB6923, #c97f38);
  color: #D9D9D9;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  display: block;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(to right, #8a551c, #AB6923);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-service:hover::before {
  width: 100%;
}

.btn-service:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(171, 105, 35, 0.3);
}

/* FLECHAS - POSICIONADAS CORRECTAMENTE */
.services-arrow {
  background: #AB6923;
  border: none;
  font-size: 24px;
  color: #D9D9D9;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.services-arrow:hover {
  background: #8a551c;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.services-arrow.prev {
  left: 0;
}

.services-arrow.next {
  right: 0;
}

/* MODAL - MEJOR VISUAL */
.service-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #085368;
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.service-modal img {
  max-width: 95%;
  max-height: 50vh;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 2px solid #AB6923;
  object-fit: cover;
}

.modal-text {
  max-width: 800px;
  width: 95%;
  text-align: center;
  color: #D9D9D9;
  padding: 30px;
  border-radius: 0px;
  animation: textSlideUp 0.5s ease;
}

@keyframes textSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-text h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #D9D9D9;
}

.modal-text p {
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  white-space: pre-line;
}

.close-modal, .close-team-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 40px;
  color: #D9D9D9;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(171, 105, 35, 0.3);
}

.close-modal:hover {
  color: #AB6923;
  background: rgba(217, 217, 217, 0.2);
  transform: rotate(90deg);
}

/* RESPONSIVE - 3 tarjetas en PC, 2 en tablet, 1 en móvil */
@media (max-width: 1024px) {
  .services-carousel {
    max-width: 700px; /* Para 2 tarjetas */
    padding: 0 50px;
  }
  
  .service-card {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .services-carousel {
    max-width: 320px; /* Para 1 tarjeta */
    padding: 0 40px;
  }
  
  .service-card {
    width: 280px;
  }
  
  .services-arrow {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
  
  .modal-text {
    padding: 20px 15px;
  }
  
  .modal-text h2 {
    font-size: 24px;
  }
  
  .modal-text p {
    font-size: 15px;
  }
  
  .close-modal, .close-team-modal {
    top: 15px;
    right: 15px;
    font-size: 35px;
  }
}

@media (max-width: 480px) {
  .services-carousel {
    max-width: 280px;
    padding: 0 20px;
  }
  
  .service-card {
    width: 260px;
  }
  
  .services-arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .services-arrow.prev {
    left: -5px;
  }
  
  .services-arrow.next {
    right: -5px;
  }
  
  .service-modal {
    padding: 10px;
  }
  
  .modal-text {
    padding: 15px;
  }
}
/* =========== QUIÉNES SOMOS =========== */
.about-section {
  background-color: #D9D9D9;
  padding: 80px 20px;
  position: relative;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* TÍTULO PRINCIPAL - ENCIMA DE TODO */
.section-main-title {
  font-size: 38px;
  color: #AB6923;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 20px;
}

.section-main-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: #AB6923;
}

/* Primera parte: Imagen y texto */
.about-main {
  display: flex;
  align-items: flex-start; /* Alinea al inicio en lugar del centro */
  gap: 50px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about-image img {
  width: 100%;
  height: 500px; /* Un poco más alta para mejor proporción */
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Ajuste específico para el mapa (sin recorte, con zoom al hover) */
.about-image img.about-map-image {
  height: 500px;
  object-fit: contain;
  background: #ffffff;
}

.about-image img:hover {
  transform: scale(1.05);
}

.about-content {
  flex: 1;
  min-width: 300px;
  padding-top: 0; /* Quitamos el padding superior */
}

/* Ya no necesitamos .about-title aquí, se eliminó del HTML */

.about-description {
  color: #085368;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.about-description strong {
  color: #AB6923;
}

/* =========== EQUIPO =========== */
.team-section {
  background: #ffffff;
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-top: 40px;
}

.team-title {
  font-size: 32px;
  color: #085368;
  text-align: center;
  margin-bottom: 15px;
}

.team-subtitle {
  font-size: 18px;
  color: #666;
  text-align: center;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* =========== RESPONSIVE =========== */
@media (max-width: 1024px) {
  .about-main {
    gap: 40px;
  }
  
  .section-main-title {
    font-size: 36px;
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 60px 15px;
  }
  
  .section-main-title {
    font-size: 32px;
    margin-bottom: 30px;
  }
  
  .about-main {
    flex-direction: column;
    gap: 30px;
  }
  
  .about-image,
  .about-content {
    min-width: 100%;
  }
  
  .about-image img {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .section-main-title {
    font-size: 28px;
  }
}
/* Segunda parte: Equipo */
.team-section {
  background: #ffffff;
  padding: 40px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.team-title {
  font-size: 32px;
  color: #085368;
  text-align: center;
  margin-bottom: 15px;
}

.team-subtitle {
  font-size: 18px;
  color: #666;
  text-align: center;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.team-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #AB6923;
}

.team-photo {
  width: 200px;
  height: 200px;
  border-radius: 0px;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 0px solid #085368;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.1);
}

.team-name {
  font-size: 20px;
  color: #085368;
  margin-bottom: 5px;
  font-weight: 600;
}

.team-position {
  font-size: 14px;
  color: #AB6923;
  margin-bottom: 15px;
  font-weight: 500;
}

.team-bio {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 80px;
}

.btn-cv {
  background: #085368;
  color: #D9D9D9;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 180px;
  margin: 0 auto;
  display: block;
}

.btn-cv:hover {
  background: #AB6923;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(8, 83, 104, 0.3);
}

/* =========== NUESTROS CLIENTES =========== */
.clients-section {
  background-color: #085368;
  padding: 80px 20px;
  position: relative;
}

.clients-container {
  max-width: 1200px;
  margin: 0 auto;
}

.clients-title {
  font-size: 38px;
  color: #D9D9D9;
  text-align: center;
  margin-bottom: 15px;
}

.clients-subtitle {
  font-size: 18px;
  color: #AB6923;
  text-align: center;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  align-items: center;
  justify-items: center;
}

.client-logo {
  text-align: center;
  transition: all 0.3s ease;
  padding: 20px;
  width: 100%;
  max-width: 100px;
}

.client-logo:hover {
  transform: translateY(-10px);
  background:none;
}

.client-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1px;
}

.client-logo:hover img {
  transform: scale(1.1);
}

/* =========== RESPONSIVE =========== */
@media (max-width: 1024px) {
  .about-main {
    gap: 40px;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .about-section,
  .clients-section {
    padding: 60px 15px;
  }
  
  .about-main {
    flex-direction: column;
    gap: 30px;
  }
  
  .about-image,
  .about-content {
    min-width: 100%;
  }
  
  .about-image img {
    height: 300px;
  }
  
  .team-section {
    padding: 40px 20px;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .client-logo {
    padding: 15px;
  }
  
  .client-logo img {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .about-title,
  .team-title,
  .clients-title {
    font-size: 28px;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .clients-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .client-logo {
    max-width: 150px;
  }
}
/* =========== CONTACTO =========== */
.contact-section {
  background-color: #D9D9D9;
  padding: 80px 20px;
  position: relative;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-title {
  font-size: 38px;
  color: #AB6923;
  text-align: center;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 20px;
}

.contact-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: #AB6923;
}

.contact-subtitle {
  font-size: 18px;
  color: #666;
  text-align: center;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-wrapper {
  display: flex;
  gap: 50px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

/* Información de contacto */
/* Información de contacto */
.contact-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #ffffff;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 0;
  flex: 1 1 300px;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid #085368;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-left-color: #AB6923;
}

.info-icon {
  background: #085368;
  color: #D9D9D9;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.info-content h3 {
  color: #085368;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

.info-content p {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 5px;
}

/* Mapa */
.map-container {
  background: #ffffff;
  padding: 25px;
  border-radius: 15px;
  margin-top: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.map-container h3 {
  color: #085368;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

.map-placeholder {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* =========== FOOTER =========== */
.site-footer {
  background: #085368;
  color: #D9D9D9;
  padding: 30px 0 0 0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #AB6923, #c97f38);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

/* Lado izquierdo: Logo */
.footer-left {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-logo img {
  height: 38px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 13px;
  color: #AB6923;
  font-weight: 500;
  margin: 8px 0 6px 0;
  font-style: italic;
  line-height: 1.35;
}

.footer-copyright {
  font-size: 12px;
  color: #D9D9D9;
  margin-top: 6px;
}

/* Centro: Información de contacto */
.footer-center {
  flex: 1;
  min-width: 250px;
}

.footer-title {
  font-size: 16px;
  color: #D9D9D9;
  margin-bottom: 12px;
  padding-bottom: 8px;
  position: relative;
  font-weight: 600;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: #AB6923;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.footer-contact-item i {
  color: #AB6923;
  font-size: 18px;
  margin-top: 5px;
  flex-shrink: 0;
}

.footer-contact-text p {
  margin: 0;
  line-height: 1.6;
  font-size: 15px;
}

.footer-contact-text p strong {
  color: #AB6923;
  font-weight: 600;
}

.footer-contact-text p:not(:first-child) {
  color: #D9D9D9;
  font-size: 14px;
}

/* Lado derecho: Redes sociales y enlaces */
.footer-right {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-social {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 0;
}

.footer-social-icon {
  display: flex;
  gap: 2px;
  color: #D9D9D9;
  text-decoration: none;
  padding: 8px 10px;
}

.footer-social-icon:hover {
  transform: translateX(5px);
  background: rgba(217, 217, 217, 0.2);
  border-color: #AB6923;
}

.footer-social-icon i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.footer-social-icon.youtube:hover {
  color: #ff0000;
}

.footer-social-icon.linkedin:hover {
      color: #0077b5;
}

.footer-social-icon.instagram:hover {
  color: #e4405f;
}

.footer-social-icon.facebook:hover {
  color: #1877f2;
}

.footer-social-icon.twitter:hover {
  color: #1da1f2;
}

/* Enlaces rápidos */
.footer-links h4 {
  font-size: 18px;
  color: #D9D9D9;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(217, 217, 217, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 2px 0;
}

.footer-links a:hover {
  color: #AB6923;
  transform: translateX(3px);
}

/* Línea inferior */
.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  margin-top: 60px;
  text-align: center;
  border-top: 1px solid rgba(217, 217, 217, 0.1);
}

.footer-bottom p {
  color: rgba(217, 217, 217, 0.6);
  font-size: 14px;
  margin: 0;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========== RESPONSIVE =========== */
@media (max-width: 1024px) {
  .footer-container {
    gap: 40px;
  }
  
  .footer-links ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 50px 0 0 0;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-left,
  .footer-center,
  .footer-right {
    min-width: 100%;
  }
  
  .footer-logo img {
    height: 60px;
  }
  
  .footer-social {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .footer-social-icon {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
  
  .footer-links ul {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom {
    margin-top: 50px;
    padding: 15px 0;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 40px 0 0 0;
  }
  
  .footer-container {
    padding: 0 15px;
    gap: 35px;
  }
  
  .footer-logo img {
    height: 50px;
  }
  
  .footer-social {
    flex-direction: column;
  }
  
  .footer-social-icon {
    min-width: 100%;
  }
  
  .footer-links ul {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom p {
    font-size: 13px;
    line-height: 1.5;
  }
}

/* Para pantallas grandes */
@media (min-width: 1400px) {
  .footer-container {
    max-width: 1300px;
  }
}

/* Efecto de scroll suave para enlaces internos */
html {
  scroll-behavior: smooth;
}

/* Ajustar scroll para evitar que el header tape el contenido */
:target {
  scroll-margin-top: 100px;
}
/* =========== MODAL PARA CV =========== */
.cv-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 83, 104, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s ease;
}

.cv-modal .modal-content {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.close-cv-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 35px;
  color: #085368;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 2;
}

.close-cv-modal:hover {
  color: #AB6923;
  background: rgba(8, 83, 104, 0.1);
  transform: rotate(90deg);
}

.cv-modal-body {
  color: #333;
}

.cv-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #085368;
}

.cv-header h3 {
  color: #085368;
  font-size: 28px;
  margin-bottom: 5px;
}

.cv-position {
  color: #AB6923;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
}

.cv-section {
  margin-bottom: 25px;
}

.cv-section h3 {
  color: #085368;
  font-size: 20px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.cv-section ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.cv-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.cv-section p {
  line-height: 1.6;
  margin-bottom: 10px;
}

.cv-contact {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-top: 30px;
  border-left: 4px solid #AB6923;
}

.cv-contact p {
  margin-bottom: 8px;
  color: #666;
}

.cv-contact strong {
  color: #085368;
}
.btn-team{
  background:#AB6923;
  color:#fff;
  border:none;
  padding:10px 18px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
}
.btn-team:hover{opacity:0.9;}

.team-modal-role{
  margin-top:6px;
  font-weight:600;
  color:#AB6923;
}

/* ===== MOBILE FIX: Servicios full width + flechas en bordes ===== */
@media (max-width: 768px) {
  .services {
    padding-left: 0;
    padding-right: 0;
  }

  .services-carousel {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
    overflow: hidden;
  }

  .services-track {
    padding: 0;
  }

  .services-arrow.prev {
    left: 4px;
  }

  .services-arrow.next {
    right: 4px;
  }
}

/* ===== MOBILE FIX: Clientes en 2 columnas ===== */
@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== MOBILE FIX: Footer redes en fila ===== */
@media (max-width: 768px) {
  .footer-social {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }
}








/* ================= MOBILE OVERRIDES ================= */
@media (max-width: 900px) {
  /* ===== Servicios: swipe nativo con snap centrado ===== */
  .services { padding-left: 0 !important; padding-right: 0 !important; }

  .services-carousel{
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
    position: relative !important;
  }

  .services-track{
    display: flex !important;
    gap: 16px !important;
    padding: 18px 7vw !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding: 0 7vw !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    transform: none !important;
    transition: none !important;
  }
  .services-track::-webkit-scrollbar { display: none; }

  .service-card{
    flex: 0 0 86vw !important;
    max-width: 520px !important;
    scroll-snap-align: center !important;
  }

  .services-arrow { display: none !important; }

  /* ===== Clientes: 2 columnas ===== */
  .clients-grid{
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  .client-logo img{ width: 100% !important; height: auto !important; }

  /* ===== Footer: iconos sociales en fila ===== */
  .footer-social{
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .footer-social-icon{
    display: inline-flex !important;
    flex: 0 0 auto !important;
    min-width: auto !important;
    width: auto !important;
  }
}




/* ================= MOBILE SERVICES SNAP ================= */
@media (max-width: 900px) {
  .services-carousel{ overflow: visible !important; }
  .services-track{
    display:flex !important;
    gap:14px !important;
    padding: 18px 10vw !important;
    overflow-x:auto !important;
    overflow-y:visible !important;
    scroll-snap-type:x mandatory !important;
    scroll-padding:0 10vw !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior:smooth !important;
    transform:none !important;
    transition:none !important;
  }
  .services-track::-webkit-scrollbar{ display:none; }

  .service-card{
    flex: 0 0 80vw !important;
    max-width: 520px !important;
    scroll-snap-align:center !important;
    transform-origin:center center !important;
    opacity:0.45 !important;
    transform: scale(0.94) !important;
    transition: transform .18s ease, opacity .18s ease !important;
  }
  .service-card.active{
    opacity:1 !important;
    transform: scale(1.06) !important;
    z-index: 10 !important;
  }
  .services-arrow{ display:none !important; }
}
