@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #fff;
    overflow-x: hidden;
}

header {
    background-color: rgba(0, 33, 77, 0.9);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #003153;
    box-sizing: border-box;
}

.logo img {
    height: 40px;
}

.header .btn-home {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0077b6;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  margin-left: 18px;
  text-decoration: none;
  position: relative;
  transition: background 0.2s, box-shadow 0.2s;
  font-size: 1.4rem;
  z-index: 10;
  border: none;
  outline: none;
}

.header .btn-home:hover,
.header .btn-home:focus {
  background: #003153;
  box-shadow: 0 2px 10px rgba(0,119,182,0.18);
}

.header .btn-home .home-tooltip {
  visibility: hidden;
  opacity: 0;
  width: 180px;
  background: #003153;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 7px 12px;
  position: absolute;
  left: 120%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  font-size: 0.98rem;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,119,182,0.10);
}

.header .btn-home:hover .home-tooltip,
.header .btn-home:focus .home-tooltip {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 600px) {
  .header .btn-home {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    margin-left: 8px;
  }
  .header .btn-home .home-tooltip {
    left: 110%;
    font-size: 0.85rem;
    width: 140px;
    padding: 5px 8px;
  }
}

/* Más espacio para header fijo */
.faq-header-space {
  height: 140px;
}
@media (max-width: 900px) {
  .faq-header-space {
    height: 120px;
  }
}
@media (max-width: 600px) {
  .faq-header-space {
    height: 110px;
  }
}
.section-title {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 2rem;
  color: #003153;
  text-align: center;
}
@media (max-width: 600px) {
  .section-title {
    margin-top: 0;
    font-size: 1.2rem;
    padding-top: 0;
  }
  .faq-subtitle {
  color: #333;
  text-align: center;
  margin-bottom: 24px;
  margin-top: 0;
  font-size: 1.1rem;
  padding: 0 18px;
  display: block;
}

@media (max-width: 600px) {
  .faq-subtitle {
    font-size: 1rem;
    margin-bottom: 16px;
    margin-top: 0;
    padding: 0 14px;
    display: block;
  }
}
}

/* FAQ Container más compacto en responsive */
.faq-container {
  width: 100%;
  max-width: 700px;
  margin: 32px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 10px;
}
@media (max-width: 600px) {
  .faq-container {
    max-width: 98vw;
    gap: 8px;
    padding: 0 2vw;
  }
}

/* FAQ Item y Button: flecha a la derecha */
.faq-item {
  background: transparent;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,119,182,0.08), 0 1.5px 6px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
  overflow: visible;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.faq-button {
  width: 100%;
  background: #f2faff;
  border: none;
  outline: none;
  padding: 18px 48px 18px 18px;
  font-size: 1.08rem;
  color: #003153;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between; /* separa texto y flecha */
  transition: background 0.18s;
  border-bottom: 1px solid #e3e3e3;
  border-radius: 18px 18px 0 0;
  margin: 0;
}
.faq-button .fas {
  margin-left: 0;
  margin-right: 0;
  font-size: 1.3rem;
  color: #0077b6;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1), color 0.2s;
}
.faq-button .fas.rotated {
  transform: rotate(180deg);
  color: #003153;
}
@media (max-width: 600px) {
  .faq-button {
    font-size: 0.98rem;
    padding: 12px 32px 12px 10px;
    min-height: 44px;
  }
  .faq-button .fas {
    font-size: 1.1rem;
  }
}

/* FAQ Answer sin espacio blanco */
.faq-answer {
  display: none;
  background: linear-gradient(135deg, #003153 60%, #0077b6 100%);
  padding: 16px 18px 18px 18px;
  font-size: 1.08rem;
  color: #fff;
  animation: faqFadeIn 0.3s;
  border-radius: 0 0 18px 18px;
  box-shadow: none;
  letter-spacing: 0.1px;
  margin: 0;
  border-top: none;
}
.faq-item.active .faq-answer {
  display: block;
}
.faq-answer p {
  color: #fff;
  margin: 0;
  line-height: 1.7;
  font-size: 1.08rem;
}
@media (max-width: 600px) {
  .faq-answer {
    font-size: 0.95rem;
    padding: 8px 6px 10px 6px;
  }
  .faq-answer p {
    font-size: 0.95rem;
  }
}

/* FAB Home en responsive */
.fab-home {
  display: none;
}
@media (max-width: 600px) {
  .header .btn-home {
    display: none !important;
  }
  .fab-home {
    display: flex !important;
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    background: #0077b6;
    color: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,119,182,0.18);
    font-size: 1.7rem;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
  }
  .fab-home:hover {
    background: #003153;
    box-shadow: 0 6px 24px rgba(0,53,102,0.18);
  }
}

/* Mantén el header fijo y sin partirse en responsive */
@media (max-width: 600px) {
  header,
  .header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    background-color: #003153;
    box-sizing: border-box;
  }
  

  /* Ajusta el botón de la casita (FAB) más separado de las esquinas */
  .fab-home {
    position: fixed !important;
    right: 24px !important;
    bottom: 28px !important;
    z-index: 9999;
  }

  /* Centra y separa los cuadros de preguntas de los bordes */
  .faq-container {
    max-width: 98vw;
    gap: 10px;
    padding: 0 4vw !important;
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .faq-item {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
    max-width: 420px;
  }
}

