/* Estilos para Domain Contabilidad - Servicios de contabilidad en España */

/* Importación de fuentes */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Lora:wght@400;500;600&display=swap");

/* Estilos generales */
:root {
  --color-primary: #4d004d;
  --color-accent1: #ffb703;
  --color-accent2: #fb8500;
  --color-background: #f4f1de;
  --color-text: #1c1c1e;
  --font-primary: "Montserrat", sans-serif;
  --font-secondary: "Lora", serif;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
}

section[id] {
  scroll-margin-top: 80px;
  padding: 4rem 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-secondary);
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--color-accent1);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent2);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.btn {
  display: inline-block;
  background-color: var(--color-accent1);
  color: var(--color-primary);
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid var(--color-accent1);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow);
}

.btn:hover {
  background-color: var(--color-accent2);
  border-color: var(--color-accent2);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: white;
}

/* Cabecera */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-background);
  box-shadow: var(--shadow);
  padding: 1rem 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.contact-info a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Navegación */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.main-nav li a {
  font-weight: 500;
  padding: 0.5rem;
}

/* Sección Hero */
.hero {
  height: 100vh;
  min-height: 500px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("./img/806GM.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  margin-top: 73px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Sección Sobre nosotros */
.about {
  background-color: white;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: center;
  }

  .about-text,
  .about-image {
    flex: 1;
  }
}

.about-image img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Sección de Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Sección de Beneficios */
.benefits {
  background-color: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-item {
  text-align: center;
  padding: 1.5rem;
  transition: var(--transition);
}

.benefit-icon {
  background-color: var(--color-accent1);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.benefit-icon img {
  max-width: 40px;
  max-height: 40px;
}

.benefit-item h3 {
  font-size: 1.2rem;
}

/* Sección de Testimonios */
.testimonials {
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-primary);
}

.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--color-accent1);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
}

/* Sección FAQ */
.faq {
  background-color: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.faq-question {
  position: relative;
  padding: 1rem;
  background-color: #f9f9f9;
  cursor: pointer;
  font-weight: 600;
}

.faq-question label {
  display: block;
  width: 100%;
  cursor: pointer;
  padding-right: 30px;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: white;
  padding: 0 1rem;
}

.faq-toggle {
  display: none;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  padding: 1rem;
}

.faq-toggle:checked ~ .faq-question::after {
  content: "−";
}

/* Sección Formulario */
.contact-form-section {
  background-color: white;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--color-background);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-primary);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(77, 0, 77, 0.1);
}

.form-control::placeholder {
  color: #aaa;
}

select.form-control {
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='5' viewBox='0 0 10 5'%3E%3Cpath fill='%234D004D' d='M0 0l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
  -webkit-appearance: none;
  appearance: none;
}

select.form-control option {
  background-color: white;
  color: var(--color-text);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  margin-right: 0.5rem;
}

.form-submit {
  margin-top: 1rem;
  text-align: center;
}

/* Página de Gracias */
.thank-you {
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you-content {
  max-width: 600px;
  margin: 10rem auto;
  padding: 2rem;
  text-align: center;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Páginas de políticas */
.policy-page {
  margin: 7rem auto 3rem;
  max-width: 800px;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.policy-content h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.policy-content h2 {
  margin-top: 2rem;
  text-align: left;
}

.policy-content h2::after {
  left: 0;
  transform: none;
}

.policy-content ul,
.policy-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: var(--color-primary);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  color: white;
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent1);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: var(--color-accent1);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: white;
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: bottom 0.5s ease;
}

.cookie-consent.show {
  bottom: 0;
}

.cookie-text {
  flex: 1;
  padding-right: 1rem;
}

.cookie-text p {
  margin-bottom: 0;
}

.cookie-accept {
  flex-shrink: 0;
}

/* Media queries para dispositivos móviles */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-info {
    display: none;
  }

  .nav-toggle-label {
    display: block;
    position: absolute;
    top: 1.2rem;
    right: 1rem;
  }

  .main-nav {
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    padding: 1rem 0;
    gap: 0;
  }

  .main-nav li {
    width: 100%;
    text-align: center;
  }

  .main-nav li a {
    display: block;
    padding: 0.75rem 0;
  }

  .nav-toggle:checked ~ .main-nav {
    height: auto;
  }

  .hero {
    margin-top: 65px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 2.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .contact-info {
    display: none;
  }
}
