/* Domain - Servicios de Contabilidad en España
   Main Stylesheet */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #1B1325;
  --accent-color: #F4B942;
  --secondary-color: #C3FFD3;
  --text-light: #F4F4F4;
  --text-body: #CFCFCF;
  --header-height: 80px;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

.section {
  padding: 5rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  color: var(--bg-color);
  font-weight: 600;
  border-radius: 50px;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(244, 185, 66, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(244, 185, 66, 0.5);
  color: var(--bg-color);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(27, 19, 37, 0.95);
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.nav-desktop ul {
  display: flex;
  list-style: none;
}

.nav-desktop li {
  margin-left: 2rem;
}

.nav-desktop a {
  color: var(--text-light);
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-desktop a:hover::after {
  width: 100%;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  cursor: pointer;
}

.hamburger {
  width: 30px;
  height: 20px;
  position: relative;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text-light);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--bg-color);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 2rem;
}

.nav-mobile.active {
  transform: translateX(0);
}

.nav-mobile ul {
  list-style: none;
}

.nav-mobile li {
  margin-bottom: 1.5rem;
}

.nav-mobile a {
  color: var(--text-light);
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(27, 19, 37, 0.8), rgba(27, 19, 37, 0.95)), url('../img/MEQNZB.jpg') no-repeat center;
  background-size: cover;
  margin-top: var(--header-height);
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
}

/* Benefits Section */
.benefits {
  background-color: rgba(37, 28, 52, 0.6);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-item {
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(244, 185, 66, 0.1), rgba(195, 255, 211, 0.1));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(244, 185, 66, 0.3);
}

.benefit-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: linear-gradient(135deg, rgba(27, 19, 37, 0.8), rgba(37, 28, 52, 0.9));
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(244, 185, 66, 0.2);
}

.service-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.service-content {
  padding: 1.5rem;
}

/* About Section */
.about {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.about-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.about-img img {
  width: 100%;
  display: block;
}

/* Testimonials */
.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(244, 185, 66, 0.1), rgba(195, 255, 211, 0.1));
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-content {
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-content::before {
  content: '"';
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -15px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-info {
  margin-left: 1rem;
}

.author-name {
  font-weight: 600;
  color: var(--text-light);
}

.author-position {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Form Section */
.form-section {
  background: linear-gradient(135deg, rgba(37, 28, 52, 0.9), rgba(27, 19, 37, 0.9));
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(244, 185, 66, 0.3);
  background: rgba(27, 19, 37, 0.6);
  border-radius: 5px;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(244, 185, 66, 0.3);
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-container input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 5px;
  width: auto;
}

.form-full-width {
  grid-column: 1 / -1;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid rgba(244, 185, 66, 0.3);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(27, 19, 37, 0.8), rgba(37, 28, 52, 0.9));
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
  font-weight: 600;
}

.faq-question:after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-color);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-question:after {
  content: '-';
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-info {
  padding: 2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(244, 185, 66, 0.1), rgba(195, 255, 211, 0.1));
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  margin-right: 1rem;
  color: var(--accent-color);
  font-size: 1.5rem;
  min-width: 24px;
}

/* Footer */
footer {
  background-color: rgba(15, 10, 23, 0.9);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-body);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 185, 66, 0.2);
}

/* Legal Pages */
.legal-container {
  max-width: 900px;
  margin: 7rem auto 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(27, 19, 37, 0.8), rgba(37, 28, 52, 0.9));
  border-radius: 10px;
  border: 1px solid rgba(244, 185, 66, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.legal-container h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--accent-color);
}

.legal-container h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  text-align: left;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 400px;
  background: linear-gradient(135deg, rgba(27, 19, 37, 0.95), rgba(37, 28, 52, 0.95));
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  border: 1px solid rgba(244, 185, 66, 0.3);
}

.cookie-popup p {
  margin-bottom: 15px;
}

.cookie-popup-actions {
  display: flex;
  justify-content: space-between;
}

/* Thank You Page */
.thank-you {
  text-align: center;
  padding: 10rem 0;
  height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.thank-you h1 {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .about {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-btns {
    flex-direction: column;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
} 