:root {
  --primary: #073464;
  --accent: #C33329;
  --whatsapp: #28d366;

  --bg: #ffffff;
  --text: #0b1b2b;
  --muted: #5b6b7a;
  --section-alt: #f7f9fc;
  --focus-outline: #073464;
}

/* Accessibility: Focus visible for all interactive elements */
*:focus-visible {
  outline: 3px solid var(--focus-outline);
  outline-offset: 2px;
}

.prefers-reduced-motion *,
.prefers-reduced-motion *::before,
.prefers-reduced-motion *::after {
  animation: none !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* Skip to main link */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  z-index: 100;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}

.skip-to-main:focus-visible {
  top: 0;
}

/* =====================
   RESET
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui;
}

img,
picture {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* =====================
   CONTAINER
===================== */
.container {
  width: min(1100px, 90%);
  margin: auto;
}

/* =====================
   TYPOGRAPHY
===================== */
h1, h2, h3 {
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 30px;
  max-width: 60ch;
}

/* =====================
   HEADER
===================== */
.header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
  padding: 14px 65px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent);
}

/* =====================
   NAV TOGGLE (MOBILE)
===================== */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  margin: 4px 0;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    background: rgba(7,52,100,0.98);
    flex-direction: column;
    gap: 0;
    padding: 30px;
    z-index: 50;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav .nav-link {
    color: white;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
}

.header-inner img,
.header-inner .btn {
  max-width: 100%;
}

.header-inner .btn {
  min-width: 0;
  flex: 0 0 auto;
}

/* =====================
   BUTTONS
===================== */
.btn {
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
  width: fit-content;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.primary {
  background: var(--primary);
  color: white;
}

.whatsapp {
  background: var(--whatsapp);
  color: white;
}

.small {
  border: 1px solid rgba(255,255,255,0.6);
  color: white;
  backdrop-filter: blur(10px);
}

/* =====================
   HERO
===================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 65px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7,52,100,0.75),
    rgba(0,0,0,0.2)
  );
}

.hero-content {
  position: relative;
  width: min(620px, 90%);
  color: white;
}

.badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero h1 span {
  border-bottom: 4px solid var(--accent);
}

.hero p {
  color: #eaf0f6;
  margin-bottom: 20px;
}

/* =====================
   HERO SOCIAL BAR
===================== */
.hero-social-bar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1001;
}

.hero-social-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}


.hero-social-link {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(2,6,23,0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
  text-decoration: none;
}

.hero-social-link img {
  width: 26px;
  height: 26px;
}

.hero-social-link:hover,
.hero-social-link:focus-visible {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 30px rgba(2,6,23,0.18);
  background: rgba(255,255,255,0.95);
}

@media (prefers-reduced-motion: reduce) {
  .hero-social-link:hover,
  .hero-social-link:focus-visible {
    transform: none;
  }
}

.hero-social-carousel { display: none; }

/* =====================
   SECTIONS
===================== */
.section {
  padding: 90px 0;
}

.section:nth-child(even) {
  background: var(--bg);
}

.faq-list {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.faq-item {
  border: 1px solid #e6ecf3;
  border-radius: 18px;
  padding: 28px;
  background: white;
}

.faq-item h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.faq-item p {
  color: var(--muted);
  line-height: 1.75;
}

.faq-intro {
  max-width: 58ch;
  color: var(--muted);
  margin-top: 10px;
}

/* =====================
   SERVICIOS
===================== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: white;
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.card:hover {
  transform: translateY(-6px);
}

.card img {
  width: 100%;
  height: 200px; /* 👈 MÁS GRANDE */
  object-fit: cover;
  display: block;
}

.card h3 {
  padding: 14px 14px 0;
  font-size: 1.05rem;
}

.card p {
  padding: 8px 14px 16px;
  color: var(--muted);
}

/* =====================
   SPLIT (REFORMAS / CONTACTO UNIFICADO)
===================== */
.split,
.contact-split {
  width: 100%;
  padding: 0;
  background: var(--section-alt);
}

.split-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  width: 100%;
}

