/* Estilos principales para domain.com */

/* Variables */
:root {
  --color-background: #fdf6ec;
  --color-accent1: #e4572e;
  --color-accent2: #17bebb;
  --color-text: #2e2e2e;
  --color-heading: #223843;
  --font-main: "Roboto", sans-serif;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 40px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-heading);
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-accent1);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent2);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(to right, #ff7e5f, #feb47b);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: white;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
header {
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-heading);
}

.logo a {
  color: var(--color-heading);
}

.menu-toggle {
  display: none;
}

.menu-toggle-checkbox {
  display: none;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

/* Hero Section */
.hero {
  background-image: url("./img/HirBO.jpg");
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* About Section */
.about {
  padding: 5rem 0;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

/* Benefits Section */
.benefits {
  padding: 5rem 0;
  background-color: white;
}

.benefits-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(264px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background-color: var(--color-background);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  font-size: 2.5rem;
  color: var(--color-accent1);
  margin-bottom: 1rem;
}

/* Services Section */
.services {
  padding: 5rem 0;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--color-accent2);
  margin-bottom: 1rem;
}

/* Process Section */
.process {
  padding: 5rem 0;
  background-color: white;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(274px, 1fr));
  gap: 20px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  background: linear-gradient(to right, #ff7e5f, #feb47b);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-name {
  font-weight: 700;
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
  background-color: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  background-color: var(--color-background);
  padding: 1rem;
  cursor: pointer;
  position: relative;
  font-weight: 600;
}

.faq-checkbox {
  display: none;
}

.faq-label {
  display: block;
  position: relative;
  cursor: pointer;
  padding-right: 30px;
}

.faq-label::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-checkbox:checked + .faq-label::after {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  background-color: white;
  transition: max-height 0.3s ease;
}

.faq-checkbox:checked ~ .faq-content {
  max-height: 500px;
}

.faq-answer {
  padding: 1rem;
}

/* Contact Form Section */
.contact {
  padding: 5rem 0;
}

.form-container {
  max-width: 600px;
  margin: 5rem auto;
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-main);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.checkbox-group input {
  width: auto;
}

/* Footer */
footer {
  background-color: var(--color-heading);
  color: white;
  padding: 3rem 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-logo {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.footer-links h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: white;
}

.footer-links a:hover {
  color: var(--color-accent2);
}

.footer-bottom {
  margin-top: 3rem;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background-color: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  z-index: 1000;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-popup-hidden {
  display: none;
}

.cookie-text {
  flex: 1;
  min-width: 200px;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

/* Policy Pages */
.policy-page {
  padding: 5rem 0;
}

.policy-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--color-accent1);
  box-shadow: var(--shadow);
}

.policy-container h1 {
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 2rem;
}

.policy-container h2 {
  color: var(--color-heading);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  text-align: left;
}

/* Gracias Page */
.gracias {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2rem;
}
.gracias .container {
  background: white;
  border-radius: 2rem;
  padding: 2rem;
  max-width: 800px;
}

/* Menu CSS-only toggle */
.menu-toggle-checkbox {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.menu-close {
  display: none;
}

.overlay {
  display: none;
}

/* Media Queries */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .menu-toggle {
    display: block;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    transition: right 0.3s ease;
    box-shadow: var(--shadow);
    z-index: 200;
  }

  .menu-toggle-checkbox:checked ~ nav {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    padding: 2rem;
    height: 100%;
  }

  nav ul li {
    margin: 1rem 0;
    font-size: 1.2rem;
  }

  .menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 150;
    display: none;
  }

  .menu-toggle-checkbox:checked ~ .overlay {
    display: block;
  }
}
