/* Reset y base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1;
}

body.subpage {
  background-color: #fff;
  color: #333;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes heroZoom {
  from {
    opacity: 0;
    transform: scale(1.1);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header / Barra de navegación */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 2rem 1.25rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
  transition: background 0.3s ease;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.85);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.logo-img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Navegación */
.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 400;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

/* Dropdown Styles */
.nav-item.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #242833;
  backdrop-filter: blur(10px);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  padding: 1rem 0;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: transparent;
  color: #fff;
  text-decoration: underline;
  transform: translateX(10px);
}

/* Ensure the dropdown doesn't disappear when moving mouse to it */
.nav-item.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
}

/* Iconos del header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.icon-btn svg {
  width: 26px;
  height: 26px;
}

.icon-btn:hover {
  opacity: 0.85;
}

/* Menu Overlay - Side Drawer (1/4th width) */
.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 25%;
  min-width: 320px;
  height: 100%;
  background-color: #221C16;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Align horizontally to the left */
  justify-content: center;
  /* Keep centered vertically */
  padding: 80px 60px;
  /* Increased left padding for elegance */
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
}

.menu-overlay.active {
  transform: translateX(0);
  visibility: visible;
}

.menu-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  transition: transform 0.3s ease;
  z-index: 2001;
}

.menu-close:hover {
  transform: rotate(90deg);
}

/* Menu Navigation */
.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 3rem;
}

.menu-nav-link {
  color: #fff;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0.75rem 0;
  transition: color 0.3s ease, transform 0.3s ease;
  display: block;
}

.menu-nav-link:hover {
  color: #A39E69;
  transform: translateX(5px);
}

.menu-nav-link.active {
  color: #A39E69;
}

.menu-nav-item {
  display: flex;
  flex-direction: column;
}

.menu-nav-toggle {
  cursor: pointer;
  position: relative;
}