/* IMAGEN */
.split-media,
.contact-media {
  width: 100%;
  height: 100%;
}

.split-media img,
.contact-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* TEXTO */
.split-content,
.contact-content {
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-content .btn,
.contact-content .btn {
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 8px;
  width: fit-content;
}

.split-content p {
  margin-bottom: 14px;
}

.split-content .btn {
  margin-top: 10px;
}

.split-reverse .split-media {
  order: 2;
}

.split-reverse .split-content {
  order: 1;
}

.contact-content p {
  margin: 14px 0 20px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =====================
   SOCIAL
===================== */
.social {
  padding: 80px 0;
  background: var(--section-alt);
  text-align: center;
}

.social-inner p {
  color: var(--muted);
  max-width: 600px;
}

.social-links {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-item {
  background: white;
  border: 1px solid #e6ecf3;
  padding: 14px 18px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: min(100%, 220px);
  justify-content: center;
  transition: 0.2s ease;
}

.social-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  color: var(--primary);
}

/* =====================
   SOCIAL HUB (REDES PROMINENTE)
===================== */
.social-hub {
  padding: 60px 0;
  text-align: left;
  background: linear-gradient(to bottom, rgba(195,51,41,0.04) 0%, white 12%, white 100%);
  position: relative;
}

.social-hub::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(195,51,41,0.1), transparent 50%, rgba(195,51,41,0.1));
  opacity: 0.6;
}

.social-hub-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preview-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: 50% 36%;
  border-radius: 12px;
  display: block;
}

.social-hub .social-large-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-large img {
  width: 28px;
  height: 28px;
}

.social-hub-note {
  margin-top: 14px;
  color: var(--muted);
}

.social-item,
.social-large,
.footer a {
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.social-item:focus-visible,
.social-large:focus-visible,
.footer a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .hero-social-bar {
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
  }
  .hero-social-link {
    width: 48px;
    height: 48px;
  }
  .hero-social-link img {
    width: 24px;
    height: 24px;
  }
  .social-hub-grid { grid-template-columns: 1fr; }
  .preview-item img { height: 100px; }
}

/* =====================
   WHATSAPP FLOAT
===================== */
.whatsapp-icon {
  width: 26px;
  height: 26px;
}

.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
  z-index: 999;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .floating-whatsapp:hover,
  .floating-whatsapp:focus-visible {
    transform: none;
  }
}

/* =====================
   FOOTER
===================== */
.footer {
  background: #0b1b2b;
  color: white;
  padding: 60px 65px 0 65px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  height: 90px;
  margin-bottom: 12px;
}

.footer p,
.footer li {
  color: #c9d4e2;
}

.footer ul {
  list-style: none;
}

.footer h4 {
  margin-bottom: 8px;
}

.footer a {
  color: #dbe7f5;
  text-decoration: none;
  display: block;
}

.footer a:hover,
.footer-contact p:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.footer-links a {
  color: #dbe7f5;
  font-size: 13px;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  word-break: break-word;
}

.footer-contact .icon,
.footer-contact p {
  color: #dbe7f5;
  flex-shrink: 0;
}

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

  .grid,
  .split-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .split-content,
  .contact-content {
    padding: 40px 20px;
  }

  .split-reverse .split-media,
  .split-reverse .split-content {
    order: unset;
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-bottom p,
  .footer-links {
    width: 100%;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-links a {
    margin-bottom: 0;
  }
}

@media (max-width: 600px) {

  .header-inner .btn {
    width: fit-content;
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero,
  .header {
    padding: 25px 25px 0;
  }

  .hero-content {
    width: min(100%, 90%);
  }


  .footer {
    padding: 25px 25px 0;
  }

  .footer-grid {
    gap: 24px;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem
  }

  .footer-contact a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .social-links {
    gap: 12px;
  }
}

/* =====================
   CHECK ICON
===================== */
.check-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
}

.footer-trust ul li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge .check-icon {
  margin-right: 6px;
  margin-bottom: 2px;
}
