/* 
* FinContaría - Custom CSS Styles
* Colors:
* - Primary: #2E1F4F (violeta-azul)
* - Accent: #FFB703 (ámbar brillante)
* - Background: #F6F2EF (arena claro)
* - Text: #212121 (grafito)
* - Success: #33C481 (menta)
* - Error: #EF476F (rojo frambuesa)
*/

/* === RESET & BASE STYLES === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #212121;
  background-color: #F6F2EF;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

a {
  color: #2E1F4F;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #FFB703;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #2E1F4F;
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

h2::after {
  content: '';
  width: 80px;
  height: 4px;
  background: #FFB703;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* === UTILITY CLASSES === */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: #2E1F4F;
  color: white;
}

.btn-primary:hover {
  background-color: #3a2862;
  color: white;
}

.btn-secondary {
  background-color: #FFB703;
  color: #212121;
}

.btn-secondary:hover {
  background-color: #ffc233;
  color: #212121;
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(246, 242, 239, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 10px 0;
  background-color: rgba(246, 242, 239, 0.98);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo svg {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  fill: #2E1F4F;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2E1F4F;
}

.accent {
  color: #FFB703;
}

.nav-desktop {
  display: flex;
}

.nav-mobile {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 1.5rem;
}

.nav-link {
  font-weight: 600;
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #FFB703;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
}

/* === HERO SECTION === */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  padding-top: 120px;
  overflow: hidden;
  background: url('./img/AkZdBK.jpg') center center/cover no-repeat;
  text-align: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(46, 31, 79, 0.75);
  z-index: 1;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
  padding: 20px;
  animation: fadeIn 1.2s ease;
}

.hero-section h1 {
  margin-bottom: 1.5rem;
  color: white;
  font-size: 3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
  color: white;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
}

/* === ABOUT SECTION === */
.about-section {
  background-color: white;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.about-image:hover {
  transform: perspective(1000px) rotateY(0);
}

/* === BENEFITS SECTION === */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
  margin-bottom: 20px;
  color: #2E1F4F;
}

/* === SERVICES SECTION === */
.services-section {
  background-color: white;
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.service-card {
  display: flex;
  background-color: #F6F2EF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-card:nth-child(even) {
  flex-direction: row-reverse;
}

.service-image {
  flex: 1;
  min-height: 300px;
  max-height: 300px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-content h3 {
  margin-bottom: 15px;
}

.service-content p {
  margin-bottom: 20px;
}

/* === TESTIMONIALS SECTION === */
.testimonials-section {
  background-color: #F6F2EF;
  position: relative;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('./img/IL51l8.jpg') center/cover no-repeat fixed;
  opacity: 0.05;
  z-index: 0;
}

.testimonials-section .container {
  position: relative;
  z-index: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  color: rgba(46, 31, 79, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-content {
  margin-bottom: 20px;
}

.testimonial-author p {
  margin-bottom: 0;
}

/* === FAQ SECTION === */
.faq-section {
  background-color: white;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.faq-toggle {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-question {
  display: block;
  padding: 20px;
  background-color: #F6F2EF;
  color: #2E1F4F;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-toggle:checked + .faq-question {
  background-color: #2E1F4F;
  color: white;
}

.faq-toggle:checked + .faq-question::after {
  transform: rotate(45deg);
  content: '+';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: white;
  transition: max-height 0.3s ease;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  transition: max-height 0.6s ease;
}

.faq-answer p {
  padding: 20px;
  margin: 0;
}

/* === CONTACT SECTION === */
.contact-section {
  background-color: #F6F2EF;
  position: relative;
}

.contact-content {
  display: flex;
  gap: 40px;
}

.contact-info {
  flex: 1;
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.contact-map {
  flex: 1.5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  height: 400px;
}

.contact-info h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.contact-info h3:first-child {
  margin-top: 0;
}

/* === FORM SECTION === */
.form-section {
  background-color: white;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #F6F2EF;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #2E1F4F;
  border-radius: 8px;
  background-color: white;
  font-size: 1rem;
  color: #212121;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #FFB703;
  box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
  height: 18px;
  width: 18px;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
  flex: 1;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* Mensajes de alerta */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.alert-error {
    background-color: rgba(239, 71, 111, 0.15);
    border: 1px solid #EF476F;
    color: #c1284a;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.error-icon path {
    fill: #EF476F;
}

/* === FOOTER === */
.footer {
  background-color: #2E1F4F;
  color: white;
  padding: 60px 0 30px;
}

.footer a {
  color: #FFB703;
}

.footer a:hover {
  color: white;
  text-decoration: underline;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-bottom {
  margin-top: 40px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === COOKIE POPUP === */
.cookie-popup {
  position: fixed;
  bottom: -400px;
  left: 0;
  width: 100%;
  background-color: rgba(46, 31, 79, 0.95);
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
  transition: bottom 0.5s ease;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-popup p {
  margin: 0;
  padding-right: 20px;
}

.cookie-popup button {
  white-space: nowrap;
}

/* === ANIMATIONS === */


/* === RESPONSIVE STYLES === */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.85rem;
  }
  
  .hero-section {
    min-height: 70vh;
    padding: 120px 20px 60px;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p {
    font-size: 1.25rem;
  }
  
  .contact-content {
    flex-direction: column;
  }
  
  .service-card, .service-card:nth-child(even) {
    flex-direction: column;
  }
  
  .service-image {
    min-height: 200px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
  
  .nav-desktop {
    display: none;
  }
  
  .nav-mobile {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #2E1F4F;
    z-index: 1001;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }
  
  .nav-mobile.active {
    right: 0;
  }
  
  .mobile-nav-inner {
    padding: 60px 30px 30px;
  }
  
  .mobile-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .mobile-nav-list {
    list-style: none;
  }
  
  .mobile-nav-item {
    margin-bottom: 15px;
  }
  
  .mobile-nav-link {
    color: white;
    font-size: 1.1rem;
    display: block;
    padding: 8px 0;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image {
    order: -1;
    margin-bottom: 30px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  section {
    padding: 40px 0;
  }
  
  .hero-section {
    text-align: center;
    padding-top: 100px;
    min-height: 60vh;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
    margin: 0 auto 2rem;
  }
  
  .testimonials-grid, .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .cookie-popup {
    flex-direction: column;
    padding: 15px;
  }
  
  .cookie-popup p {
    margin-bottom: 15px;
    padding-right: 0;
    text-align: center;
  }
}

/* Intersection Observer Animation Trigger */
.reveal {
  animation-play-state: running !important;
} 