.menu-nav-toggle::after {
  content: '+';
  position: absolute;
  right: 0;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.menu-nav-item.open .menu-nav-toggle::after {
  content: '−';
}

.menu-nav-submenu {
  height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 1.25rem;
  margin-right: 1.5rem; /* Space to avoid overlap with toggle icon */
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-nav-item.open .menu-nav-submenu {
  margin-top: 0.5rem;
}

.menu-nav-sublink {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.5rem 0;
  transition: color 0.3s ease, transform 0.3s ease;
  display: block;
}

.menu-nav-sublink:hover {
  color: #A39E69;
  transform: translateX(5px);
}

.menu-socials {
  position: absolute;
  bottom: 60px;
  left: 60px;
  right: 60px;
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.menu-social-link:hover {
  color: #A39E69;
  transform: translateY(-3px);
  background: rgba(163, 158, 105, 0.1);
}

.menu-social-link svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 1024px) {
  .menu-overlay {
    width: 40%;
  }
}

@media (max-width: 768px) {
  .menu-overlay {
    width: 85%;
    padding: 60px 40px; /* Reduced side padding for mobile */
  }

  .menu-nav-link {
    font-size: 1.25rem; /* Slightly smaller on mobile */
  }

  .menu-nav-sublink {
    font-size: 0.9rem; /* Better fit for long service names */
  }
}

/* Hero / Banner - Coloca tu imagen en assets/banner.jpg (o cambia esta ruta) */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
  /* Contain the zooming background */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 0;
  animation: heroZoom 1.5s ease-out forwards;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  z-index: 10;
  font-family: "DM Sans", sans-serif;
  display: inline-block;
  will-change: transform, opacity;
  touch-action: manipulation;
  height: auto;
  width: auto;
  color: rgb(255, 255, 255);
  text-decoration: none;
  white-space: normal;
  min-height: 0;
  min-width: 0;
  max-height: none;
  max-width: none;
  text-align: left;
  line-height: 85px;
  letter-spacing: -1px;
  font-weight: 700;
  font-size: 77px;
  backdrop-filter: none;
  filter: none;
  transform-origin: 50% 50%;
  opacity: 0;
  transform: translateY(30px);
  visibility: visible;
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  animation: slideUpFade 0.8s ease 0.3s forwards;
  user-select: none;
}

.hero-subtitle {
  width: 100%;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.5;
  color: #FFFFFF;
  margin-bottom: 2rem;
  text-align: left;
  opacity: 0;
  transform: translateY(30px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  animation: slideUpFade 0.8s ease 0.5s forwards;
  user-select: none;
}

.hero-cta {
  align-self: flex-start;
  display: inline-block;
  padding: 1rem 2.25rem;
  background-color: #656635;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: background-color 0.2s ease, transform 0.15s ease;
  animation: slideUpFade 0.8s ease 0.7s forwards;
  user-select: none;
}

.hero-cta:hover {
  background-color: #5a6d3d;
  transform: translateY(-1px);
}

/* Sección Nuestros Servicios */
.services {
  background-color: #F8F8F4;
  padding: 6rem 2rem;
}

.services-title {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.services-title-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #1a1a1a;
  border-radius: 50%;
  align-self: center;
}

.services-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  min-height: 340px;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.service-card:hover .service-card-bg {
  transform: scale(1.1);
  filter: brightness(0.6);
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.5s ease;
  will-change: transform;
}

.service-card-custodia .service-card-bg {
  background-image: url('../assets/custodia_card.jpg');
  background-color: #4a5568;
}

.service-card-gestor .service-card-bg {
  background-image: url('../assets/gestor_card.jpg');
  background-color: #2d3748;
}

.service-card-traslado .service-card-bg {
  background-image: url('../assets/traslado_card.jpg');
  background-color: #1a202c;
}

.service-card-seguridad .service-card-bg {
  background-image: url('../assets/seguridad_card.jpg');
  background-color: #4a6b5c;
}

.service-card-vigilancia .service-card-bg {
  background-image: url('../assets/vigilancia_card.jpg');
  background-color: #3d5a4a;
}

.service-card-investigacion .service-card-bg {
  background-image: url('../assets/investigacion_card.jpg');
  background-color: #2c3e50;
}

.service-card-alarmas .service-card-bg {
  background-image: url('../assets/alarmas_card.jpg');
  background-color: #2c3e50;
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  z-index: 1;
}

.service-card-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.service-card-title {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.service-card-link {
  color: #9ca3af;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.service-card-link:hover {
  color: #d1d5db;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .header {
    padding: 1rem 1.25rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 52px);
    line-height: 1.15;
    letter-spacing: -0.5px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .services-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 5rem 1.25rem 3rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .services {
    padding: 3rem 1.25rem 4rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card {
    min-height: 260px;
  }
}

/* Sección Diferenciación con Slider */
.differentiation {
  background-color: #F8F8F4;
  padding: 6rem 0 8rem;
  /* Padding adjusted for slider */
  text-align: center;
  overflow: hidden;
}

.differentiation-title {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4rem;
  padding: 0 2rem;
}

/* .differentiation { ... } remains the same */

.differentiation-slider-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  user-select: none;
}

.differentiation-viewport {
  overflow: hidden;
  margin: 0 60px;
  /* Space for arrows */
}

/* Nav Arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  color: #1a1a1a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.slider-nav:hover {
  background-color: #A39E69;
  color: #fff;
  border-color: #A39E69;
}

.slider-nav.prev {
  left: 5px;
}

.slider-nav.next {
  right: 5px;
}

.differentiation-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  cursor: grab;
}

.differentiation-track:active {
  cursor: grabbing;
}

.diff-card {
  flex: 0 0 25%;
  /* Show exactly 4 cards */
  padding: 3rem 2rem;
  /* Increased padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid #eee;
  background: #F8F8F4;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.diff-card:hover {
  background-color: #fff;
  transform: translateY(-5px);
  z-index: 1;
}

.diff-card:last-child {
  border-right: none;
}

.diff-icon {
  margin-bottom: 2rem;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}

.diff-icon svg {
  width: 50px;
  height: 50px;
}

.diff-title {
  font-family: "DM Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  min-height: 3.2em;
  /* Ensure alignment */
  display: flex;
  align-items: center;
}

.diff-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

/* Responsive Slider */
@media (max-width: 1200px) {
  .differentiation-viewport {
    margin: 0 50px;
  }

  .diff-card {
    flex: 0 0 33.333%;
    /* Show 3 cards */
  }
}

@media (max-width: 900px) {
  .differentiation-viewport {
    margin: 0 40px;
  }

  .diff-card {
    flex: 0 0 50%;
    /* Show 2 cards */
  }
}

@media (max-width: 600px) {
  .differentiation-viewport {
    margin: 0 30px;
  }

  .diff-card {
    flex: 0 0 100%;
    /* Show 1 card */
  }
}

.differentiation-bottom-text {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 4rem;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.1;
  padding: 0 1rem;
}

/* Contact Section */
.contact {
  background-color: #F8F8F4;
  padding: 4rem 2rem;
}

.contact-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  /* Alineación vertical centrada si lo deseas, o 'stretch' */
  gap: 4rem;
  /* Separación amplia entre mapa y formulario */
  min-height: 600px;
}

