/* Estilos para domain - Servicios contables */

/* Reset y variables globales */
:root {
  --color-bg: #f4e4dc;
  --color-accent: #f27649;
  --color-dark: #263238;
  --color-light: #fffdf6;
  --font-primary: "Rubik", sans-serif;
  --font-secondary: "Montserrat", sans-serif;
}

* {
  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: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-dark);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Encabezado y navegación */
header {
  background-color: var(--color-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 1.5rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--color-accent);
}

/* Menú hamburguesa (CSS-only) */
#menu-toggle {
  display: none;
}

.menu-btn {
  display: none;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  z-index: 110;
}

.menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-dark);
  margin: 5px 0;
  transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
  background-image: url("./img/pfNSl.jpg");
  background-size: cover;
  background-position: center;
  color: var(--color-light);
  text-align: center;
  padding: 7rem 0;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(38, 50, 56, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: fadeInUp 1.2s ease;
}

.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-light);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #e06539;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(242, 118, 73, 0.3);
}

/* Secciones comunes */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--color-dark);
  display: inline-block;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background-color: var(--color-accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Sobre Nosotros */
.about {
  background-color: var(--color-light);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-img {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-img:hover img {
  transform: scale(1.05);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

/* Ventajas */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.benefit-card {
  background-color: var(--color-light);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background-color: rgba(242, 118, 73, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon img {
  width: 30px;
  height: 30px;
}

.benefit-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* Servicios */
.services {
  background-color: var(--color-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  margin-bottom: 1rem;
  color: var(--color-dark);
  font-size: 1.4rem;
}

.service-content ul {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

.service-content ul li {
  margin-bottom: 0.5rem;
}

/* Testimonios */
.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonial {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--color-dark);
}

.testimonial-author span {
  font-weight: normal;
  color: #777;
}

/* Formulario */
.contact-form-section {
  background-color: var(--color-light);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--font-primary);
  font-size: 1rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-group input {
  margin-right: 10px;
  margin-top: 5px;
}

.service-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 0.5rem;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  background-color: white;
  padding: 1.5rem;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  display: block;
}

.faq-question label {
  cursor: pointer;
  display: block;
  padding-right: 30px;
}

.cookie-content a {
  color: var(--color-accent);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  background-color: var(--color-light);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-toggle {
  display: none;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 300px;
  padding: 1.5rem;
}

.faq-toggle:checked ~ .faq-question::after {
  content: "-";
}

/* Contacto */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.contact-card {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background-color: rgba(242, 118, 73, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card h3 {
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 4rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-col h3 {
  margin-bottom: 1.5rem;
  color: var(--color-light);
  font-size: 1.4rem;
}

.footer-col p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Cookie popup */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 1rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}

.cookie-content {
  flex: 1;
  margin-right: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

/* Páginas de política */
.policy-container {
  max-width: 800px;
  margin: 5rem auto;
  background-color: var(--color-light);
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.policy-container h1 {
  margin-bottom: 2rem;
  text-align: center;
  color: var(--color-dark);
}

.policy-container h2 {
  margin: 2rem 0 1rem;
  color: var(--color-accent);
}

.policy-container p,
.policy-container ul,
.policy-container ol {
  margin-bottom: 1.5rem;
}

.policy-container ul,
.policy-container ol {
  padding-left: 2rem;
}

/* Página de gracias */
.thanks-container {
  max-width: 600px;
  margin: 5rem auto;
  background-color: var(--color-light);
  padding: 3rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.thanks-container h1 {
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Media queries */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    position: relative;
    padding-top: 3rem;
  }

  .logo {
    margin-bottom: 0.5rem;
  }

  .menu-btn {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    margin-top: 1rem;
  }

  .nav-menu li {
    margin: 0.5rem 0;
  }

  #menu-toggle:checked ~ .nav-menu {
    display: flex;
  }

  #menu-toggle:checked ~ .menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  #menu-toggle:checked ~ .menu-btn span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked ~ .menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .about-content {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .form-container {
    padding: 1.5rem;
  }

  .policy-container {
    padding: 1.5rem;
    margin: 3rem 1rem;
  }
}
