/* 
* Main Stylesheet for kaironovaent
* Colors:
* - Primary: #23A393 (Aquatic Jade)
* - Secondary: #FE8F48 (Vibrant Apricot)
* - Accent: #39375B (Midnight Indigo)
* - Light: #F4F6F7 (Cloud Gray)
* - Dark: #1B1B2F (Deep Graphite)
*/

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px; /* Espacio para el encabezado fijo */
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f6f7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #23a393;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #1a7a6d;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #39375b;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
  text-align: center;
}

h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #fe8f48;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

section {
  padding: 80px 0;
}

section:target::before {
  content: "";
  display: block;
  height: 120px; /* Misma altura que scroll-padding-top */
  margin-top: -120px; /* Negativo de la altura */
  visibility: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: #23a393;
  color: white;
}

.btn-primary:hover {
  background-color: #1a7a6d;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(26, 122, 109, 0.2);
}

.btn-secondary {
  background-color: #fe8f48;
  color: white;
}

.btn-secondary:hover {
  background-color: #e57935;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(229, 121, 53, 0.2);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background-color: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: #23a393;
  text-transform: lowercase;
}

.main-nav .menu-toggle {
  display: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav ul li {
  margin-left: 30px;
}

.main-nav ul li a {
  color: #39375b;
  font-weight: 600;
  position: relative;
}

.main-nav ul li a:hover {
  color: #23a393;
}

.main-nav ul li a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #23a393;
  transition: width 0.3s ease;
}

.main-nav ul li a:hover:after {
  width: 100%;
}

.main-nav ul li a.cta-button {
  color: white;
  background-color: #fe8f48;
  padding: 10px 20px;
  border-radius: 50px;
}

.main-nav ul li a.cta-button:hover {
  background-color: #e57935;
}

.main-nav ul li a.cta-button:after {
  display: none;
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  background: linear-gradient(
      135deg,
      rgba(27, 27, 47, 0.8) 0%,
      rgba(57, 55, 91, 0.8) 100%
    ),
    url("./img/EXD4Xz.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 20px;
  text-transform: lowercase;
}

.hero .tagline {
  font-size: 1.5rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.animated-text {
  display: inline-block;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s forwards;
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  animation: slideInRight 1s forwards;
  animation-delay: 0.3s;
}

/* Services Section */
.services {
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 30px;
  border-radius: 10px;
  background-color: #f4f6f7;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  border-bottom-color: #23a393;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  margin-bottom: 20px;
  color: #23a393;
}

/* Why Choose Us Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-item {
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-icon {
  margin-bottom: 15px;
  color: #fe8f48;
}

.benefit-item:hover {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Testimonials Section */
.testimonials {
  background-color: #39375b;
  color: white;
}

.testimonials h2 {
  color: white;
}

.testimonials h2:after {
  background-color: #fe8f48;
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  display: none;
  padding: 20px;
  text-align: center;
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.8s forwards;
}

.testimonial-content {
  position: relative;
  padding: 30px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}

.testimonial-content:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-top: 15px solid rgba(255, 255, 255, 0.1);
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 0;
}

.client-info {
  margin-top: 30px;
}

.client-info h4 {
  color: #fe8f48;
  margin-bottom: 5px;
}

.testimonial-controls {
  margin-top: 30px;
  text-align: center;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: #fe8f48;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 20px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
}

.faq-question a {
  color: #39375b;
  font-weight: 600;
  display: block;
}

.faq-question:hover a {
  color: #23a393;
}

.faq-answer {
  padding: 0 20px 20px;
  background-color: #fff;
  border-top: 1px solid #eee;
}

/* Blog Section */
.blog {
  background-color: white;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background-color: #f4f6f7;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: 20px;
}

.blog-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  font-weight: 600;
  margin-top: 10px;
  color: #23a393;
  position: relative;
}

.read-more:after {
  content: "→";
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover:after {
  transform: translateX(5px);
}

/* Contact Section */
.contact {
  background-color: #f4f6f7;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.contact-info ul {
  list-style: none;
}

.contact-info li {
  margin-bottom: 15px;
}

.contact-form {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #39375b;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #23a393;
  box-shadow: 0 0 0 3px rgba(35, 163, 147, 0.2);
}

.form-group.checkbox {
  display: flex;
  align-items: flex-start;
}

.form-group.checkbox input {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

/* Footer */
.site-footer {
  background-color: #1b1b2f;
  color: white;
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: #fe8f48;
}

.contact-info,
.policy-links {
  list-style: none;
}

.contact-info li,
.policy-links li {
  margin-bottom: 10px;
}

.contact-info a:hover,
.policy-links a:hover {
  color: #fe8f48;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #999;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background-color: #39375b;
  color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
  transition: all 0.3s ease;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 100px);
}

.cookie-visible {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%);
}

.cookie-content {
  text-align: center;
}

.cookie-content p {
  margin-bottom: 15px;
}

#accept-cookies {
  background-color: #fe8f48;
  color: white;
}

#accept-cookies:hover {
  background-color: #e57935;
}

/* Thank You Page */
.thank-you {
  padding: 180px 0 100px;
  text-align: center;
}

.thank-you-content {
  max-width: 600px;
  margin: 0 auto;
  border: 2px solid #23a393;
  border-radius: 15px;
  padding: 40px;
  background-color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #23a393;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-width: 3;
  stroke: #23a393;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

/* Policy Pages */
.policy-page {
  padding: 150px 0 80px;
}

.policy-page h1 {
  text-align: center;
}

.policy-content {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.policy-content h2 {
  font-size: 1.5rem;
  margin-top: 30px;
  text-align: center;
}

.policy-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.policy-footer {
  text-align: center;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

/* Responsive */
@media screen and (max-width: 991px) {
  section {
    padding: 60px 0;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .about-content {
    flex-direction: column;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 767px) {
  .hero {
    padding: 150px 0 80px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .tagline {
    font-size: 1.2rem;
  }

  .main-nav .menu-toggle {
    display: block;
    font-weight: 600;
    color: #39375b;
  }

  .main-nav ul {
    display: none;
  }

  .main-nav ul.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
  }

  .main-nav ul.open li {
    margin: 10px 0;
  }

  .footer-grid {
    gap: 30px;
  }
}

@media screen and (max-width: 575px) {
  section {
    padding: 50px 0;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .services-grid,
  .benefits-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .policy-content {
    padding: 20px;
  }
}
