* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color:white;
  color: #333;
  scroll-behavior: smooth;
}

.container {
  text-align: center;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* NAVBAR */
.navbar {
  background: #fbfbfb;
  border-bottom: 2px solid #eee;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 70px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #f0b400;
}

/* HERO */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
              url('../images/rexmagrua.webp');
  /* Centrado perfecto */
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover; 
  
  /* Altura mínima foto */
  min-height: 50vh; 
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
}
.hero h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.hero p {
  margin-bottom: 20px;
}
.btn {
  display: inline-block;
  background: #f0b400;
  color: #111;
  padding: 10px 25px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}
.btn:hover {
  background: #111;
  color: #f0b400;
}
/* SECCIONES */
.section {
  padding: 80px 0;
}
.section.alt-bg {
  background: #ffffff;
}
.section h2 {
  text-align: center;
  color: #111;
  margin-bottom: 40px;
}
/* SERVICIOS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 40px;
}
.service-card {
  background: #fbfbfb;
  border: 1px solid #eee;
  padding: 25px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.35s ease;
  cursor: pointer;
}
.service-card h3 {
  color: #f0b400;
  margin-bottom: 10px;
}
.service-card p {
  color: #555;
  line-height: 1.5;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: #f0b400;
}
/* COLABORADORES */
.logo-slider {
  position: relative;
  overflow: hidden;
  width: 100%;/* ocupa toda la ventana */
  margin-left: calc(-50vw + 50%);
  background-color: #ffffff;
  padding: 40px 0;
}
#colaboradores p {
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: #444;
}
.slide-track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: scroll 50s linear infinite;
  width: max-content;
}
.slide-track img {
  max-width: 180px;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.3s, transform 0.3s;
  object-fit: contain;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 5px;
}
.slide-track img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* DISEÑO PROFESIONAL DE CONTACTO */
.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* Tarjeta a la izquierda, mapa a la derecha */
  gap: 30px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}

.contact-card {
  padding: 40px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.icon-box {
  background: #f0b40015; /* Color corporativo con transparencia */
  color: #f0b400;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-method h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #222;
}

.contact-method p, .contact-method a {
  color: #666;
  text-decoration: none;
  line-height: 1.6;
}

.btn-full {
  width: 100%;
  text-align: center;
  margin-top: 10px;
  padding: 15px;
}

.map-container {
  min-height: 400px;
  filter: grayscale(0.2); /* toque elegante al mapa */
}

/* ===================== */
/* FOOTER */
/* ===================== */

.footer {
  text-align: center;
  padding: 30px 0 40px;
  border-top: 1px solid #eee;
  margin-top: 40px;
}

.footer-copy {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
}

.footer-links a {
  color: #888;
}

.footer-links a:hover {
  color: #111;
}

.footer-links span {
  color: #c0c0c0;
}

/* ANIMACIONES SCROLL */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .slide-track img {
    max-width: 120px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Estilos para Páginas Legales */
.legal-content h1 { margin-bottom: 30px; color: #111; }
.legal-content h2 { margin-top: 40px; margin-bottom: 15px; font-size: 1.5rem; }
.legal-content p { margin-bottom: 15px; color: #555; }
.table-container { overflow-x: auto; margin: 25px 0; }

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

table th, table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

table th { background-color: #f0b400; color: #000; }

.legal-list { margin-left: 20px; margin-bottom: 20px; }
.warning-text { color: #888; font-size: 0.9rem; }

/* Asegúrate de tener esto en tu CSS */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
    top: 100%;
    left: 0;
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content li a {
    color: #333;
    padding: 12px 16px;
    display: block;
    text-decoration: none;
}
.dropdown-content li a:hover { background-color: #f1f1f1; }

        /* --- MEJORAS PARA PÁGINAS INTERNAS --- */
.page-banner {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../images/banner-hero.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0 60px;
    color: #ffff;
    text-align: center;
}

.services-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.service-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.service-detail-card.reverse {
    direction: rtl; /* Invierte el orden visualmente */
}

.service-detail-card.reverse .service-text {
    direction: ltr; /* Devuelve el texto a la normalidad */
}

.service-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.service-text h2::after { margin: 10px 0; }

.service-text ul {
    list-style: none;
    margin-top: 20px;
}

.service-text ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.service-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    bottom: -100%; /* Escondido al principio */
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    color: #fff;
    padding: 20px 0;
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
}

.cookie-banner.show {
    bottom: 0; /* Aparece con animación */
}

.cookie-banner p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.cookie-banner a {
    color: #f0b400; /* Color corporativo */
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.85rem;
    background-color: #f0b400;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.btn-outline {
    padding: 8px 20px;
    font-size: 0.85rem;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    cursor: pointer;
}

.btn-outline:hover {
    background: #fff;
    color: #000;
}
/* Para que la info de contacto se vea centrada tras quitar el form */
.contact-grid {
  display: flex;
  justify-content: center;
  max-width: 900px; /* Opcional: para que no se estire demasiado el mapa */
  margin: 0 auto;
}

.contact-info {
  width: 100%;
  text-align: center;
}

.whatsapp-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 50;
}

.whatsapp-btn img {
  width: 30px;
}

.map iframe {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 20px;
}
/* ==========================================================================
   SECCIÓN SOBRE NOSOTROS - DISEÑO PROFESIONAL
   ========================================================================== */

.section-nosotros {
    padding: 100px 5%;
    background-color: white;
    display: flex;
    justify-content: center;
}

.container-nosotros {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 60px;
    align-items: center;
}

/* Subtítulo en amarillo*/
.subtitle {
    display: block;
    color: #f0b400; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.nosotros-content h2 {
    font-size: 2.8rem;
    color: #1a1a1a;
    margin-bottom: 30px;
    position: relative;
}

/* Línea decorativa bajo el título */
.nosotros-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: #f0b400;
}

.text-wrapper p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Bloque de puntos clave */
.nosotros-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    background:whitesmoke;
    padding: 20px;
    border-left: 4px solid #f0b400;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-item .number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
}

.feature-item .label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Columna de imagen */
.main-img {
    width: 100%;
    height: auto;
    display: block; 
    margin: 0 auto; 
    border-radius: 4px;
    object-fit: cover; 
}

/* Responsive para móviles */
@media (max-width: 992px) {
    .container-nosotros {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .nosotros-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .nosotros-image {
        margin-top: 50px;
        order: 2;
    }

    .experience-badge {
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
    }
}