/* -------------------------------------
   Ventus Insurance Website - style.css
   Updated: Hero con VIDEO o IMAGEN + CONTACT form + FIX móvil + Floating Buttons (Right Side)
------------------------------------- */

/* Google fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Roboto+Condensed:wght@400;600&display=swap');

:root {
  /* Brand Colors */
  --blue-base: #122147;
  --blue-dark: #1E3868;
  --blue-mid:  #3B5283;
  --blue-alt:  #2f5584;
  --gold-light: #C5AB62;
  --gold-dark:  #A58533;
  --white: #FFFFFF;
  --gray-dark: #2D2D2D;
  --gray-light: #D2D2D2;
  --max-width: 1200px;
  --header-height: 70px;
}

/* -------------------------------------
   GLOBAL STYLES
------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--gray-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Skip link accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: var(--blue-base);
  color: var(--white);
  z-index: 9999;
  border-radius: 4px;
}

/* -------------------------------------
   HEADER
------------------------------------- */
.header {
  width: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #f6f8fb 100%);
  color: #122147;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  height: var(--header-height);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.logo img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}
.logo img:hover {
  transform: scale(1.05);
}

.navbar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: #122147;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 4px;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links .active {
  color: var(--gold-light);
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #122147;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* -------------------------------------
   HERO SECTION - VIDEO + IMAGEN + OVERLAY
------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-video,
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  background: #0e1b3a;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 33, 71, 0.8), rgba(47, 85, 132, 0.6));
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  max-width: 900px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
  max-width: 700px;
  margin: 25px auto;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.15rem;
  color: #f3f3f3;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* BOTÓN (global) */
.btn-primary {
  background-color: var(--gold-light);
  color: var(--blue-base);
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
  display: inline-block;
  margin-top: 12px;
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--gold-dark);
  transform: translateY(-2px);
}

/* -------------------------------------
   PARTNERS SECTION
------------------------------------- */
.partners {
  background-color: #f8f9fb;
  padding: 80px 0;
  overflow: hidden;
}

.partners h2 {
  text-align: center;
  color: var(--blue-dark);
  font-size: 2rem;
  margin-bottom: 50px;
  font-weight: 700;
}

.partners-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  width: max-content;
  animation: partners-scroll 40s linear infinite;
}

.partners img {
  width: 150px;
  height: auto;
  object-fit: contain;
  opacity: 0.95;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.partners img:hover {
  transform: scale(1.08);
  opacity: 1;
}

@keyframes partners-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* -------------------------------------
   CONTENT SECTIONS
------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 20px;
}

section h2 {
  text-align: center;
  color: var(--blue-dark);
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 700;
}

.about p {
  max-width: 800px;
  margin: 10px auto;
  text-align: center;
  font-size: 1rem;
  color: var(--gray-dark);
}

/* -------------------------------------
   PRODUCTS SECTION
------------------------------------- */
.products {
  background-color: #f8f9fb;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.card {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px;
  transition: transform 0.3s ease;
  min-height: 300px;
}

.card:hover { transform: translateY(-5px); }

.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.card h3 {
  color: var(--blue-mid);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.card p {
  font-size: 0.9rem;
  color: var(--gray-dark);
  margin-bottom: 10px;
}

.card .btn-primary {
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 22px;
  align-self: center;
  margin-top: 8px;
}

/* -------------------------------------
   CONTACT PAGE STYLING
------------------------------------- */
.contact-section {
  background-color: #ffffff;
}

.contact-form {
  background: #f8f9fb;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-weight: 600;
  color: var(--blue-base);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 5px rgba(197, 171, 98, 0.4);
  outline: none;
}

.contact-form button {
  background-color: var(--gold-light);
  color: var(--blue-base);
  padding: 10px 24px;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  align-self: start;
  transition: 0.3s;
}

.contact-form button:hover {
  background-color: var(--gold-dark);
  transform: translateY(-2px);
}

.contact-info {
  text-align: left;
}

.contact-info h3 {
  color: var(--blue-mid);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.contact-info p {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--gray-dark);
}

/* -------------------------------------
   FOOTER
------------------------------------- */
.footer {
  background: var(--blue-base);
  color: var(--white);
  padding: 60px 20px 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  align-items: start;
  text-align: center;
}

.footer-logo img { width: 120px; margin-bottom: 10px; }

.footer-links a {
  display: block;
  color: var(--white);
  text-decoration: none;
  margin: 5px 0;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-social a img {
  width: 28px;
  margin: 0 8px;
  filter: brightness(0) invert(1);
  transition: 0.3s;
}

.footer-social a img:hover { filter: brightness(1); }

.footer-info p { font-size: 0.9rem; margin: 4px 0; }

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-light);
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 10px;
}

