/* Estilos Generales */
:root {
  --color-primary: #8ed8e2;
  --color-accent: #ff6b6b;
  --color-background: #f9f7f3;
  --color-text: #2d2d2d;
}

* {
  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;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 20px;
  line-height: 1.2;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--color-accent);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 600;
  text-align: center;
}

.btn:hover {
  background-color: #e55a5a;
  color: white;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section-title:after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--color-primary);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Header y Navegación */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.burger-menu {
  display: none;
}

.burger-menu-label {
  display: none;
  cursor: pointer;
}

.burger-menu-icon {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-text);
  position: relative;
  transition: background 0.2s ease;
}

.burger-menu-icon:before,
.burger-menu-icon:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--color-text);
  transition: all 0.3s ease;
}

.burger-menu-icon:before {
  top: -8px;
}

.burger-menu-icon:after {
  top: 8px;
}

.burger-menu:checked ~ .burger-menu-label .burger-menu-icon {
  background: transparent;
}

.burger-menu:checked ~ .burger-menu-label .burger-menu-icon:before {
  transform: rotate(45deg);
  top: 0;
}

.burger-menu:checked ~ .burger-menu-label .burger-menu-icon:after {
  transform: rotate(-45deg);
  top: 0;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 500;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("./img/G1bJK.jpg");
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Sobre Nosotros */
.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  color: var(--color-primary);
}

/* Etapas de Trabajo */
.steps {
  background-color: white;
}

.steps-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  margin-bottom: 50px;
  position: relative;
}

.step-number {
  background-color: var(--color-primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-right: 20px;
}

.step-content {
  flex-grow: 1;
}

.step-item:not(:last-child):after {
  content: "";
  position: absolute;
  left: 25px;
  top: 50px;
  bottom: -25px;
  width: 2px;
  background-color: var(--color-primary);
}

/* Testimonios */
.testimonials {
  background-color: var(--color-primary);
  color: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: var(--color-text);
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: bold;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
}

.faq-question {
  padding: 15px;
  background-color: white;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
  position: relative;
  font-weight: bold;
}

.faq-question:after {
  content: "+";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

.faq-checkbox {
  display: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 15px;
  background-color: white;
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
  padding: 15px;
}

.faq-checkbox:checked ~ .faq-question:after {
  content: "-";
}

/* Formulario */
.form-section {
  background-color: white;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--color-background);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group select {
  background-color: white;
}

/* Override para el color de fondo de las opciones */
select option {
  background-color: white;
  color: var(--color-text);
}
div {
  word-break: break-word;
  overflow-wrap: break-word;
}
.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
}

.form-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.contact-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-card i {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.map-container {
  height: 400px;
  margin-top: 40px;
  border-radius: 10px;
  overflow: hidden;
}

/* Footer */
footer {
  background-color: var(--color-text);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--color-primary);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Política y Términos */
.policy-page {
  padding: 60px 0;
}

.policy-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 40px;
  border: 2px solid var(--color-primary);
}

.policy-container h1 {
  color: var(--color-primary);
  margin-bottom: 30px;
}

.policy-container h2 {
  margin-top: 40px;
  margin-bottom: 15px;
}

.policy-container p,
.policy-container ul {
  margin-bottom: 20px;
}

.policy-container ul {
  padding-left: 20px;
}

/* Página de Gracias */
.gracias-container {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  border: 2px solid var(--color-primary);
  max-width: 700px;
  padding: 40px;
  text-align: center;
  background-color: white;
  border-radius: 10px;
  flex-direction: column;
}

.gracias-container h1 {
  color: var(--color-primary);
  margin-bottom: 20px;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-popup.show {
  transform: translateY(0);
}

.cookie-text {
  flex: 1;
  margin-right: 20px;
}

.cookie-accept {
  background-color: var(--color-accent);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .burger-menu-label {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav ul {
    flex-direction: column;
    padding: 0 20px 20px;
  }

  nav ul li {
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
  }

  .burger-menu:checked ~ nav {
    max-height: 300px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content {
    flex-direction: column;
  }

  .step-item:not(:last-child):after {
    left: 24px;
  }
}
