/* 
   DOMAIN - Servicios de Contabilidad
   Main Stylesheet
*/

/* ===== VARIABLES ===== */
:root {
  --bg-primary: #161b22;
  --bg-secondary: #1f2730;
  --accent: #00ffd5;
  --accent-hover: #00e6c1;
  --complementary: #ff0080;
  --complementary-hover: #e6007a;
  --text-primary: #ffffff;
  --text-secondary: #b0bec5;
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  --container-width: 1200px;
  --header-height: 80px;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 80px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: "";
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--complementary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
  color: var(--bg-primary);
}

.btn-alt {
  background: var(--complementary);
  color: var(--text-primary);
}

.btn-alt:hover {
  background: var(--complementary-hover);
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  height: var(--header-height);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link:hover:after {
  width: 100%;
}

/* Mobile menu checkbox (hidden) */
.mobile-menu-checkbox {
  display: none;
}

.mobile-toggle {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(22, 27, 34, 0.8);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--accent);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ===== ABOUT SECTION ===== */
.about {
  background-color: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

/* ===== SERVICES SECTION ===== */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 0 0 30px 0;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--complementary));
  z-index: 2;
}

.service-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-title {
  font-size: 1.5rem;
  margin: 0 20px 15px;
  color: var(--text-primary);
}

.service-description {
  color: var(--text-secondary);
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card .btn {
  margin: 0 20px;
}

/* ===== ADVANTAGES SECTION ===== */
.advantages {
  background-color: var(--bg-secondary);
}

.advantages-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.advantage-item {
  text-align: center;
  padding: 20px;
}

.advantage-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.advantage-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.advantage-text {
  color: var(--text-secondary);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
}

.testimonial-text:before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  left: -10px;
  top: -20px;
  color: var(--accent);
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.author-info p {
  color: var(--accent);
  font-size: 0.9rem;
}

/* ===== FAQ SECTION ===== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  position: relative;
  padding: 15px 20px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  display: block;
}

.faq-checkbox {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.faq-toggle:before,
.faq-toggle:after {
  content: "";
  position: absolute;
  background-color: var(--accent);
  transition: var(--transition);
}

.faq-toggle:before {
  width: 14px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-toggle:after {
  width: 2px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-checkbox:checked ~ .faq-question .faq-toggle:after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: var(--bg-primary);
  transition: max-height 0.3s ease;
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
}

.faq-content {
  padding: 20px;
  color: var(--text-secondary);
}

/* ===== FORM SECTION ===== */
.form-section {
  background-color: var(--bg-secondary);
  position: relative;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background-color: rgba(31, 39, 48, 0.8);
  border-radius: var(--border-radius);
  border: 1px solid var(--accent);
  box-shadow: var(--box-shadow);
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background-color: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 255, 213, 0.2);
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.form-check input {
  margin-top: 5px;
  margin-right: 10px;
}

.form-check label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-button {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--bg-primary);
  padding: 60px 0 30px;
  position: relative;
}

.footer:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--complementary));
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--complementary);
}

.footer-column p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  color: var(--text-secondary);
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.contact-info i {
  margin-right: 10px;
  color: var(--accent);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== COOKIE POPUP ===== */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: var(--bg-secondary);
  padding: 20px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: bottom 0.5s ease;
  border-top: 3px solid var(--accent);
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
}

.cookie-text {
  margin-right: 20px;
  color: var(--text-secondary);
}

.cookie-text h3 {
  color: var(--text-primary);
  margin-bottom: 5px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

/* ===== POLICY PAGES ===== */
.policy-container {
  max-width: 900px;
  margin: 120px auto 60px;
  padding: 40px;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--accent);
}

.policy-container h1 {
  color: var(--accent);
  margin-bottom: 30px;
  text-align: center;
}

.policy-container h2 {
  color: var(--text-primary);
  margin: 30px 0 15px;
  font-size: 1.5rem;
}

.policy-container p {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.policy-container ul {
  margin: 15px 0;
  padding-left: 20px;
}

.policy-container li {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

/* ===== THANK YOU PAGE ===== */
.thank-you {
  height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 80px;
}

.thank-you-content {
  max-width: 600px;
  padding: 40px;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--accent);
  margin: 0 auto;
}

.thank-you-content h1 {
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 2.5rem;
}

.thank-you-content p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
    margin-bottom: 30px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }
}

/* Mobile menu styles for CSS-only toggle */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    flex-direction: column;
    background-color: var(--bg-secondary);
    width: 100%;
    height: calc(100vh - var(--header-height));
    z-index: 999;
    padding: 20px 0;
    transition: left 0.3s ease;
  }

  .nav-item {
    margin: 15px 0;
    text-align: center;
  }

  /* CSS-only hamburger menu using checkbox hack */
  .mobile-menu-checkbox:checked ~ .nav-menu {
    left: 0;
  }

  /* Hamburger to X animation */
  .mobile-menu-checkbox:checked + .mobile-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-checkbox:checked + .mobile-toggle span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-checkbox:checked + .mobile-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column h3:after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-info li {
    justify-content: center;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-text {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }

  .section-padding {
    padding: 60px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .policy-container {
    padding: 20px;
    margin-top: 100px;
  }

  .form-container {
    padding: 20px;
  }
}