/* -------------------------------------
   🔹 FLOATING BUTTONS (Payments + WhatsApp)
------------------------------------- */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px; /* 👈 Cambiado a lado derecho */
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.float-btn {
  width: 50px;
  height: 50px;
  background-color: var(--blue-base);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.float-btn img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.payment-btn {
  background-color: var(--gold-light);
}

.payment-btn:hover {
  background-color: var(--gold-dark);
}

.whatsapp-btn {
  background-color: #25D366;
}

.whatsapp-btn:hover {
  background-color: #1ebe5d;
}

/* -------------------------------------
   RESPONSIVE DESIGN
------------------------------------- */
@media (max-width: 1000px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .values-grid { grid-template-columns: 1fr; }

  /* 👇 Reordenar Contact Info sobre el Formulario */
  .contact-section .container {
    display: flex;
    flex-direction: column;
  }

  .contact-info {
    order: 1;
    margin-bottom: 25px;
  }

  .contact-form {
    order: 2;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  }
  .nav-links.active { display: flex; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .partners img { width: 100px; }
  .partners-track { gap: 60px; }
  .card .btn-primary { font-size: 0.82rem; padding: 7px 14px; }

  .contact-form {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .card img { height: 120px; }
  .container { padding: 60px 16px; }
  .card .btn-primary { font-size: 0.78rem; padding: 6px 12px; }

  /* Ajustar tamaño flotantes en pantallas pequeñas */
  .float-btn {
    width: 44px;
    height: 44px;
  }
  .float-btn img {
    width: 22px;
    height: 22px;
  }
}


/* -------------------------------------
   FIX: Ajuste de imágenes en "Our Core Values"
   (Versión mejorada: tamaño medio + bordes redondeados)
------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  align-items: start;
  justify-content: center;
  text-align: center;
}

.value-card {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 24px 20px;
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
}

/* 🔹 Imagen con tamaño medio y estilo circular */
.value-card img {
  width: 120px;               /* Tamaño más grande */
  height: 120px;
  object-fit: cover;          /* Rellena sin deformar */
  border-radius: 50%;         /* Hace la imagen circular */
  border: 3px solid var(--gold-light); /* Borde dorado elegante */
  display: block;
  margin: 0 auto 18px;
  background-color: #f8f9fb;  /* Fondo claro si hay transparencia */
}

.value-card h3 {
  color: var(--blue-mid);
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--gray-dark);
  line-height: 1.5;
  max-width: 90%;
  margin: 0 auto;
}

/* -------------------------------------
   FORM CONSENT CHECKBOXES (FORZAR TAMAÑO MÁS PEQUEÑO)
------------------------------------- */
.form-consent {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem !important;   /* 🔹 Forzamos tamaño más pequeño */
  color: var(--gray-dark);
  line-height: 1.35;
}

.checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--gold-light);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox label,
.checkbox span {
  font-size: 0.78rem !important;   /* 🔹 Asegura que también el texto interno respete el tamaño */
  color: var(--gray-dark);
}

.checkbox a {
  color: var(--blue-mid);
  text-decoration: underline;
  font-size: 0.78rem !important;
}

.checkbox a:hover {
  color: var(--gold-dark);
}

/* ============================================
   GDPR POLICY PAGE STYLES — Ventus Insurance
   ============================================ */

.policy-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  color: #1a1a1a;
  line-height: 1.8;
  font-size: 1rem;
}

/* Headings */
.policy-content h2 {
  font-size: 2rem;
  color: #122147; /* Ventus primary color */
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.policy-content h3 {
  font-size: 1.3rem;
  color: #122147;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  border-left: 4px solid #122147;
  padding-left: 10px;
}

/* Paragraphs */
.policy-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

/* Lists */
.policy-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  list-style: none;
}

.policy-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.policy-content ul li::before {
  content: "•";
  color: #122147;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Links */
.policy-content a {
  color: #0b61b0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.policy-content a:hover {
  color: #083d73;
  text-decoration: underline;
}

/* Section spacing */
.policy-content strong {
  color: #122147;
}

/* Make the layout breathe on large screens */
@media (min-width: 768px) {
  .policy-content {
    padding: 3rem 2rem;
    font-size: 1.05rem;
  }

  .policy-content h2 {
    font-size: 2.2rem;
  }

  .policy-content h3 {
    font-size: 1.4rem;
  }
}


/* 🔹 FIX: Layout contacto responsive */
@media (max-width: 900px) {
  .contact-section .container {
    display: flex;
    flex-direction: column !important; /* fuerza apilado */
    gap: 25px; /* separación entre info y formulario */
  }

  .contact-info,
  .contact-form {
    width: 100%;
  }

  .contact-info {
    order: 1; /* primero aparece la información */
  }

  .contact-form {
    order: 2; /* luego el formulario */
  }
}

/* ----- Responsive Contact Section ----- */
@media (max-width: 768px) {
  .contact-section .container > div {
    display: flex !important;
    flex-direction: column;
    gap: 30px;
  }

  .contact-info,
  .contact-form {
    width: 100% !important;
  }

  .contact-form button {
    width: 100%;
    align-self: center;
  }
}

/* ----- Centrar botón "Contact Us" en todas las secciones ----- */
.about-section .btn,
.services-section .btn,
.products-section .btn,
.contact-cta .btn {
  display: inline-block;
  margin: 20px auto 0 auto;
  text-align: center;
}

.about-section,
.services-section,
.products-section,
.contact-cta {
  text-align: center;
}
/* ===========================
   ✅ CONSENT CHECKBOX STYLE (Refinado)
   =========================== */
.form-consent {
  margin-top: 1.2rem;
}

.form-consent .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem; /* texto más pequeño */
  line-height: 1.5;
  color: #444; /* tono gris profesional */
  text-align: justify; /* texto justificado */
}

.form-consent .checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  min-width: 18px;
  min-height: 18px;
  cursor: pointer;
  accent-color: #0056b3; /* color azul institucional */
  border-radius: 4px;
  flex-shrink: 0;
}

.form-consent .checkbox span {
  display: block;
  text-align: justify;
}

.form-consent .checkbox a {
  color: #0056b3;
  text-decoration: none;
  transition: color 0.2s ease;
}

.form-consent .checkbox a:hover {
  text-decoration: underline;
  color: #003d80; /* tono más oscuro al pasar el mouse */
}

/* ===========================
   📱 Responsive adjustments
   =========================== */
@media (max-width: 600px) {
  .form-consent .checkbox {
    font-size: 0.9rem;
    line-height: 1.6;
    gap: 0.5rem;
  }

  .form-consent .checkbox input[type="checkbox"] {
    min-width: 20px;
    min-height: 20px;
  }
}