.contact-map {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  min-height: 400px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form-wrapper {
  padding: 2rem;
  background-color: #fbfbfb;
  /* Fondo muy ligero detrás del formulario, opcional. La imagen parece blanca. */
  background-color: transparent;
  /* Si prefieres transparente como la imagen */
}

.contact-title {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 2rem;
  display: block;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

/* Inputs styling: solo border-bottom */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid #ddd;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: #333;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: #2ecc71;
  /* Color verde al foco */
}

/* Placeholder styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

.submit-btn {
  background-color: #2ecc71;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease;
  align-self: flex-start;
  /* Alineado a la izquierda */
  margin-top: 1rem;
  border-radius: 4px;
  /* Un poco de radio o 0 según prefieras */
}

.submit-btn:hover {
  background-color: #27ae60;
}


/* Responsive Contact */
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-map {
    height: 400px;
    order: -1;
    /* Mapa primero en móvil si quieres, o quita esta línea */
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Footer Section */
.footer {
  background-color: #221C16;
  color: #fff;
  padding: 3rem 2rem 2rem;
  font-family: "Inter", sans-serif;
}

.footer-top-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
  position: relative;
}



.footer-top-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-top-links a:hover {
  color: #fff;
}

.footer-info-grid {
  max-width: 1200px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3rem;
  align-items: start;
}

.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* First item (Direction) has no icon in image, purely text aligned differently? 
   The image shows "Dirección" as title. Let's keep it consistent. */
.footer-info-item:first-child {
  display: flex;
}

.footer-reclamaciones-link-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.footer-reclamaciones-link-item:hover {
  transform: translateX(5px);
}

.footer-icon-wrapper {
  background-color: #fff;
  color: #000;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-info-content {
  display: flex;
  flex-direction: column;
}

.footer-info-title {
  color: #fff;
  font-size: 1.25rem;
  /* Increased from 1.1rem */
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-info-text {
  color: #bbb;
  font-size: 1.05rem;
  /* Increased from 0.9rem */
  line-height: 1.6;
}


.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
  background-color: #221d18;
}

.social-link:hover {
  border-color: #666;
  background-color: #333;
}

.footer-copyright {
  text-align: center;
  color: #777;
  font-size: 0.85rem;
}

/* Responsive Footer */
@media (max-width: 900px) {
  .footer-info-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .footer-info-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .footer-info-item:first-child {
    display: flex;
  }

  .footer-top-links {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
  }
}

/* Service Page Layout */
.service-page-section {
  padding: 160px 2rem 5rem;
  background-color: #fff;
  color: #333;
  max-width: 1400px;
  /* Increased from 1200px */
  margin: 0 auto;
  text-align: left;
}

.service-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  /* Increased left column ratio */
  gap: 3rem;
  /* Slightly reduced gap */
  align-items: start;
}

/* Left Column Content */
.service-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-image-placeholder {
  width: 100%;
  height: 550px;
  background-color: #f0f0f0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1.1rem;
  overflow: hidden;
}

.service-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.service-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

.service-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.service-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
}

