/* Estilos globales */
:root {
  --ultramarine: #1a1b41;
  --orange: #ff6b35;
  --azure: #00b5ad;
  --white: #ffffff;
  --light-gray: #e0e0e0;
  --gradient-start: #5f0a87;
  --gradient-end: #141e30;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  background-color: var(--ultramarine);
  color: var(--light-gray);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--azure);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--orange);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--white);
  margin-bottom: 1rem;
}

/* Cabecera */
.header {
  background-color: var(--ultramarine);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}

.logo span {
  color: var(--azure);
}

/* Navegación */
.nav-checkbox {
  display: none;
}

.nav-toggle {
  display: none;
}

.navigation {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 1.5rem;
}

.nav-link {
  color: var(--white);
  font-weight: 500;
  padding: 0.5rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--orange);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(26, 27, 65, 0.7), rgba(26, 27, 65, 0.9));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeIn 1.5s ease;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--azure);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Secciones */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, var(--azure), var(--orange));
}

/* Acerca de nosotros */
.about {
  background: linear-gradient(
    to right,
    var(--gradient-end),
    var(--gradient-start)
  );
  border-radius: 15px;
  padding: 1rem;
  margin: 2rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.about-text {
  flex: 1;
  min-width: 280px;
}

.about-image {
  flex: 1;
  min-width: 280px;
  border-radius: 10px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Ventajas */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.benefit-item {
  background: linear-gradient(
    135deg,
    var(--gradient-end),
    var(--gradient-start)
  );
  border-radius: 10px;
  padding: 2rem;
  transition: transform 0.3s ease;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.benefit-item:hover {
  transform: translateY(-10px);
}

.benefit-icon {
  margin-bottom: 1rem;
}

.benefit-icon img {
  width: 80px;
  height: 80px;
}

/* Servicios */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: linear-gradient(
    135deg,
    var(--gradient-end),
    var(--gradient-start)
  );
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 1.5rem;
}

/* Proceso */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.process-step {
  background: linear-gradient(
    135deg,
    var(--gradient-end),
    var(--gradient-start)
  );
  border-radius: 10px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.5rem;
}

/* Testimonios */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: linear-gradient(
    135deg,
    var(--gradient-end),
    var(--gradient-start)
  );
  border-radius: 10px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: bold;
  color: var(--azure);
}

.quote {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 4rem;
  opacity: 0.1;
  color: var(--orange);
}

/* Formulario */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(
    135deg,
    var(--gradient-end),
    var(--gradient-start)
  );
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.8rem;
  border-radius: 5px;
  border: 1px solid #ddd;
  background-color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 1rem;
}

.form-select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%231A1B41" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 1em;
}

/* Custom styling for select option backgrounds */
.form-select option {
  background-color: var(--ultramarine);
  color: var(--white);
  padding: 10px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.form-checkbox {
  margin-right: 10px;
  margin-top: 3px;
}

.checkbox-label {
  font-size: 0.9rem;
}

.checkbox-label a {
  text-decoration: underline;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  display: block;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    var(--gradient-end),
    var(--gradient-start)
  );
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

.faq-checkbox {
  display: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
  transition: max-height 0.3s ease;
}

.faq-checkbox:checked + .faq-question {
  background: linear-gradient(135deg, var(--azure), var(--orange));
}

.faq-checkbox:checked + .faq-question::after {
  content: "-";
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
  padding: 1rem;
}

/* Footer */
.footer {
  background-color: rgba(20, 20, 40, 0.9);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  color: var(--azure);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.contact-info {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.contact-info img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    135deg,
    var(--gradient-end),
    var(--gradient-start)
  );
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  max-width: 400px;
  text-align: center;
  display: none; /* Hidden by default, shown by JS */
}

.cookie-popup p {
  margin-bottom: 1rem;
}

.cookie-btn {
  background-color: var(--orange);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cookie-btn:hover {
  background-color: var(--azure);
}

/* Página de gracias */
.thank-you {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  margin: 5rem auto;
  max-width: 600px;
  padding: 2rem;
  border-radius: 15px;
  border: 2px solid var(--azure);
  background: linear-gradient(
    135deg,
    var(--gradient-end),
    var(--gradient-start)
  );
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Páginas de políticas */
.policy-page {
  max-width: 800px;
  margin: 5rem auto;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    var(--gradient-end),
    var(--gradient-start)
  );
  border-radius: 15px;
  border: 2px solid var(--azure);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.policy-page h1 {
  margin-bottom: 2rem;
  text-align: center;
}

.policy-section {
  margin-bottom: 2rem;
}

.policy-section h2 {
  color: var(--azure);
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
  }

  .navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--ultramarine);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  .nav-checkbox:checked ~ .navigation {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
  }

  .nav-item {
    margin: 1rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
