/* 
Domain - Accounting Services
Main Stylesheet
*/

/* === Base Styles === */
:root {
  --gradient-start: #6d28d9;
  --gradient-end: #fb923c;
  --accent-mint: #34d399;
  --dark-bg: #1f2937;
  --white: #ffffff;
  --light-gray: #f3f4f6;
  --medium-gray: #9ca3af;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
  font-size: 16px;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--dark-bg);
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  background-attachment: fixed;
  min-height: 100vh;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--accent-mint);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent-mint);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--gradient-start);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--accent-mint);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  background-color: var(--gradient-start);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent-mint);
  color: var(--accent-mint);
}

.btn-outline:hover {
  background-color: var(--accent-mint);
  color: var(--white);
}

/* Header & Navigation */
header {
  background-color: rgba(31, 41, 55, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo span {
  color: var(--accent-mint);
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--white);
  height: 2px;
  width: 2rem;
  border-radius: 2px;
  position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
}

.nav-toggle-label span::before {
  bottom: 7px;
}

.nav-toggle-label span::after {
  top: 7px;
}

nav {
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
}

nav li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-mint);
  transition: width 0.3s ease;
}

nav li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("./img/wtsTp.jpg");
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Benefits Section */
.benefits {
  padding: 5rem 0;
  background-color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.benefit-card {
  background-color: var(--light-gray);
  border-radius: 8px;
  padding: 0 0 2rem;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-image {
  height: 180px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.benefit-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.benefit-card:hover .benefit-image img {
  transform: scale(1.05);
}

.benefit-card h3,
.benefit-card p {
  padding: 0 1.5rem;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: var(--dark-bg);
  color: var(--white);
}

.services h2:after {
  left: 50%;
  transform: translateX(-50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 0 2rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px 0 rgba(31, 38, 135, 0.5);
}

.service-image {
  height: 200px;
  overflow: hidden;
  margin: -2rem -2rem 1.5rem;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

/* Steps Section */
.steps {
  padding: 5rem 0;
  background-color: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.step-card {
  position: relative;
  padding: 2rem;
  background-color: var(--light-gray);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-number {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 40px;
  height: 40px;
  background-color: var(--accent-mint);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background-color: var(--dark-bg);
  color: var(--white);
}

.testimonials h2:after {
  left: 50%;
  transform: translateX(-50%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding: 0 20px;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 1.5rem;
  color: var(--accent-mint);
  position: absolute;
}

.testimonial-text::before {
  top: -10px;
  left: -5px;
}

.testimonial-text::after {
  bottom: -10px;
  right: -5px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--accent-mint);
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
  background-color: var(--white);
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.faq-question {
  font-weight: 700;
  background-color: var(--light-gray);
  color: var(--dark-bg);
  padding: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question label {
  width: 100%;
  cursor: pointer;
}

.faq-toggle {
  display: none;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
  content: "";
  position: absolute;
  background-color: var(--dark-bg);
  width: 14px;
  height: 2px;
  transition: all 0.3s ease;
}

.faq-toggle-icon::after {
  transform: rotate(90deg);
}

.faq-toggle:checked ~ .faq-question .faq-toggle-icon::after {
  transform: rotate(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: var(--white);
  transition: max-height 0.3s ease;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 1.2rem;
}

/* Form Section */
.contact {
  padding: 5rem 0;
  background-color: var(--dark-bg);
  color: var(--white);
}

.form-container {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.8);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-mint);
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-input {
  margin-right: 10px;
  margin-top: 5px;
}

.form-submit {
  width: 100%;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--dark-bg);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.5s ease;
}

.cookie-popup.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-text {
  margin-right: 2rem;
}

.cookie-text p {
  margin-bottom: 0;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 2rem;
}

.footer-column h3 {
  color: var(--accent-mint);
  margin-bottom: 1.5rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: var(--white);
}

.footer-column a:hover {
  color: var(--accent-mint);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: var(--medium-gray);
}

/* Thank You Page (Gracias) */
.thank-you {
  margin: 8rem auto 5rem;
  max-width: 600px;
  text-align: center;
  padding: 3rem;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--accent-mint);
}

.thank-you h1 {
  color: var(--accent-mint);
  margin-bottom: 1.5rem;
}

/* Policy Pages */
.policy-container {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  margin: 4rem auto;
  max-width: 900px;
}

.policy-container h1 {
  color: var(--dark-bg);
  border-bottom: 2px solid var(--accent-mint);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.policy-container h2 {
  margin-top: 2rem;
  color: var(--dark-bg);
}

.policy-container p,
.policy-container ul,
.policy-container ol {
  margin-bottom: 1.5rem;
}

.policy-container ul,
.policy-container ol {
  padding-left: 2rem;
}

.policy-container li {
  margin-bottom: 0.5rem;
}

/* Responsive */
@media screen and (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .nav-toggle-label {
    display: block;
    z-index: 1001;
  }

  nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(-100%);
    background-color: var(--dark-bg);
    height: 100vh;
    padding-top: 80px;
    transition: transform 0.3s ease;
  }

  .nav-toggle:checked ~ nav {
    transform: translateX(0);
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  nav li {
    margin: 1rem 0;
  }

  .cookie-popup {
    flex-direction: column;
  }

  .cookie-text {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .cookie-buttons {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .form-container,
  .policy-container,
  .thank-you {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .policy-container {
    padding: 1.5rem;
  }
}
