/* 
* domain - Servicios de Contabilidad en España
* Stylesheet
*/

/* === Base Styles === */
:root {
  --color-background: #f0ece3;
  --color-accent: #c44536;
  --color-heading: #0d1321;
  --color-text: #3e3e3e;
  --color-btn-gradient-start: #ff7e5f;
  --color-btn-gradient-end: #feb47b;
  --color-white: #ffffff;
  --color-light-gray: #f5f5f5;
  --color-medium-gray: #e0e0e0;
  --color-dark-gray: #888888;
  --font-primary: "Arial", sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-heading);
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  margin-bottom: 2rem;
  text-align: center;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--color-accent);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-heading);
}

ul {
  list-style-position: inside;
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  padding: 4rem 0;
}

/* === Buttons === */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(
    to right,
    var(--color-btn-gradient-start),
    var(--color-btn-gradient-end)
  );
  color: var(--color-white);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  color: var(--color-white);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-heading);
  text-transform: lowercase;
}

.logo a:hover {
  color: var(--color-accent);
}

/* === Navigation === */
.main-nav {
  position: relative;
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  padding: 10px;
}

.menu-icon span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-heading);
  margin: 5px 0;
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  color: var(--color-heading);
  font-weight: 600;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--color-accent);
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--color-accent);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* === Hero Section === */
.hero {
  background: url("img/tT1IY.jpg") no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  margin-top: 80px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--color-white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === About Section === */
.about-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* === Advantages Section === */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.advantage-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* === Services Section === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--color-white);
  border-radius: 10px;
  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;
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  margin-bottom: 1rem;
}

.service-content ul {
  margin-bottom: 1.5rem;
  list-style-type: circle;
}

/* === Why Us Section === */
.why-us-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.why-us-text {
  flex: 1;
}

.why-us-text ul {
  list-style-type: none;
}

.why-us-text li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.why-us-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.why-us-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* === FAQ Section === */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--color-medium-gray);
  border-radius: 5px;
}

.faq-item input[type="checkbox"] {
  display: none;
}

.faq-question {
  display: block;
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
}

.faq-item input[type="checkbox"]:checked ~ .faq-answer {
  max-height: 500px;
  padding: 0 1rem 1rem;
}

.faq-item input[type="checkbox"]:checked ~ .faq-question::after {
  content: "-";
}

/* === Contact Section === */
.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contact-info {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-hours {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-medium-gray);
}

.contact-form {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--color-medium-gray);
  border-radius: 5px;
  background-color: var(--color-light-gray);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(196, 69, 54, 0.1);
}

/* Custom styling for select */
.form-group select {
  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='%233E3E3E' 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;
  padding-right: 40px;
}

/* Custom styling for select options */
.form-group select option {
  background-color: var(--color-light-gray);
  color: var(--color-text);
  padding: 10px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.form-check input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 5px;
}

.form-check label {
  font-size: 0.9rem;
}

/* === Testimonials Section === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
  position: relative;
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: -5px;
  font-size: 3rem;
  color: var(--color-accent);
  opacity: 0.3;
}

.testimonial-author {
  border-top: 1px solid var(--color-medium-gray);
  padding-top: 1rem;
}

.testimonial-author p {
  margin-bottom: 0.3rem;
}

/* === Footer === */
.site-footer {
  background-color: var(--color-heading);
  color: var(--color-light-gray);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo a {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-white);
  text-transform: lowercase;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-description {
  color: var(--color-medium-gray);
  font-size: 0.9rem;
}

.footer-contact h3,
.footer-links h3 {
  color: var(--color-white);
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--color-medium-gray);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: var(--color-dark-gray);
}

/* === Cookie Consent === */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(13, 19, 33, 0.95);
  color: var(--color-white);
  padding: 1rem;
  z-index: 9999;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

.cookie-content p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.cookie-content a {
  color: var(--color-light-gray);
  text-decoration: underline;
}

.cookie-content button {
  white-space: nowrap;
}

/* === Thank You Page === */
.gracias {
  margin: 8rem auto 5rem;
  border: 2px solid var(--color-accent);
  padding: 2rem;
  text-align: center;
  width: 60%;
  background-color: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gracias h1 {
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.gracias p {
  margin-bottom: 1.5rem;
}

.gracias .btn-primary {
  margin-top: 1rem;
}

/* === Legal Pages === */
.legal-page {
  margin: 8rem auto 4rem;
  background-color: var(--color-white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.legal-content h2 {
  text-align: left;
  margin-top: 2rem;
}

.legal-content h2::after {
  left: 0;
  transform: none;
  width: 50px;
}

/* === Media Queries === */
@media (max-width: 991px) {
  .about-content,
  .why-us-content {
    flex-direction: column;
  }

  .about-text,
  .why-us-text,
  .about-image,
  .why-us-image {
    flex: none;
    width: 100%;
  }

  .about-image,
  .why-us-image {
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .gracias {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: -100vw;
    flex-direction: column;
    background-color: var(--color-white);
    width: 100vw;
    max-width: 300px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: right 0.3s ease;
    margin: 0;
  }

  .nav-menu li {
    margin: 0;
  }

  .nav-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
  }

  .menu-toggle:checked ~ .nav-menu {
    right: -84px;
  }

  .menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero {
    height: auto;
    min-height: 500px;
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-content button {
    width: 100%;
    margin-top: 1rem;
  }

  .gracias {
    width: 90%;
    padding: 1.5rem;
    margin: 6rem auto 4rem;
  }
}

@media (max-width: 576px) {
  section {
    padding: 3rem 0;
  }

  .advantage-card {
    padding: 1.5rem;
  }

  .contact-form,
  .contact-info {
    padding: 1.5rem;
  }

  .footer-content {
    gap: 1.5rem;
  }

  .legal-page {
    padding: 1.5rem;
  }
}
