/* ROOT VARIABLES & RESET */
:root {
  --primary: #0284C7; /* Blue related to KBody */
  --primary-dark: #0369A1;
  --primary-light: #E0F2FE;
  --secondary: #0D9488; /* Teal / Greenish related to KBody */
  --accent: #38BDF8;
  --dark: #0F172A;
  --gray: #475569;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --wa: #25D366;
  
  --font-main: 'Outfit', sans-serif;
  
  --transition: all 0.3s ease;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.bg-light { background-color: var(--light); }

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  color: var(--dark);
  line-height: 1.2;
  font-weight: 700;
}

p {
  color: var(--gray);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.subtitle {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* HEADER & NAV */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo img {
  height: 50px;
  object-fit: contain;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.mobile-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--dark);
  border-radius: 3px;
  transition: var(--transition);
}

/* HERO CAROUSEL */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.slide-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 1s forwards 0.5s;
}

.slide-content h1 {
  color: var(--white);
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.slide-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.swiper-button-next, .swiper-button-prev {
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.swiper-pagination-bullet {
  background: var(--white);
  opacity: 0.6;
}
.swiper-pagination-bullet-active {
  background: var(--primary);
  opacity: 1;
}
.swiper-slide {
  opacity: 0 !important;
  transition: opacity 0.6s ease;
}

.swiper-slide-active {
  opacity: 1 !important;
}
@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SECTIONS COMMON */
.section {
  padding: 100px 0;
  overflow: hidden;
}

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

.layout-grid.reverse {
  direction: rtl;
}
.layout-grid.reverse > * {
  direction: ltr;
}

/* PRESENTACION / ABOUT */
.feature-list {
  list-style: none;
  margin-top: 2rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-weight: 500;
  color: var(--dark);
}

.icon-check {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  position: relative;
}

.icon-check::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
}

.content-image {
  position: relative;
}

.content-image img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.content-image .portrait {
  object-fit: cover;
  aspect-ratio: 4/5;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 20px;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 15px;
  animation: float 6s ease-in-out infinite;
}

.experience-badge .number {
  font-size: 2.5rem;
  font-weight: 700;
}

.experience-badge .text {
  font-size: 1rem;
  line-height: 1.2;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.tag {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* SERVICES */
.section-desc {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

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

.service-card .icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* CONTACTO */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-info {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 1.5rem;
}

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

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: block;
}

/* FLOATING WA */
.floating-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--wa);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: var(--transition);
}

.floating-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* FOOTER */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 3rem 0;
}

.footer p {
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* ANIMATIONS (Scroll Reveal) */
.reveal {
  opacity: 0;
  transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translate(0, 0);
}

.fade-up { transform: translateY(50px); }
.fade-left { transform: translateX(-50px); }
.fade-right { transform: translateX(50px); }

/* RESPONSIVE */
@media (max-width: 992px) {
  .layout-grid, .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .layout-grid.reverse > * {
    direction: ltr;
  }
  
  .slide-content h1 {
    font-size: 3rem;
  }
  
  .experience-badge {
    bottom: 20px;
    left: 20px;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }
  
  .nav-menu.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .nav-list {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    text-align: center;
  }
  
  .slide-content h1 {
    font-size: 2.2rem;
  }
  
  .contact-info {
    padding: 2rem;
  }
  
  .floating-wa {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  
  .floating-wa svg {
    width: 24px;
    height: 24px;
  }
}






.microcopy {
  margin-top: 14px;
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.6;
}




#testimonios .service-card {
  text-align: left;
}

#testimonios .service-card p {
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 20px;
}

#testimonios .service-card h3 {
  font-size: 1rem;
  opacity: 0.8;
}

#testimonios .icon {
  font-size: 1.4rem;
  margin-bottom: 15px;
}