/* 
* domain - Servicios de contabilidad en España
* Estilos generales para todo el sitio
*/

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  background-color: #f5efe7;
  color: #1d1d1d;
  line-height: 1.6;
}

section[id] {
  scroll-margin-top: 40px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #5c33ff, #ff9f1c);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #5c33ff;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #ff9f1c;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  padding: 60px 0;
}

button,
.button {
  background: linear-gradient(90deg, #5c33ff, #ff9f1c);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

button:hover,
.button:hover {
  box-shadow: 0 5px 15px rgba(92, 51, 255, 0.3);
  transform: translateY(-2px);
}

/* Header y navegación */
header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1d1d1d;
  text-transform: lowercase;
}

.logo span {
  color: #5c33ff;
}

nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0 15px;
}

.nav-menu a {
  color: #1d1d1d;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(90deg, #5c33ff, #ff9f1c);
  transition: all 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* Menu hamburguesa */
#menu-toggle {
  display: none;
}

.menu-icon {
  cursor: pointer;
  display: none;
  position: relative;
  width: 30px;
  height: 25px;
  z-index: 102;
}

.menu-icon span {
  background-color: #1d1d1d;
  display: block;
  height: 3px;
  position: absolute;
  transition: all 0.3s ease;
  width: 100%;
}

.menu-icon span:first-child {
  top: 0;
}

.menu-icon span:nth-child(2),
.menu-icon span:nth-child(3) {
  top: 10px;
}

.menu-icon span:last-child {
  top: 20px;
}

/* Sección Hero */
.hero {
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("./img/k12P0.jpg");
  color: white;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100dvh;
  min-height: 600px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Sección servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-content {
  padding: 20px;
}

/* Sección Sobre Nosotros */
.about-section {
  background-color: white;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

/* Sección Ventajas */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.advantage-card {
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.advantage-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 15px;
}

/* Sección Testimonios */
.testimonials {
  background-color: white;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.testimonial-card {
  background-color: #f5efe7;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  position: absolute;
  top: -20px;
  left: 10px;
  color: rgba(92, 51, 255, 0.1);
  font-family: serif;
}

.client-info {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.client-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

/* Sección FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 10px;
  border-radius: 10px;
  background-color: white;
  overflow: hidden;
}

.faq-question {
  padding: 15px 20px;
  background-color: white;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-checkbox {
  display: none;
}

.faq-checkbox:checked + .faq-question + .faq-answer {
  max-height: 500px;
  padding: 15px 20px;
}

.faq-checkbox:checked + .faq-question::after {
  transform: rotate(180deg);
}

.faq-question::after {
  content: "↓";
  transition: all 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 0 20px;
}

/* Sección Formulario */
.form-section {
  background-color: white;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background-color: #f5efe7;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: white;
  font-size: 1rem;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position-x: calc(100% - 10px);
  background-position-y: 10px;
}

.form-group select option {
  background-color: #f5efe7;
  color: #1d1d1d;
}

.checkbox-group {
  margin-bottom: 15px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-group input {
  margin-right: 10px;
  width: auto;
}

.submit-btn {
  width: 100%;
  margin-top: 10px;
}

.error-text {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Footer */
footer {
  background-color: #1d1d1d;
  color: white;
  padding: 50px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, #5c33ff, #ff9f1c);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
}

.footer-links a:hover {
  color: #ff9f1c;
}

.contact-info div {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #ccc;
  font-size: 0.9rem;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 15px;
  text-align: center;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.accept-cookies {
  background: #5c33ff;
}

.reject-cookies {
  background: #666;
}

/* Páginas de políticas y gracias */
.policy-page,
.thank-you-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.thank-you-page {
  text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 60vh;
  }

  .nav-menu li {
    margin: 0 10px;
  }
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background-color: white;
    width: 70%;
    height: calc(100vh - 70px);
    padding: 20px;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 101;
  }

  #menu-toggle:checked ~ .nav-menu {
    right: 0;
  }

  #menu-toggle:checked ~ .menu-icon span:first-child {
    transform: translateY(10px) rotate(45deg);
  }

  #menu-toggle:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked ~ .menu-icon span:nth-child(3) {
    transform: rotate(-45deg);
  }

  #menu-toggle:checked ~ .menu-icon span:last-child {
    transform: translateY(-10px) rotate(-45deg);
  }

  .nav-menu li {
    margin: 15px 0;
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 8px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  section {
    padding: 40px 0;
  }

  .hero {
    height: 50vh;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .service-card img {
    height: 150px;
  }
}
