/* 
* ryzanthuqor - Servicios de Contabilidad
* Color Palette:
* - Primary: #27384C (Deep Slate Blue)
* - Accent: #F26B6B (Muted Coral Red)
* - Background: #FFF9F4 (Warm White)
* - Highlight: #95D2B3 (Pastel Mint)
* - Text: #2B2B2B (Rich Graphite)
*/

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #27384c;
  --accent: #f26b6b;
  --background: #fff9f4;
  --highlight: #95d2b3;
  --text: #2b2b2b;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --mid-gray: #e0e0e0;
  --border-radius: 12px;
  --box-shadow: 0 8px 16px rgba(39, 56, 76, 0.1);
  --transition: all 0.3s ease;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 20px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(242, 107, 107, 0.2);
}

.btn:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(39, 56, 76, 0.25);
}

.section-title {
  position: relative;
  display: block;
  text-align: center;
  padding-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--accent);
}

/* ===== HEADER STYLES ===== */
.site-header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: lowercase;
  letter-spacing: -1px;
  position: relative;
  padding: 5px 0;
}

.logo a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent);
  transform: scaleX(0.7);
  transform-origin: left;
  transition: var(--transition);
}

.logo a:hover::after {
  transform: scaleX(1);
}

.main-nav ul.menu {
  display: flex;
  list-style: none;
}

.main-nav ul.menu li {
  margin-left: 30px;
}

.main-nav ul.menu li a {
  color: var(--primary);
  font-weight: 600;
  position: relative;
  padding: 5px 0;
}

.main-nav ul.menu li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition);
}

.main-nav ul.menu li a:hover::after,
.main-nav ul.menu li a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-nav ul.menu li a.cta-button {
  background-color: var(--accent);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--border-radius);
}

.main-nav ul.menu li a.cta-button:hover {
  background-color: var(--primary);
}

.main-nav ul.menu li a.cta-button::after {
  display: none;
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
  background-color: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 160px 0 80px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: url("./img/eIawAm.jpg") center center/cover;
  opacity: 0.15;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 30px;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
  animation: fadeInUp 1s 0.2s ease both;
}

.hero .btn {
  animation: fadeInUp 1s 0.4s ease both;
}

/* ===== ABOUT SECTION ===== */
.about {
  background-color: var(--white);
  position: relative;
}

.about-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 500px;
  padding-right: 40px;
}

