/* Estilos generales para el sitio de auditoría financiera "domain" */

/* Reset básico y variables */
:root {
  --bg-color: #1a1a1a;
  --accent-neon: #1de9b6;
  --accent-blue: #2979ff;
  --text-white: #ffffff;
  --text-light: #b0bec5;
  --gradient: linear-gradient(135deg, var(--accent-neon), var(--accent-blue));
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --container-width: 1200px;
}

* {
  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: "Montserrat", "Arial", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

a {
  color: var(--text-white);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-neon);
}

img {
  max-width: 100%;
  height: auto;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gradient);
  color: var(--text-white);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--text-white);
}

/* Header y Navegación */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  font-weight: 500;
  font-size: 16px;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-image: url("./img/sQgQZ.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  margin-top: 0;
  padding-top: 80px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(26, 26, 26, 0.9),
    rgba(26, 26, 26, 0.7)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 30px;
}

/* About Section */
.about {
  padding: 100px 0;
}

.section-title {
  font-size: 36px;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Services Section */
.services {
  padding: 100px 0;
  background-color: rgba(255, 255, 255, 0.02);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: var(--accent-neon);
}

.service-image {
  height: 150px;
  position: relative;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 25px;
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--accent-neon);
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 20px;
}

/* Benefits Section */
.benefits {
  padding: 100px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
}

.benefit-item {
  text-align: center;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.benefit-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

.benefit-icon {
  font-size: 24px;
  color: var(--accent-neon);
  margin-bottom: 20px;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.benefit-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.benefit-item h3 {
  margin-bottom: 15px;
}

.benefit-item p {
  color: var(--text-light);
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background-color: rgba(255, 255, 255, 0.02);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  padding: 30px;
  position: relative;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-light);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-position {
  color: var(--accent-neon);
  font-size: 14px;
}

/* Stats Section */
.stats {
  padding: 100px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Form Section */
.contact {
  padding: 100px 0;
  background-color: rgba(255, 255, 255, 0.02);
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  border: 1px solid rgba(29, 233, 182, 0.2);
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  color: var(--text-white);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-neon);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' 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: right 10px center;
  padding-right: 30px;
}

/* Customize the background of option tags */
select.form-control option {
  background-color: #333;
  color: var(--text-white);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-group label {
  color: var(--text-light);
  font-size: 14px;
}

.checkbox-group a {
  color: var(--accent-neon);
}

.form-submit {
  width: 100%;
  padding: 15px;
  font-size: 18px;
}

/* Error and success messages */
.form-message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
}

.form-message.error {
  background-color: rgba(244, 67, 54, 0.1);
  border: 1px solid #f44336;
  color: #f44336;
}

.form-message.success {
  background-color: rgba(76, 175, 80, 0.1);
  border: 1px solid #4caf50;
  color: #4caf50;
}

/* Footer */
.footer {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 60px 0 30px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-neon);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-light);
}

.footer-links a:hover {
  color: var(--accent-neon);
  padding-left: 5px;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 15px;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

/* Cookie consent popup */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 400px;
  background-color: rgba(26, 26, 26, 0.95);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  z-index: 9999;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: none;
}

.cookie-consent.show {
  display: block;
  animation: slideIn 0.5s forwards;
}

.cookie-consent p {
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--text-light);
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 15px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.accept-cookies {
  background: var(--gradient);
  color: var(--text-white);
  border: none;
}

.cookie-policy-link {
  color: var(--accent-neon);
  text-decoration: underline;
}

/* Gracias page */
.thanks-container {
  max-width: 600px;
  margin: 5rem auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  border: 1px solid rgba(29, 233, 182, 0.2);
  text-align: center;
}

.thanks-container h1 {
  color: var(--accent-neon);
  margin-bottom: 20px;
}

.thanks-container p {
  margin-bottom: 30px;
  color: var(--text-light);
}

/* Policy pages */
.policy-container {
  max-width: 800px;
  margin: 5rem auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.policy-container h1 {
  margin-bottom: 30px;
  color: var(--accent-neon);
}

.policy-container h2 {
  margin: 30px 0 15px;
  color: var(--text-white);
}

.policy-container p,
.policy-container ul,
.policy-container ol {
  margin-bottom: 20px;
  color: var(--text-light);
}

.policy-container ul,
.policy-container ol {
  padding-left: 20px;
}

.policy-container li {
  margin-bottom: 10px;
}

/* FAQ Section (using CSS checkbox hack) */
.faq {
  padding: 100px 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.03);
}

.faq-question {
  display: block;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  cursor: pointer;
  position: relative;
  font-weight: 500;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.faq-toggle {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
  color: var(--text-light);
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  padding: 20px;
}

.faq-toggle:checked ~ .faq-question::after {
  transform: rotate(45deg);
}

/* Animation keyframes */
@keyframes slideIn {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Media queries */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 40px;
  }

  .about-content {
    flex-direction: column;
  }

  .about-text,
  .about-image {
    flex: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    background: var(--text-white);
    height: 2px;
    width: 30px;
    position: relative;
    transition: var(--transition);
  }

  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
  }

  .nav-toggle-label span::before {
    bottom: 8px;
  }

  .nav-toggle-label span::after {
    top: 8px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    background-color: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-links li {
    margin: 20px 0;
  }

  .nav-toggle:checked ~ .nav-links {
    right: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label span {
    background: transparent;
  }

  .nav-toggle:checked ~ .nav-toggle-label span::before {
    transform: rotate(45deg);
    bottom: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label span::after {
    transform: rotate(-45deg);
    top: 0;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-content {
    text-align: center;
  }

  .section-title {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .btn {
    width: 100%;
  }

  .hero {
    min-height: 500px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .form-container {
    padding: 30px 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .logo {
    font-size: 24px;
  }
}
