/* Estilos generales */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  padding-top: var(--site-header-height);
}

/* Header fijo */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

/* Contenedor interno header */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem; 
}

/* Logo */

.site-header .logo img {
  max-height: 60px;
  height: auto;
  width: auto;
}


/* Navegación */
.site-header .main-nav ul {
  display: flex;
  gap: 1.5em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .main-nav a {
  text-decoration: none;
  color: #1b263b;
  font-weight: 500;
}

.site-header .btn-cta:hover {
  background-color: #e8ae2b;
}

/* Botones del hero */
.buttons button {
  margin: 1em;
  padding: 0.8em 1.5em;
  font-size: 1em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
/* Botones del hero */
.buttons button:first-child {
  background-color: #1b263b;
  color: white;
}
/* Botones del hero */
.buttons button:last-child {
  background-color: #e0e1dd;
  color: #1b263b;
}
/* Botones del hero */
.beneficios {
  display: flex;
  justify-content: space-around;
  background-color: #ffffff;
  padding: 1em;
}


/* Seccion de nuestros servicios exclusivos */


/* Iconos de beneficios */
.icono {
  font-size: 1.2em;
  text-align: center;
}

/* Sección: ¿Por qué elegirnos? */
.por-que-elegirnos {
  padding: 2em;
  background-color: #e0e1dd;
}
/* Estilos para el título y la lista */
.por-que-elegirnos h2 {
  text-align: center;
}
/* Estilos para la lista */
.por-que-elegirnos ul {
  list-style: none;
  padding: 0;
}
/* Estilos para los elementos de la lista */
.por-que-elegirnos li {
  margin: 1em 0;
}
/* Estilos para la sección de servicios exclusivos */
.servicios-exclusivos {
  background-color: #ffffff;
  padding: 2em;
}
/* Estilos para el título */
.servicios-exclusivos h2 {
  text-align: center;
  margin-bottom: 1.5em;
  color: #1b263b;
}
/* Estilos para la cuadrícula de servicios */
.servicios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
}
/* Estilos para los elementos de la cuadrícula */
.servicio {
  background-color: #e0e1dd;
  padding: 1.5em;
  border-radius: 8px;
  width: 300px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* Estilos para el título */
.servicio h3 {
  color: #0d1b2a;
}
/* Estilos para la lista */
.servicio ul {
  padding-left: 1em;
  margin: 1em 0;
}
/* Estilos para los enlaces */
.servicio a {
  display: inline-block;
  margin-top: 1em;
  color: #1b263b;
  text-decoration: underline;
  font-weight: bold;
}
/* Estilos para la sección de consulta gratuita */
.consulta-gratuita {
  background-color: #1b263b;
  color: white;
  text-align: center;
  padding: 2em;
}
/* Estilos para el título */
.consulta-gratuita h2 {
  margin-bottom: 0.5em;
}
/* Estilos para el párrafo */
.consulta-gratuita p {
  margin-bottom: 1em;
  font-size: 1.1em;
}
/* Estilos para el botón */
.consulta-gratuita button {
  background-color: #e0e1dd;
  color: #1b263b;
  border: none;
  padding: 0.8em 1em;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
/* Estilos para el botón */
.consulta-gratuita button:hover {
  background-color: #c5c6c7;
}
/* Estilos para la sección de llamada a la acción final */
.cta-final {
  background: linear-gradient(to right, #1b263b, #415a77);
  color: white;
  text-align: center;
  padding: 3em 1em;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.cta-final.visible {
  /* Cuando entra en viewport */
  opacity: 1;
  transform: translateY(0);
}

.cta-content h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

.cta-content p {
  font-size: 1.2em;
  margin-bottom: 1em;
}

.cta-benefits {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5em;
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
}

.cta-benefits li {
  font-size: 1.1em;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5em 1em;
  border-radius: 8px;
}

.cta-final button {
  background-color: #e0e1dd;
  color: #1b263b;
  border: none;
  padding: 1em 2em;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-final button:hover {
  background-color: #c5c6c7;
}


.cotizacion-info {
  width: fit-content;
  max-width: 500px;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1em 1.5em;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.cotizacion-info h2 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
}

.cotizacion-info ul {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}

.cotizacion-info li {
  margin-bottom: 0.5em;
}

.cotizacion-formulario {
  max-width: 400px;
  background-color: #ffffff;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cotizacion-formulario h3 {
  margin-bottom: 1em;
  color: #0d1b2a;
}

.cotizacion-formulario form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.cotizacion-formulario input,
.cotizacion-formulario select,
.cotizacion-formulario textarea {
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

.cotizacion-formulario button {
  background-color: #fcbf49;
  color: #1b263b;
  border: none;
  padding: 0.8em;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cotizacion-formulario button:hover {
  background-color: #f77f00;
}
.footer {
  background-color: #1b263b;
  color: #ffffff;
  padding: 3em 1em 2em;
  font-size: 0.95em;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2em;
  margin-bottom: 2em;
}

.footer h2, .footer h3 {
  margin-bottom: 0.5em;
  color: #fcbf49;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer-btn {
  display: inline-block;
  background-color: #fcbf49;
  color: #1b263b;
  padding: 0.6em 1.2em;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 1em;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid #fcbf49;
  padding-top: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}

.footer-social a {
  margin: 0 0.5em;
}
.por-que-somos-diferentes {
  background-color: #111;
  color: #fff;
  padding: 4em 1em 2em;
  height: 100%;
}

.diferentes-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2em;
}

.diferentes-text {
  flex: 1 1 350px;
}

.diferentes-text h2 {
  font-size: 2em;
  margin-bottom: 1em;
  color: #fcbf49;
}

.diferentes-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2em;
}

.diferentes-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.2em;
}

.diferentes-list img {
  width: 40px;
  margin-right: 0.8em;
  flex-shrink: 0;
}

.diferentes-list strong {
  color: #fff;
}

.btn-conoce {
  background-color: #fcbf49;
  color: #111;
  border: none;
  padding: 0.8em 2em;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: 
    background-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-conoce:hover {
  background-color: #fff;
  color: #111;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.diferentes-image {
  position: relative;
  flex: 1 1 400px;
  text-align: center;
}

.diferentes-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.badge {
  position: absolute;
  top: 1em;
  right: 1em;
  background-color: #fcbf49;
  color: #111;
  padding: 0.6em 1em;
  border-radius: 50px;
  text-align: center;
}

.badge span {
  display: block;
  font-size: 1.2em;
  font-weight: bold;
}

.badge small {
  display: block;
  font-size: 0.75em;
  text-transform: uppercase;
}

.cotizacion-personalizada {
  position: relative;
  z-index: 1;

  background-color: #f4f4f4;
  background-image: url('img/Opcion_1.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);

  
  padding: 4em 2em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
}

.cotizacion-personalizada::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.3);
  z-index: -1;
}
.footer-legal {
  border-top: 1px solid #fcbf49;
  padding-top: 1em;
  margin-top: 1em;
  text-align: center;
  font-size: 0.85em;
  color: #dfdde1;
  background-color: #111; 
}

.footer-legal p {
  margin: 0.2em 0;
}

.legal-links {
  margin: 0.5em 0;
}

.legal-links a {
  color: #fcbf49;
  text-decoration: none;
  margin: 0 0.5em;
}

.legal-links a:hover {
  text-decoration: underline;
}

.separator {
  color: #1c2209;
}

.footer-legal .footer-social {
  margin-top: 0.5em;
}

.footer-legal .footer-social a {
  margin: 0 0.5em;
  font-size: 0.9em;
  color: #fcbf49;
  text-decoration: none;
}

.footer-legal .footer-social a:hover {
  color: #fcbf49;
}
:root{
  --site-header-height: 64px; /* fallback; JS ajustará esto dinámicamente */
}

/* Navegación */
.site-header .main-nav ul {
  display: flex;
  gap: 1.5em;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Botón CTA */
.site-header .btn-cta {
  background-color: #fcbf49;
  color: #1b263b;
  text-decoration: none;
  padding: 0.6em 1.2em;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}
/*fondo imagen cabezera*/
.hero-header {
  background: url('img/img3.png') center/cover no-repeat;
  color: rgb(0, 0, 0);
  padding: 4em 2em;
  text-align: center;
}
  .buttons button:last-child {
    background-color: #e0e1dd;
    color: #1b263b;
  }

/* Compensación para anclas */
section {
  scroll-margin-top: calc(var(--site-header-height) + 1rem);
}


@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .diferentes-content,
  .cotizacion-personalizada {
    flex-direction: column;
    align-items: center;
  }

  .servicio,
  .cotizacion-formulario,
  .cotizacion-info {
    width: 100%;
    max-width: 90%;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}


@media (max-width: 600px) {
  .site-header .logo img {
    max-height: 40px;
  }
}

