/* Estilos globales para domain - Contabilidad */
:root {
  --background: #faf6f0;
  --headings: #16262e;
  --accent1: #ff7755;
  --accent2: #4c5b5c;
  --text: #333333;
  --button-gradient-start: #f8c471;
  --button-gradient-end: #f1948a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
  font-size: 16px;
  font-family: "Arial", sans-serif;
}

body {
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
}

section[id] {
  scroll-margin-top: 40px;
  padding: 3rem 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--headings);
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent1);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent2);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  background: linear-gradient(
    to right,
    var(--button-gradient-start),
    var(--button-gradient-end)
  );
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: white;
}

/* 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: 1rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--headings);
}

.burger-menu {
  display: none;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: var(--headings);
  font-weight: 500;
}

nav ul li a:hover {
  color: var(--accent1);
}

/* Hero Section */
.hero {
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 8rem 0;
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Secciones */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  height: 3px;
  width: 100px;
  background: var(--accent1);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* About Section */
.about {
  background-color: white;
}

/* Ventajas Section */
.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.ventaja-item {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.ventaja-item:hover {
  transform: translateY(-10px);
}

.ventaja-icon {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border-radius: 5px;
}

/* Servicios Section */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.servicio-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-10px);
}

.servicio-img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.servicio-content {
  padding: 2rem;
}

.servicio-content h3 {
  margin-bottom: 1rem;
}

/* Testimonios Section */
.testimonios {
  background-color: white;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonio-card {
  background: var(--background);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonio-text {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonio-autor {
  font-weight: bold;
  color: var(--accent2);
}

/* Contacto Section */
.contacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.contacto-info {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contacto-info h3 {
  color: var(--accent1);
  margin-bottom: 1rem;
}

.contacto-info p {
  margin-bottom: 0.5rem;
}

.mapa iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Formulario */
.form-section {
  background: var(--accent2);
  color: white;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-title {
  color: var(--headings);
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--headings);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form-select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

/* Personalizar el fondo de las opciones */
.form-select option {
  background-color: var(--background);
  color: var(--text);
  padding: 10px;
}

.checkbox-group {
  margin-bottom: 1rem;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.checkbox-container input {
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-container label {
  color: var(--text);
  font-size: 0.9rem;
}

.form-submit {
  text-align: center;
}

/* FAQ Section */
.faq {
  background-color: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

.faq-question {
  display: none;
}

.faq-question-label {
  display: block;
  padding: 1rem 0;
  font-weight: bold;
  cursor: pointer;
  color: var(--headings);
  position: relative;
}

.faq-question-label::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  opacity: 0;
}

.faq-question:checked + .faq-question-label::after {
  content: "-";
}

.faq-question:checked + .faq-question-label + .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 1rem;
}

/* Footer */
footer {
  background-color: var(--headings);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-section h3::after {
  content: "";
  height: 2px;
  width: 50px;
  background: var(--accent1);
  position: absolute;
  bottom: -8px;
  left: 0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #ddd;
}

.footer-links a:hover {
  color: var(--accent1);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 1rem;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.9rem;
}

/* Página de Gracias */
.gracias-container {
  max-width: 600px;
  margin: 5rem auto;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Páginas de Política */
.policy-container {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.policy-title {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cookie-popup p {
  margin-bottom: 1rem;
}

.cookie-popup-buttons {
  display: flex;
  gap: 10px;
}

.menu-toggle {
  display: none;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .burger-menu {
    order: 1;
    display: block;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
  }

  .burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--headings);
    position: absolute;
    transition: all 0.3s ease;
  }

  .burger-menu span:first-child {
    top: 0;
  }

  .burger-menu span:nth-child(2) {
    top: 9px;
  }

  .burger-menu span:last-child {
    bottom: 0;
  }

  .menu-toggle {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }

  .menu-toggle:checked ~ .burger-menu span:first-child {
    transform: rotate(45deg);
    top: 9px;
  }

  .menu-toggle:checked ~ .burger-menu span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .burger-menu span:last-child {
    transform: rotate(-45deg);
    bottom: 9px;
  }

  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 80px 20px 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  nav ul li {
    margin: 0 0 20px;
  }

  .menu-toggle:checked ~ nav ul {
    right: 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  section {
    padding: 2rem 0;
  }

  .hero {
    padding: 6rem 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .ventaja-item,
  .servicio-card,
  .testimonio-card {
    padding: 1.5rem;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}
