/* 
Contabilidad Viva - Main Stylesheet
Color Palette:
- Primary Background: Lavender (#E3D1F9)
- Accent: Sunny Orange (#FFA552)
- Secondary: Night Teal (#005F73)
- Text: Deep Anthracite (#1A1A1A)
- Buttons: Pure White with accent border
*/

/* === RESET & BASE STYLES === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #1A1A1A;
  background-color: #E3D1F9;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #005F73;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #FFA552;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 4rem 0;
}

h1, h2, h3, h4 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFA552;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.5rem;
}

.text-center {
  text-align: center;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background-color: white;
  color: #005F73;
  border: 2px solid #FFA552;
  border-radius: 50px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #FFA552;
  color: white;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  background-color: #005F73;
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #004a5a;
}

/* === HEADER & NAVIGATION === */
.site-header {
  padding: 1rem 0;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 180px;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
}

.main-nav ul {
  display: flex;
}

.main-nav li {
  margin-left: 2rem;
}

.main-nav a {
  font-weight: 600;
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(135deg, #E3D1F9 0%, #d0b7eb 100%);
  padding: 6rem 0;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-content {
  max-width: 600px;
  flex: 1;
}

.hero-image {
  flex: 1;
  max-width: 500px;
}

.hero-image img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: #005F73;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* === SERVICES SECTION === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 2rem;
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #005F73;
  text-align: center;
}

.service-price {
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  margin: 1.5rem 0;
  color: #FFA552;
}

.service-features {
  margin-bottom: 1.5rem;
}

.service-features li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: '✓';
  color: #FFA552;
  position: absolute;
  left: 0;
}

.service-card .btn-primary {
  display: block;
  text-align: center;
  width: 80%;
  margin: 0 auto;
}

/* === BENEFITS SECTION === */
.benefits {
  background-color: #f9f6ff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.benefit-item {
  text-align: center;
  padding: 1.5rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: scale(1.05);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
}

.benefit-title {
  color: #005F73;
  margin-bottom: 0.5rem;
}

.benefits-image {
  margin-top: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.full-width-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* === TESTIMONIALS SECTION === */
.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-item {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin: 2rem 1rem;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding: 0 1.5rem;
}

.testimonial-content::before,
.testimonial-content::after {
  content: '"';
  font-size: 3rem;
  color: #FFA552;
  opacity: 0.3;
  position: absolute;
}

.testimonial-content::before {
  top: -20px;
  left: -10px;
}

.testimonial-content::after {
  bottom: -40px;
  right: -10px;
}

.testimonial-author {
  font-weight: bold;
  color: #005F73;
}

/* === FAQ SECTION === */
.faq-item {
  margin-bottom: 1.5rem;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  position: relative;
  padding: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 2px solid #f0f0f0;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f9f6ff;
}

.faq-answer {
  padding: 1.5rem;
}

/* === CONTACT FORM === */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: #FFA552;
  box-shadow: 0 0 0 2px rgba(255, 165, 82, 0.2);
}

.form-check {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.form-check-input {
  margin-right: 10px;
  margin-top: 5px;
}

.form-check-label {
  font-size: 0.9rem;
}

.form-submit {
  width: 100%;
  padding: 12px;
  background-color: #FFA552;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-submit:hover {
  background-color: #ff913a;
}

.form-error {
  background-color: #ffdddd;
  color: #d83030;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

/* === FOOTER === */
.site-footer {
  background-color: #005F73;
  color: white;
  padding: 4rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  width: 150px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

.footer-info p {
  opacity: 0.8;
}

.footer-contact ul,
.footer-links ul {
  margin-top: 1rem;
}

.footer-contact li,
.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-contact a,
.footer-links a {
  color: white;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-contact a:hover,
.footer-links a:hover {
  opacity: 1;
}

.footer-links h3,
.footer-contact h3 {
  color: #FFA552;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* === COOKIE POPUP === */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 95, 115, 0.95);
  color: white;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease;
}

.cookie-content {
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-content p {
  margin-right: 2rem;
  flex: 1;
}

.cookie-content a {
  color: #FFA552;
  text-decoration: underline;
}

.cookie-content button {
  background-color: #FFA552;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cookie-content button:hover {
  background-color: #ff913a;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content, .hero-image {
    max-width: 100%;
  }
  
  .hero-image {
    order: -1;
    margin-bottom: 2rem;
  }
  
  /* Hamburger menu for mobile */
  .nav-toggle-label {
    display: block;
    cursor: pointer;
    position: relative;
    z-index: 2;
  }
  
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    background-color: #005F73;
    height: 3px;
    width: 25px;
    position: relative;
    transition: transform 0.3s ease;
  }
  
  .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-toggle:checked ~ .nav-toggle-label span {
    transform: rotate(45deg);
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span::before {
    transform: rotate(90deg) translate(8px, 0);
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span::after {
    opacity: 0;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #E3D1F9;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1;
  }
  
  .nav-toggle:checked ~ .main-nav {
    transform: translateX(0);
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .main-nav li {
    margin: 1.5rem 0;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .services-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .service-image {
    height: 180px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo {
    margin: 0 auto 1.5rem;
  }
  
  .full-width-image {
    height: 250px;
  }
} 