/* 
* Domain - Auditoría Financiera en España
* Main stylesheet
*/

/* --- BASE STYLES --- */
:root {
  --color-background: #fdfdfc;
  --color-accent: #fc6e51;
  --color-secondary: #5a1ea5;
  --color-dark: #0b2239;
  --color-text: #111;
  --color-light: #f5f5f5;
  --color-gray: #666;
  --color-light-gray: #eee;
  --btn-gradient: linear-gradient(to right, #ffb347, #ff6b6b);
  --border-radius: 6px;
  --transition: all 0.3s ease;
}

* {
  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: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica,
    Arial, sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  margin-bottom: 2rem;
}

h2:after {
  content: "";
  position: absolute;
  bottom: -0.8rem;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
}

.text-center h2:after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-secondary);
}

ul {
  list-style: none;
}

.text-center {
  text-align: center;
}

section {
  padding: 5rem 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  background: var(--btn-gradient);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: white;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: white;
}

/* --- HEADER --- */
header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.5px;
  transition: var(--transition);
}

.logo:hover {
  color: var(--color-accent);
  transform: scale(1.05);
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* --- MOBILE MENU --- */
.menu-checkbox {
  display: none;
}

.menu-toggle-label {
  display: none;
}

@media (max-width: 992px) {
  .menu-toggle-label {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
  }

  .menu-icon,
  .menu-icon:before,
  .menu-icon:after {
    background-color: var(--color-dark);
    width: 100%;
    height: 3px;
    position: absolute;
    transition: var(--transition);
    border-radius: var(--border-radius);
  }

  .menu-icon {
    top: 50%;
    transform: translateY(-50%);
  }

  .menu-icon:before {
    content: "";
    top: -8px;
  }

  .menu-icon:after {
    content: "";
    bottom: -8px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: white;
    height: 0;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  .main-nav ul li {
    width: 100%;
    text-align: center;
  }

  .main-nav ul li a {
    display: block;
    padding: 1rem;
  }

  .menu-checkbox:checked ~ .main-nav {
    height: auto;
    padding: 1rem 0;
  }

  .menu-checkbox:checked ~ .menu-toggle-label .menu-icon {
    background: transparent;
  }

  .menu-checkbox:checked ~ .menu-toggle-label .menu-icon:before {
    transform: rotate(45deg);
    top: 0;
  }

  .menu-checkbox:checked ~ .menu-toggle-label .menu-icon:after {
    transform: rotate(-45deg);
    bottom: 0;
  }
}

/* --- HERO SECTION --- */
.hero {
  height: calc(100vh - 70px);
  min-height: 600px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 34, 57, 0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
}

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* --- FEATURES SECTION --- */
.features {
  background-color: var(--color-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-item {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light);
  border-radius: 50%;
  color: var(--color-accent);
  font-size: 1.5rem;
}

.feature-item h3 {
  margin-bottom: 1rem;
}

/* --- SERVICES SECTION --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
}

.service-card a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
}

/* --- PROCESS SECTION --- */
.process {
  background-color: var(--color-light);
}

.process-container {
  max-width: 900px;
  margin: 0 auto;
}

.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step:not(:last-child):before {
  content: "";
  position: absolute;
  top: 60px;
  left: 40px;
  width: 2px;
  height: calc(100% - 20px);
  background-color: var(--color-light-gray);
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-gradient);
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.step-content {
  padding: 1rem 0;
}

/* --- CONTACT SECTION --- */
.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--color-light-gray);
  border-radius: var(--border-radius);
  background-color: white;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(252, 110, 81, 0.1);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

select.form-control option {
  background: white;
  color: var(--color-text);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.3rem;
  margin-right: 0.75rem;
}

.checkbox-group label {
  font-weight: normal;
  font-size: 0.9rem;
  margin: 0;
}

.checkbox-group a {
  font-weight: 600;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials {
  background-color: var(--color-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-name {
  font-weight: 700;
}

.author-position {
  font-size: 0.85rem;
  color: var(--color-gray);
}

/* --- FOOTER --- */
footer {
  background-color: var(--color-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  margin-bottom: 1.5rem;
  color: white;
}

.footer-col p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.contact-list li,
.legal-links li {
  margin-bottom: 0.75rem;
}

.contact-list a,
.legal-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.contact-list a:hover,
.legal-links a:hover {
  color: var(--color-accent);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* --- COOKIE CONSENT --- */
.cookie-consent {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: white;
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: bottom 0.5s ease;
}

.cookie-consent.show {
  bottom: 0;
}

.cookie-consent p {
  margin: 0 1rem 0 0;
  font-size: 0.9rem;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .cookie-consent {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-consent p {
    margin: 0 0 1rem 0;
  }
}

/* --- LEGAL PAGES --- */
.legal-page {
  padding: 5rem 0;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.legal-content h2 {
  margin-top: 2.5rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style-type: disc;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* --- GRACIAS PAGE --- */
.thanks-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.thanks-container {
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  max-width: 600px;
  width: 100%;
  margin: 8rem auto 3rem;
}

.thanks-icon {
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.thanks-container h1 {
  margin-bottom: 1.5rem;
}

/* --- FAQ --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  position: relative;
}

.faq-checkbox {
  display: none;
}

.faq-label {
  display: block;
  background: white;
  padding: 1.2rem;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
}

.faq-label:after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  background: white;
  transition: max-height 0.3s ease;
}

.faq-inner {
  padding: 0 1.2rem 1.2rem;
}

.faq-checkbox:checked ~ .faq-content {
  max-height: 1000px;
}

.faq-checkbox:checked ~ .faq-label:after {
  content: "−";
}
