/* ============================================
   SEDI.PE - CORPORATE COLORS
   Azul Profundo + Cian + Amarillo
   ============================================ */

:root {
  /* Updated to corporate color palette */
  --primary-color: #0f3a7d;
  --primary-dark: #0a2654;
  --secondary-color: #ffb81c;
  --accent-color: #00d4ff;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 1.875rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--text-dark);
  border: 2px solid var(--secondary-color);
  font-weight: 700;
}

.btn-secondary:hover {
  background: transparent;
  color: var(--secondary-color);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--border-color);
}

.btn-ghost:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

#header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 16px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

#header.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#header .logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#header .logo a {
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

#header .logo span {
  color: var(--secondary-color);
}

.nav-menu > ul {
  display: flex;
  gap: 5px;
  list-style: none;
}

.nav-menu > ul > li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}



.nav-menu a:hover,
.nav-menu .active > a {
  color: var(--primary-color);
}

/* Dropdown Menu */
.nav-menu .drop-down ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 99;
  margin-top: 15px;
  border-top: 4px solid var(--secondary-color);
  overflow: hidden;
}

.nav-menu .drop-down:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .drop-down ul li {
  list-style: none;
}

.nav-menu .drop-down ul a {
  padding: 14px 20px;
  font-size: 14px;
  text-transform: none;
  font-weight: 500;
  color: var(--text-dark);
  display: block;
  transition: var(--transition);
}

.nav-menu .drop-down ul a:hover {
  background: var(--light-bg);
  color: var(--primary-color);
  padding-left: 24px;
}

/* ============================================
   HERO SECTION
   ============================================ */

#hero {
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
  margin-top: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  opacity: 1;
}

#hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 184, 28, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

#hero .carousel-item {
  background-size: cover;
  background-position: center;
  height: 100%;
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#hero .carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 58, 125, 0.75);
  z-index: 1;
}

#hero .carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  z-index: 2;
  width: 100%;
}

#hero .carousel-content {
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s ease;
}

#hero .carousel-content h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}

#hero .carousel-content h2 span {
  color: var(--secondary-color);
  display: block;
}

#hero .carousel-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

#hero .btn-get-started {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--secondary-color), #ffa500);
  color: var(--text-dark);
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  font-size: 14px;
}

#hero .btn-get-started:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Carousel Controls */
#hero .carousel-control-prev,
#hero .carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  transition: var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

#hero .carousel-control-prev:hover,
#hero .carousel-control-next:hover {
  background: var(--secondary-color);
  opacity: 1;
  border-color: var(--secondary-color);
}

#hero .carousel-indicators {
  bottom: 30px;
}

#hero .carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  margin: 0 6px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

#hero .carousel-indicators li.active {
  background: var(--secondary-color);
  width: 30px;
  border-radius: 6px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 80px 0;
}

.section-bg {
  background: var(--light-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
  margin-bottom: 15px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-us {
  background: var(--white);
}

.about-us h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.about-us p {
  line-height: 1.9;
  color: var(--text-light);
}

/* ============================================
   SERVICES / ICON BOXES
   ============================================ */

.servicios .icon-box {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border-top: 4px solid transparent;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.servicios .icon-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 58, 125, 0.05), rgba(255, 184, 28, 0.05));
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.servicios .icon-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--secondary-color);
}

.servicios .icon-box:hover::before {
  opacity: 1;
}

.servicios .icon-box > * {
  position: relative;
  z-index: 1;
}

.servicios .icon-box .icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 40px;
  color: var(--white);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.servicios .icon-box:hover .icon {
  background: linear-gradient(135deg, var(--secondary-color), #ffa500);
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-lg);
}

.servicios .icon-box h4 {
  margin: 20px 0 15px;
  font-size: 1.3rem;
}

.servicios .icon-box h4 a {
  color: var(--text-dark);
  transition: var(--transition);
}

.servicios .icon-box h4 a:hover {
  color: var(--primary-color);
}