.about-stats {
  flex: 1 1 400px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.stat-box {
  flex: 1 1 150px;
  background-color: var(--background);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.stat-box:hover {
  transform: translateY(-10px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
}

/* CSS counters animation */
.counter-box {
  position: relative;
}

.counter-box .stat-number {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.counter-box .stat-number::after {
  content: attr(data-target);
  animation: count-up 2s ease-out forwards;
  opacity: 0;
}

.counter-box .stat-number::before {
  content: "0";
  position: absolute;
  left: 0;
  animation: count-up-hide 2s ease-out forwards;
}

.years-counter::after {
  content: attr(data-target) " años";
}

.clients-counter::after {
  content: attr(data-target) " clientes";
}

.projects-counter::after {
  content: attr(data-target) " proyectos";
}

@keyframes count-up {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes count-up-hide {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* ===== SERVICES OVERVIEW ===== */
.services-overview {
  background-color: var(--background);
  text-align: center;
}

.services-intro {
  max-width: 800px;
  margin: 0 auto 50px;
}

/* ===== SERVICES DETAIL ===== */
.services-detail {
  background-color: var(--white);
}

.services-detail .container {
  max-width: 1300px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-card {
  background-color: var(--background);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(39, 56, 76, 0.15);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 30px;
}

.service-content h3 {
  margin-bottom: 15px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}

.testimonial-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-slide {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin: 10px;
  position: relative;
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition);
}

.testimonial-slide:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(39, 56, 76, 0.15);
}

.quote {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.client-info {
  display: flex;
  align-items: center;
}

.client-name {
  font-weight: 700;
  margin-right: 10px;
}

.client-company {
  color: var(--accent);
  font-size: 0.9rem;
}

/* ===== PLANS COMPARISON ===== */
.plans {
  background-color: var(--white);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.plan-card {
  background-color: var(--background);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.plan-card:hover {
  transform: translateY(-10px);
}

.plan-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 30px 20px;
  text-align: center;
}

.plan-name {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--white);
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.plan-billing {
  opacity: 0.8;
  font-size: 0.9rem;
}

.plan-features {
  padding: 30px;
}

.plan-features ul {
  list-style-type: none;
  margin-bottom: 30px;
}

.plan-features ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--mid-gray);
  position: relative;
  padding-left: 30px;
}

.plan-features ul li::before {
  content: "✓";
  color: var(--highlight);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.plan-features ul li.not-included {
  opacity: 0.6;
}

.plan-features ul li.not-included::before {
  content: "✗";
  color: var(--accent);
}

.plan-features .btn {
  width: 100%;
  text-align: center;
}

.plan-card.featured {
  transform: scale(1.05);
  z-index: 2;
}

.plan-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.plan-card.featured .plan-header {
  background-color: var(--accent);
}

.plan-card.featured::before {
  content: "Más Popular";
  position: absolute;
  top: 15px;
  right: -30px;
  background-color: var(--highlight);
  color: var(--primary);
  padding: 5px 30px;
  font-size: 0.8rem;
  font-weight: 700;
  transform: rotate(45deg);
  z-index: 3;
}

/* ===== FAQ SECTION ===== */
.faq {
  background-color: var(--background);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 20px;
  background-color: var(--white);
  color: var(--primary);
  font-weight: 600;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.faq-question a {
  color: var(--primary);
  text-decoration: none;
  display: block;
  width: 100%;
}

.faq-question:hover {
  background-color: var(--light-gray);
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent);
  transition: var(--transition);
}

.faq-item.active .faq-question {
  border-bottom-color: var(--mid-gray);
}

.faq-item.active .faq-question::after {
  content: "-";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 20px;
}

/* ===== CONTACT FORM ===== */
.contact {
  background-color: var(--white);
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--background);
  clip-path: ellipse(70% 100% at 50% 0%);
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-form {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--mid-gray);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background-color: var(--white);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 107, 107, 0.2);
}

select.form-control {
  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='%2327384C' 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;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--mid-gray);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.checkbox-group input[type="checkbox"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.checkbox-group input[type="checkbox"]:checked::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group a {
  color: var(--accent);
  text-decoration: underline;
  margin-left: 5px;
}

.form-submit {
  margin-top: 30px;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.company-description {
  opacity: 0.8;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 10px;
}

.contact-info a {
  color: var(--accent);
}

.footer-links h3,
.footer-services h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.footer-links ul,
.footer-services ul {
  list-style: none;
}

.footer-links ul li,
.footer-services ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: var(--white);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-services ul li {
  color: var(--white);
  opacity: 0.8;
}

.footer-services ul li a {
  color: var(--white);
  opacity: 0.8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-services ul li a:hover {
  opacity: 1;
  color: var(--accent);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary);
  color: var(--white);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner p {
  margin-bottom: 0;
  margin-right: 20px;
}

.cookie-banner button {
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 8px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.cookie-banner button:hover {
  background-color: var(--highlight);
  color: var(--primary);
}

/* ===== POLICY PAGES ===== */
.policy-page {
  padding: 120px 0 80px;
}

.policy-content {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.policy-content h1 {
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  padding-bottom: 20px;
}

.policy-content h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--accent);
}

.policy-content h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  text-align: left;
}

.policy-content h3 {
  font-size: 1.4rem;
  margin: 30px 0 15px;
}

.policy-content p,
.policy-content ul {
  margin-bottom: 20px;
}

.policy-content ul {
  margin-left: 25px;
}

.policy-content ul li {
  margin-bottom: 10px;
}

/* ===== THANK YOU PAGE ===== */
.thank-you-page {
  padding: 160px 0 80px;
  text-align: center;
}

.thank-you-content {
  background-color: var(--white);
  padding: 60px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-width: 700px;
  margin: 0 auto;
}

.thank-you-content h1 {
  margin-bottom: 30px;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--highlight);
  margin-bottom: 30px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatAnimation {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .plan-card.featured {
    transform: scale(1);
  }

  .plan-card.featured:hover {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .hero {
    padding: 140px 0 60px;
  }

  .about-text {
    padding-right: 0;
    margin-bottom: 40px;
  }

  /* Mobile Menu */
  .menu-icon {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
  }

  .menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
  }

  .menu-icon span:nth-child(1) {
    top: 0px;
  }

  .menu-icon span:nth-child(2) {
    top: 8px;
  }

  .menu-icon span:nth-child(3) {
    top: 16px;
  }

  .menu-toggle:checked + .menu-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
  }

  .menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
  }

  .menu-toggle:checked + .menu-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
  }

  .main-nav ul.menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: var(--transition);
  }

  .menu-toggle:checked ~ ul.menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav ul.menu li {
    margin: 15px 0;
  }

  .testimonial-slide {
    padding: 30px;
  }

  .contact-form {
    padding: 30px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 120px 0 50px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .stat-box {
    flex: 1 1 100%;
  }

  .testimonial-slide {
    padding: 20px;
    margin: 10px;
  }

  .contact-form {
    padding: 20px;
  }

  .footer-content {
    gap: 30px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner p {
    margin-right: 0;
    margin-bottom: 15px;
  }
}