.service-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #1a1a1a;
  font-weight: bold;
}

/* Right Column Sidebar (Sticky) */
.service-sidebar {
  position: sticky;
  top: 120px;
  /* Adjust based on header height */
  background-color: #F8F8F4;
  /* Light background */
  padding: 2.5rem 2rem;
  border-radius: 4px;
}

.sidebar-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2rem;
}

.sidebar-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.sidebar-form input,
.sidebar-form textarea {
  width: 100%;
  padding: 0.8rem 0;
  border: none;
  border-bottom: 1px solid #ddd;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.sidebar-form input:focus,
.sidebar-form textarea:focus {
  border-bottom-color: #A39E69;
  /* Goldish accent */
}

.sidebar-form ::placeholder {
  color: #aaa;
}

.sidebar-submit-btn {
  background-color: #A39E69;
  /* Gold/Beige color from image */
  color: #fff;
  border: none;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 2px;
  transition: background-color 0.2s;
  align-self: flex-start;
  margin-top: 0.5rem;
}

.sidebar-submit-btn:hover {
  background-color: #8c8756;
}

.sidebar-contact-info {
  margin-top: 2rem;
}

.sidebar-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.sidebar-contact-item svg {
  color: #A39E69;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 900px) {
  .service-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .service-sidebar {
    position: static;
    /* No longer sticky on mobile */
    margin-top: 2rem;
  }
}

.bold-text {
  font-weight: bold;
}

/* Contact Page Styles */
.contact-page-section {
  padding: 160px 2rem 5rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2.5rem;
  text-align: left;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.contact-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 0.8rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #333;
  outline: none;
  background: transparent;
  transition: border-color 0.2s;
}

.contact-input:focus {
  border-bottom-color: #A39E69;
}

.contact-input::placeholder {
  color: #888;
}

.contact-textarea {
  resize: none;
  min-height: 100px;
}

.contact-submit-btn {
  background-color: #A39E69;
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 2px;
  transition: background-color 0.2s;
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 1rem;
}

.contact-submit-btn:hover {
  background-color: #8c8756;
}

@media (max-width: 768px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* News Page Styles */
.news-page-section {
  padding: 160px 2rem 5rem;
  max-width: 1200px;
  /* Wider for news grid */
  margin: 0 auto;
}

.news-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.news-card {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 0;
  /* Clean look usually implies no gap if background matches, but let's see */
  background-color: #F8F8F4;
  /* Light background for the card/text area as seen in image */
  text-decoration: none;
  color: inherit;
  align-items: stretch;
  /* Stretch image to match content height */
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.news-image-placeholder {
  background-color: #ddd;
  /* Placeholder gray */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.9rem;
  min-height: 250px;
  /* Ensure some height if text is short */
}

.news-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.news-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .news-card {
    grid-template-columns: 1fr;
    grid-template-rows: 250px 1fr;
  }
}

/* News Detail Page Redesign */
.news-detail-main {
  padding-top: 120px;
  /* Header height */
}

.news-hero-section {
  width: 100%;
  height: 600px;
  /* Large hero image */
  position: relative;
  overflow: hidden;
}

.news-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-title-box {
  background-color: #fff;
  max-width: 1200px;
  margin: -100px auto 3rem;
  /* Overlap image */
  padding: 3rem 4rem;
  position: relative;
  z-index: 10;
  text-align: center;
  border-radius: 0;
  /* Square corners */
}

.news-detail-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.back-link-wrapper {
  text-align: center;
  margin-bottom: 1rem;
}

.back-link {
  display: inline-block;
  color: #A39E69;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.back-link:hover {
  color: #8c8756;
}

.news-content-wrapper {
  max-width: 1300px;
  margin: 0 auto 6rem;
  padding: 0 2rem;
}

.news-body-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
  text-align: justify;
}

.news-body-text p {
  margin-bottom: 1.5rem;
}

.news-body-text ul,
.news-body-text ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.news-body-text ul {
  list-style: disc;
}

.news-body-text ol {
  list-style: decimal;
}

.news-body-text li {
  margin-bottom: 0.5rem;
}

.news-body-text li:last-child {
  margin-bottom: 0;
}


.news-body-text img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
  .news-title-box {
    width: 90%;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .news-hero-section {
    height: 350px;
  }

  .news-title-box {
    margin-top: -50px;
    padding: 1.5rem;
  }

  .news-detail-title {
    font-size: 2rem;
  }
}

/* Work With Us Page Styles */
.work-page-section {
  padding-top: 130px;
  /* Increased from 80px to move image down */
}

.work-banner {
  width: 100%;
  height: 350px;
  /* Adjust height as needed */
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
  max-width: 1100px;
  /* Increased from 1000px */
  margin-left: auto;
  margin-right: auto;
  border-radius: 2px;
}

.work-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 3.5rem;
  /* Increased from 2.5rem */
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 3rem;
}

