/* Reconocerme - Estilos principales */

:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #93c5fd;
  --secondary-color: #475569;
  --accent-color: #059669;
  --text-primary: #334155;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --background-light: #f8fafc;
  --background-soft: #f1f5f9;
  --white: #ffffff;
  --border-light: #e2e8f0;
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.06);
  --shadow-soft: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px rgb(0 0 0 / 0.05);
  --border-radius: 1rem;
  --gradient-primary: linear-gradient(135deg, #2563eb, #059669);
  --gradient-soft: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--white);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-image {
  width: 230px;
  height: 80px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(214deg) brightness(97%) contrast(87%);
  transition: filter 0.3s ease;
}

.logo:hover .logo-image {
  filter: brightness(0) saturate(100%) invert(35%) sepia(83%) saturate(2878%) hue-rotate(214deg) brightness(107%) contrast(97%);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.cta-button {
  background: linear-gradient(135deg, #ff6b35, #ff8e53, #ffa726);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
  background: linear-gradient(135deg, #ff5722, #ff7043, #ff9800);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  background: linear-gradient(
      135deg,
      rgba(99, 102, 241, 0.8) 0%,
      rgba(6, 182, 212, 0.7) 100%
    );
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80");
  background-position: center;
  background-size: cover;
  z-index: -1;
  will-change: transform;
}

.hero-content {
  max-width: 600px;
  padding: 0 2rem;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Credentials Section */
.credentials {
  background: var(--background-soft);
  padding: 3rem 0;
  border-top: 1px solid var(--border-light);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.credential-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.credential-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.credential-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.credential-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* About Section */
.section {
  padding: 5rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.about-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.schedule {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary-color);
}

.schedule h4 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.schedule-item:last-child {
  border-bottom: none;
}

/* Services Section */
.services {
  background: var(--background-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--background-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.service-image img.loading {
  opacity: 0;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.price {
  font-size: 1.3rem;
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.service-features {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.service-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.feature-icon {
  color: var(--accent-color);
  font-size: 0.8rem;
}

/* Service Details Carousel */
.service-details {
  margin-top: 4rem;
}

.carousel-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 70px;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.carousel-slide {
  display: none;
  padding: 3rem;
  text-align: center;
  min-height: 400px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.carousel-slide.active {
  display: flex;
}

.slide-image {
  width: 150px;
  height: 150px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--background-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.slide-image img.loading {
  opacity: 0;
}

.carousel-slide h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.carousel-slide p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(99, 102, 241, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-btn.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.carousel-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  color: var(--primary-color);
  font-weight: bold;
  z-index: 10;
}

.carousel-arrows:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* Testimonials Section */
.testimonials {
  background: var(--white);
}

.testimonials-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 0 2rem;
}

.testimonials-carousel-container {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.testimonials-vertical-slider {
  position: relative;
  height: 300%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-page {
  position: relative;
  height: 33.333%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding: 1rem 0;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  border-left: 4px solid var(--accent-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  flex-shrink: 0;
}

.testimonial-info h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.testimonial-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.testimonial-rating {
  margin-left: auto;
  color: #fbbf24;
  font-size: 1.1rem;
}

.testimonials-controls {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  gap: 1rem;
}

.testimonial-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-arrow:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.testimonial-arrow:active {
  transform: scale(0.95);
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  margin-top: 0;
  color: var(--accent-color);
  align-self: flex-start;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    justify-content: start;
    padding-top: 2rem;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .logo-image {
    width: 125px;
    height: 50px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }


  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .carousel-wrapper {
    padding: 0 20px;
  }

  .carousel-arrows {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .carousel-prev {
    left: -10px;
  }

  .carousel-next {
    right: -10px;
  }

  .carousel-slide {
    padding: 2rem 1rem;
    min-height: 350px;
  }

  .testimonials-carousel-wrapper {
    padding: 0 1rem;
  }

  .testimonials-carousel-container {
    height: 300px;
  }

  .testimonials-controls {
    right: -35px;
  }

  .testimonial-arrow {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .testimonial-page {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .testimonial-card {
    padding: 1.5rem 1rem;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .carousel-wrapper {
    padding: 0;
  }

  .carousel-arrows {
    position: relative;
    margin: 1rem auto;
    display: inline-block;
  }

  .carousel-prev {
    left: auto;
    margin-right: 1rem;
  }

  .carousel-next {
    right: auto;
  }

  .carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
  }

  .credentials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .credential-item {
    padding: 1rem;
  }

  .testimonials-carousel-wrapper {
    padding: 0;
  }

  .testimonials-carousel-container {
    height: auto;
  }

  .testimonials-controls {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin-top: 1rem;
    gap: 2rem;
  }

  .testimonials-vertical-slider {
    height: auto;
    position: static;
  }

  .testimonial-page {
    grid-template-columns: 1fr;
    gap: 1rem;
    height: auto;
    position: static;
    padding: 0;
  }


  .testimonial-card {
    padding: 2rem 1.5rem;
    margin: 0;
    min-height: auto;
  }
}