.legal-section {
  background: #f9f9f9;
  max-width: 800px;
  margin: 0 auto 40px auto;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,119,182,0.08), 0 1.5px 6px rgba(0,0,0,0.04);
  padding: 48px 48px 32px 48px;
  color: #003153;
  font-size: 1.08rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.legal-section h1,
.legal-section h2 {
  color: #0077b6;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 18px;
  text-align: left;
  letter-spacing: 0.5px;
}

.legal-section h1 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 24px;
  text-align: center;
}

.legal-section h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.legal-section ul {
  margin: 0 0 18px 24px;
  padding: 0 0 0 18px;
}

.legal-section li {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.legal-section strong {
  color: #003153;
}

.legal-section .p-center {
  text-align: left;
  margin-bottom: 18px;
}

.legal-section .btn-back {
  display: inline-block;
  margin: 32px auto 0 auto;
  background: #0077b6;
  color: #fff;
  padding: 12px 32px;
  border-radius: 24px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,119,182,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-align: center;
  border: none;
}

.legal-section .btn-back:hover {
  background: #003153;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,53,102,0.13);
}

/* Responsive Legal Section */
@media (max-width: 900px) {
  .legal-section {
    padding: 32px 18px 24px 18px;
    font-size: 1rem;
  }
  .legal-section h1 {
    font-size: 1.3rem;
  }
  .legal-section h2 {
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  .legal-section {
    padding: 18px 4vw 18px 4vw;
    font-size: 0.98rem;
    margin: 0 auto 24px auto;
  }
  .legal-section h1 {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }
  .legal-section h2 {
    font-size: 1rem;
    margin-top: 18px;
    margin-bottom: 8px;
  }
  .legal-section ul {
    margin-left: 10px;
    padding-left: 10px;
  }
}

/* Footer */
.footer {
    background-color: #000000;
    color: #fff;
    position: relative;
    padding-top: 100px;
    padding-bottom: 20px;
    overflow: hidden;
}

.wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave svg {
    position: relative;
    display: block;
    width: 100%;
    height: 100px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px;
    gap: 30px;
}

.footer-logo {
    flex: 1 1 200px;
    text-align: center;
    margin-bottom: 0;
}

.footer-logo img {
    max-width: 100px;
    height: auto;
    object-fit: contain;
    margin-bottom: 5px;
}

.footer-logo h3 {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.footer-links {
    flex: 1 1 200px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.links-column {
    text-align: center;
}

.links-column h4 {
    font-size: 18px;
    margin-bottom: 3px;
    color: #fff;
}

.links-column ul {
    list-style: none;
    padding: 0;
}

.links-column li {
    margin-bottom: 3px;
}

.links-column a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.links-column a:hover {
    text-decoration: underline;
}

.footer-social {
    flex: 1 1 200px;
    text-align: center;
    margin-top: 0;
}

.footer-social h4 {
    font-size: 18px;
    margin-bottom: 3px;
    color: #fff;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-btn:hover {
    transform: scale(1.1);
}

.social-btn i {
    font-size: 18px;
}

.social-btn.instagram {
    background-color: #E4405F;
}

.social-btn.facebook {
    background-color: #3B5998;
}

.social-btn.cellphone {
    background-color: #0077b6;
}

.social-btn.ubication {
    background-color: #d60f08;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

.footer-bottom-links h3 {
    margin: 0;
    font-size: inherit;
}

.footer-bottom-links a {
    color: #fff;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    text-decoration: underline;
}

.call-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    justify-content: center;
    align-items: center;
}

.call-overlay.active {
    display: flex;
}

.call-box {
    background-color: #000;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: 1px solid #fff;
}

.call-overlay.active .call-box {
    transform: scale(1);
    opacity: 1;
}

.call-logo {
    font-size: 30px;
    color: #fff;
    margin-bottom: 15px;
    display: block;
}

.call-box p {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 15px;
}

.btn-call {
    background-color: #0077b6;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4);
    display: inline-block;
}

.btn-call:hover {
    background-color: #003566;
    box-shadow: 0 6px 20px rgba(0, 53, 102, 0.6);
    transform: translateY(-2px);
}

/* Media Query para pantallas responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 10px;
    }
    .footer-logo {
        margin-bottom: 0;
    }
    .footer-logo img {
        margin-bottom: 2px;
    }
    .footer-logo h3 {
        margin-bottom: 5px;
    }
    .footer-links {
        margin-top: 0;
    }
    .links-column {
        margin-top: 0;
    }
    .footer-social {
        margin-top: 0;
    }
    .footer {
        padding: 80px 15px 15px;
    }
}

/* Botón de regreso */
.back-button-container {
    position: fixed;
    top: 80px; /* Bajado de 20px a 80px */
    left: 20px;
    z-index: 1001;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #0077b6;
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}

.btn-back:hover {
    background: #003153;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 83, 0.4);
}

@media (max-width: 768px) {
    .back-button-container {
        top: 90px; /* Bajado de 70px a 120px para móvil */
        left: 15px;
    }
    
    .btn-back {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}