.work-form {
  max-width: 1000px;
  /* Increased from 900px */
  margin: 0 auto 5rem;
  padding: 0 1rem;
}

.work-input-group {
  position: relative;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.work-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.work-input {
  width: 100%;
  border: none;
  padding: 1rem 1rem 1rem 2.5rem;
  /* Space for icon */
  font-size: 1.1rem;
  color: #333;
  font-family: 'Inter', sans-serif;
  background: transparent;
  outline: none;
}

.work-file-group {
  margin: 1.5rem 0;
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.work-file-group.dragover {
  background: rgba(255, 235, 59, 0.1);
  border: 2px dashed #fcd12a;
  border-radius: 8px;
}

.file-upload-label {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
}

.work-input::placeholder {
  color: #aaa;
}

.file-select-btn {
  background-color: #e0e0e0;
  border: 1px solid #ccc;
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  border-radius: 2px;
}

.file-name {
  color: #888;
  font-size: 0.95rem;
}

.work-submit-btn {
  background-color: #A39E69;
  /* Match provided gold/olive tone */
  color: #fff;
  border: none;
  padding: 0.8rem 2.5rem;
  font-size: 1rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.2s;
}

.work-submit-btn:hover {
  background-color: #8c8756;
}

@media (max-width: 768px) {
  .work-banner {
    height: 250px;
    border-radius: 0;
  }

  .work-title {
    font-size: 2rem;
  }
}

/* Custom Cursor Global Implementation - Natural cursor enabled */

.custom-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(12px, 12px);
  /* Offset from pointer */
  transition: width 0.2s ease, height 0.2s ease, opacity 0.3s ease;
  will-change: transform;
}

/* Service Card Enhancements */
/* Cursor is already set in the global Implementation section above */

/* Link Arrow Effect */
.service-card-link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.service-card-link::after {
  content: '→';
  /* Right arrow character */
  position: absolute;
  left: 0;
  bottom: -22px;
  /* Positioned under the text, aligned left */
  transform: translateX(-10px);
  /* Initial offset for animation */
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  color: #fff;
}

.service-card:hover .service-card-link::after {
  opacity: 1;
  transform: translateX(0);
  /* Slide into place from left */
}

.radio-label {
  margin-right: 20px;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 5px;
}

.claim-type .radio-label {
  color: #fff;
}

.provider-info-bottom {
  margin-top: 30px;
  padding: 20px;
  background: #f9f9f9;
  font-size: 0.9rem;
  border-top: 1px solid #eee;
}

.form-actions {
  text-align: center;
  margin-top: 30px;
}

.legal-base {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #666;
}

@media (max-width: 768px) {
  .complaints-container {
    padding: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .complaints-title-row {
    flex-direction: column;
    gap: 20px;
  }

  .complaints-subtitle {
    text-align: left;
  }
}

/* Improved Libro de Reclamaciones Layout */
.payment-condition {
  margin-top: 15px;
  padding: 10px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  gap: 20px;
}

.payment-condition label {
  font-weight: 600;
}

.payment-options {
  display: flex;
  gap: 15px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* Complaints Page Core Styles */
.complaints-page {
  background-color: #f4f4f4;
  padding: 180px 20px 80px;
  color: #333;
}

.complaints-container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.complaints-header {
  border-bottom: 2px solid #333;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.complaints-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.complaints-main-title h1 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.date-fields {
  display: flex;
  gap: 10px;
}

.date-group {
  display: flex;
  flex-direction: column;
}

.date-group label {
  font-size: 0.7rem;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2px;
  color: #666;
}

.date-group input {
  width: 60px;
  text-align: center;
  padding: 8px;
  border: 1px solid #333;
  font-weight: bold;
  color: #333;
  background-color: #f9f9f9;
}

.complaints-subtitle {
  text-align: right;
}

.complaints-subtitle h2 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #1a1a1a;
}

.sheet-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: #c00;
}

.provider-info {
  font-size: 0.9rem;
  margin-top: 15px;
  color: #333;
}

.form-section {
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid #eee;
}

.section-title {
  font-size: 1.1rem;
  background: #221C16;
  color: #fff;
  padding: 10px 15px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #221C16;
  margin-bottom: 20px;
}

.section-header-flex .section-title {
  margin-bottom: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 1rem;
  color: #333 !important;
  background-color: #fff;
}

.minor-section {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px dashed #ccc;
}

.minor-section h4 {
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: #666;
  text-transform: uppercase;
}

/* PDF Export Optimizations */
.complaints-container.pdf-export {
  width: 190mm !important;
  /* Standard A4 width minus some margin */
  max-width: none !important;
  margin: 0 !important;
  padding: 10mm !important;
  box-shadow: none !important;
  border: 1px solid #000 !important;
  background-color: #ffffff !important;
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  overflow: visible !important;
  height: auto !important;
}

.pdf-export .form-section {
  page-break-inside: avoid;
  break-inside: avoid;
  margin-bottom: 20px !important;
}

.pdf-export .section-title {
  background: #221C16 !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.pdf-export input,
.pdf-export textarea {
  border: 1px solid #777 !important;
  background-color: #fff !important;
}
/* --- About & History Sections (Accordion) --- */
.about-section {
    padding: 160px 2rem 5rem;
    background-color: #fff;
    color: #333;
    max-width: 1000px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 5rem;
}

.about-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #1a1a1a;
}

.about-intro {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #777;
    margin-bottom: 5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.about-hero {
    width: 100%;
    height: 600px;
    background-color: #fff;
    overflow: hidden;
    position: relative;
    margin-top: 160px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.content-block {
    border-top: 1px solid #eee;
}

.content-block:last-of-type {
    border-bottom: 1px solid #eee;
}

.about-section details {
    width: 100%;
    overflow: hidden; /* Prevent jumping during transition */
}

.about-section summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2.5rem 0;
    cursor: pointer;
    list-style: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    outline: none;
}

.about-section summary::-webkit-details-marker {
    display: none;
}

.about-section summary::before {
    content: '‣';
    font-size: 1.5rem;
    color: #1a1a1a;
    transition: transform 0.2s ease;
}

.about-section details[open] summary::before {
    transform: rotate(90deg);
}

.block-content {
    padding: 0 0 2.5rem 3.5rem;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
}

.values-list {
    list-style: none;
    padding-left: 0;
}

.values-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
    color: #666;
    font-size: 1.1rem;
}

.values-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #666;
}

@media (max-width: 768px) {
    .about-section {
        padding: 80px 1.5rem 3rem;
    }
    
    .about-hero {
        height: auto;
        min-height: 300px;
        margin-top: 100px;
    }

    .about-title {
        font-size: 2.5rem;
    }

    .about-section summary {
        font-size: 1.4rem;
        padding: 1.5rem 0;
    }

    .block-content {
        padding: 0 0 1.5rem 2.5rem;
        font-size: 1rem;
    }
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #656635; /* Matching brand buttons */
    color: #fff; /* White text/icon for better contrast with olive */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.8);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top:hover {
    background-color: #5a6d3d; /* Slightly lighter/darker variation or brand yellow */
    color: #fff;
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 8px 25px rgba(101, 102, 53, 0.3);
}

.scroll-top svg {
    transition: transform 0.3s ease;
}

.scroll-top:hover svg {
    transform: translateY(-2px);
}