.servicios .icon-box p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* ============================================
   PRICING
   ============================================ */

.precios .box {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.precios .box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.precios .box:hover::before {
  transform: scaleX(1);
}

.precios .box.featured {
  border-color: var(--secondary-color);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.precios .box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.precios .box h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.precios .box h4 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 20px 0;
}

.precios .box h4 sup {
  font-size: 1.5rem;
}

.precios .box h4 span {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 400;
}

.precios .box ul {
  list-style: none;
  margin: 30px 0;
  text-align: left;
}

.precios .box ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.95rem;
}

.precios .box ul li::before {
  content: "✓";
  color: var(--success-color);
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2rem;
}

.precios .box ul li.na {
  color: #cbd5e1;
}

.precios .box ul li.na::before {
  content: "✕";
  color: #cbd5e1;
}

.precios .btn-wrap {
  margin-top: 30px;
}

.precios .btn-buy {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.precios .btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-lg);
  font-size: 20px;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--secondary-color), #ffa500);
  color: var(--text-dark);
  transform: translateY(-5px);
}

/* ============================================
   FOOTER
   ============================================ */

#footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 60px 0 20px;
}

#footer .footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
  margin-bottom: 40px;
}

#footer h3,
#footer h4 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

#footer ul {
  list-style: none;
}

#footer ul li {
  margin-bottom: 10px;
}

#footer ul a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: inline-block;
}

#footer ul a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

#footer .social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

#footer .social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--white);
  font-size: 18px;
}

#footer .social-links a:hover {
  background: var(--secondary-color);
  color: var(--text-dark);
  transform: translateY(-3px);
}

#footer .credits {
  text-align: center;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

#footer .copyright {
  margin-bottom: 10px;
}

/* ============================================
   BREADCRUMBS
   ============================================ */

#breadcrumbs {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  padding: 40px 0;
  margin-top: 72px;
}

#breadcrumbs h2 {
  color: var(--white);
  margin-bottom: 0;
}

#breadcrumbs ol {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
}

#breadcrumbs ol li {
  display: flex;
  align-items: center;
}

#breadcrumbs ol li::after {
  content: "/";
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.5);
}

#breadcrumbs ol li:last-child::after {
  content: "";
  margin: 0;
}

#breadcrumbs ol a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

#breadcrumbs ol a:hover {
  color: var(--secondary-color);
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-list {
  list-style: none;
}

.faq-list li {
  margin-bottom: 20px;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-list li:hover {
  box-shadow: var(--shadow-md);
}

.faq-list a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.faq-list a:hover {
  color: var(--primary-color);
  background: var(--light-bg);
}

.faq-list .icon-help {
  font-size: 24px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.faq-list .icon-show,
.faq-list .icon-close {
  margin-left: auto;
  transition: var(--transition);
}

.faq-list a.collapsed .icon-show {
  display: block;
}

.faq-list a.collapsed .icon-close {
  display: none;
}

.faq-list a:not(.collapsed) .icon-show {
  display: none;
}

.faq-list a:not(.collapsed) .icon-close {
  display: block;
}

.faq-list .collapse {
  padding: 0 20px 20px;
  background: var(--light-bg);
}

.faq-list p {
  margin: 0;
  color: var(--text-light);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.4rem;
  }
  h4 {
    font-size: 1.2rem;
  }

  #header {
    padding: 12px 0;
  }



  #hero {
    margin-top: 60px;
    height: 80vh;
  }

  #hero .carousel-content h2 {
    font-size: 2rem;
  }

  #hero .carousel-content p {
    font-size: 1rem;
  }

  section {
    padding: 50px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .precios .box.featured {
    transform: scale(1);
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.1rem;
  }

  #hero .carousel-content h2 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 12px;
  }

  .servicios .icon-box {
    padding: 30px 20px;
  }

  #breadcrumbs h2 {
    font-size: 1.5rem;
  }

  .precios .box {
    padding: 30px 20px;
  }

  .precios .box h4 {
    font-size: 2rem;
  }
}
