/* 
* Main Stylesheet
* domain - Financial Audit Services
* Colors:
* - Primary: #1F3A93 (dark blue)
* - Accent: #FFC857 (amber)
* - Background: #FFF8F0 (peach)
* - Text: #2D2D2D (coal)
* - UI Elements: #8FD694 (pastel green)
*/

/* === Base Styles === */
:root {
  --primary: #1f3a93;
  --accent: #ffc857;
  --background: #fff8f0;
  --text: #2d2d2d;
  --ui-green: #8fd694;
  --white: #ffffff;
  --light-gray: #f0f0f0;
  --medium-gray: #cccccc;
  --dark-gray: #666666;
  --header-height: 80px;
  --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: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

h2:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent);
  margin-top: 12px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2:after {
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary);
  opacity: 0.9;
  color: var(--white);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--text);
}

.btn-accent:hover {
  background-color: var(--accent);
  opacity: 0.9;
}

/* === Header === */
#header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  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: 900;
  color: var(--primary);
  text-transform: uppercase;
}

.logo a {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
}

.nav-menu li {
  margin-left: 25px;
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary);
  transition: var(--transition);
}

/* === Hero Section === */
#hero {
  height: 100vh;
  min-height: 600px;
  background-image: url("./img/uTZn2.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--white);
  display: flex;
  align-items: center;
  margin-top: var(--header-height);
}

#hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* === About Section === */
#nosotros {
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* === Features Section === */
#ventajas {
  background-color: var(--light-gray);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  color: var(--primary);
  margin: 15px 0;
}

/* === Services Section === */
#servicios {
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--light-gray);
  border-radius: 8px;
  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 10px 25px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 25px;
}

.service-content h3 {
  margin-top: 0;
}

/* === Testimonials Section === */
#testimonios {
  background-color: var(--light-gray);
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial:before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-text {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary);
}

/* === FAQ Section === */
#faq {
  background-color: var(--white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  position: relative;
}

.faq-question input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-question label {
  display: block;
  padding: 15px 50px 15px 20px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  color: var(--primary);
  background-color: var(--light-gray);
}

.faq-question label:after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 1.5em;
  transition: var(--transition);
}

.faq-question input:checked ~ label:after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: var(--white);
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-question input:checked ~ .faq-answer {
  max-height: 500px;
  padding: 20px;
}

/* === Contact Form === */
#contacto {
  background-color: var(--light-gray);
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
  font-size: 16px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D2D2D' 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 15px center;
  background-size: 15px;
}

/* Styling the option background color */
.form-select option {
  background-color: var(--light-gray);
  color: var(--text);
  padding: 12px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 5px;
}

.form-error {
  color: #d9534f;
  font-size: 14px;
  margin-top: 5px;
}

.form-submit {
  margin-top: 20px;
}

/* === Footer === */
#footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info .logo {
  color: var(--white);
  margin-bottom: 15px;
}

.footer-info p {
  color: var(--light-gray);
  margin-bottom: 0;
}

.footer-contact ul,
.footer-legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact li,
.footer-legal li {
  margin-bottom: 10px;
}

.footer-contact a,
.footer-legal a {
  color: var(--light-gray);
}

.footer-contact a:hover,
.footer-legal a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Cookie Consent === */
.cookie-consent {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background-color: var(--primary);
  color: var(--white);
  padding: 15px;
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  transition: bottom 0.5s ease;
  opacity: 0;
}

.cookie-consent.show {
  bottom: 0;
  opacity: 1;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.cookie-content p {
  margin: 0 20px 0 0;
}

.cookie-content a {
  color: var(--accent);
  text-decoration: underline;
}

/* === Thank You Page === */
.thank-you-container {
  max-width: 700px;
  margin: 120px auto 60px;
  text-align: center;
  background-color: var(--white);
  padding: 50px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--primary);
}

/* === Legal Pages === */
.legal-page {
  max-width: 800px;
  margin: 120px auto 60px;
  background-color: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--primary);
}

.legal-page h1 {
  margin-bottom: 30px;
}

.legal-page h2 {
  font-size: 1.5rem;
  margin-top: 30px;
}

/* === Responsive Styles === */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .header-container {
    position: relative;
  }

  .menu-icon {
    display: flex;
    z-index: 1001;
    position: relative;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 0;
  }

  .nav-menu li {
    margin: 15px 0;
  }

  .menu-toggle:checked ~ .nav-menu {
    right: 0;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 30px 20px;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-content p {
    margin: 0 0 15px 0;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .services-grid,
  .testimonials-container {
    grid-template-columns: 1fr;
  }
}
