/* ===================== RESET ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --primary: #1f6fff;
  --primary-dark: #0f56d6;
  --secondary: #ff8b2c;
  --dark: #101828;
  --text: #374151;
  --muted: #6b7280;
  --white: #ffffff;
  --light: #f6f9ff;
  --light-2: #eef4ff;
  --border: #dbe4f3;
  --shadow: 0 12px 30px rgba(31, 111, 255, 0.12);
  --shadow-hover: 0 20px 40px rgba(31, 111, 255, 0.18);
  --radius: 22px;
  --radius-sm: 16px;
  --transition: all 0.35s ease;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f9fbff 0%, #f1f6ff 100%);
  color: var(--dark);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(92%, 1280px);
  margin: auto;
}

.section {
  padding: 90px 0;
}

/* ===================== HEADER ===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(219, 228, 243, 0.8);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 20px;
}

img {
  width: 50%;
  border-radius: 5px;
}

/*
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  font-weight: 800;
  font-size: 1.45rem;
}
*/
/*
.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: var(--shadow);
}
*/

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav a {
  color: var(--text);
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 12px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a:hover {
  background: var(--light-2);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-nav {
  background: linear-gradient(135deg, var(--secondary), #ff9d4f);
  color: white !important;
  box-shadow: 0 12px 24px rgba(255, 139, 44, 0.25);
}

.btn-nav:hover {
  background: linear-gradient(135deg, #ff7d13, #ff9d4f);
  transform: translateY(-3px);
}

.menu-toggle {
  display: none;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: 70px 0 40px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-badge,
.contact-badge,
.section-title span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eaf2ff;
  color: var(--primary);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 4vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 18px;
  font-weight: 800;
  color: var(--dark);
}

.hero-text p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 600px;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 14px;
  font-weight: 700;
  transition: var(--transition);
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow);
}

.primary-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.secondary-btn {
  background: white;
  color: var(--dark);
  border: 1px solid var(--border);
}

.secondary-btn:hover {
  transform: translateY(-4px);
  background: var(--light);
  box-shadow: var(--shadow);
}

.hero-image {
  position: relative;
}

.hero-card {
  background: linear-gradient(135deg, #dce8ff, #ffffff);
  border-radius: 30px;
  padding: 18px;
  box-shadow: var(--shadow-hover);
  position: relative;
}

.hero-card img {
  border-radius: 24px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* decoraciones */
.shape {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.shape-left {
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, var(--primary), #3f6db2);
  left: -80px;
  top: 220px;
  opacity: 0.16;
}

.shape-right {
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, var(--secondary), #c9630a);
  right: -100px;
  bottom: 30px;
  opacity: 0.16;
}

.dot {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.dot-1 {
  width: 20px;
  height: 20px;
  background: var(--secondary);
  left: 90px;
  top: 440px;
}

.dot-2 {
  width: 14px;
  height: 14px;
  background: var(--primary);
  right: 180px;
  top: 150px;
}

/* ===================== TITLES ===================== */
.section-title {
  text-align: center;
  margin-bottom: 45px;
}

.section-title h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--dark);
}

/* ===================== CAROUSEL ===================== */
.carousel-wrapper {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 6px 18px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: white;
  color: var(--primary);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 5;
  transition: var(--transition);
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.08);
  background: var(--primary);
  color: white;
}

.carousel-btn.prev {
  left: -18px;
}

.carousel-btn.next {
  right: -18px;
}

/* ===================== SERVICES ===================== */
.service-card {
  flex: 0 0 290px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eaf2ff, #fff3e7);
  font-size: 2rem;
  color: var(--secondary);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: rotate(-6deg) scale(1.08);
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.55rem;
  margin-bottom: 18px;
}

.service-card p {
  color: var(--text);
  margin-bottom: 8px;
  font-size: 1rem;
}

/* ===================== PORTFOLIO ===================== */
.project-card {
  flex: 0 0 320px;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.project-image {
  overflow: hidden;
  height: 210px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-content {
  padding: 22px;
}

.project-content h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.project-content a {
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: var(--transition);
}

.project-content a:hover {
  color: var(--secondary);
  transform: translateX(4px);
}

/* ===================== PRICING ===================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.price-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.price-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.price-card i {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 18px;
}

.price-card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.price-card .price {
  font-size: 2.2rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 18px;
}

.price-card ul {
  text-align: left;
  margin-bottom: 24px;
}

.price-card ul li {
  margin-bottom: 12px;
  color: var(--text);
  display: flex;
  gap: 10px;
  align-items: center;
}

.price-card ul li i {
  font-size: 1rem;
  margin: 0;
  color: var(--primary);
}

.featured {
  border: 2px solid var(--primary);
  transform: scale(1.03);
}

/* ===================== BLOG ===================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.blog-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.blog-card i {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 18px;
}

.blog-card h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.blog-card p {
  color: var(--text);
  line-height: 1.7;
}

/* ===================== CONTACT ===================== */

.campo-oculto {
  display: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--text);
  font-weight: 600;
}

.contact-item i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--light-2);
  color: var(--primary);
}

.contact-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 111, 255, 0.1);
}

/* ===================== FOOTER ===================== */
.footer {
  background: linear-gradient(135deg, #0d1f4d, #08152f);
  color: white;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 70px 0 40px;
}

.footer-brand h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 22px;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: white;
  transition: var(--transition);
}

.socials a:hover {
  background: var(--secondary);
  transform: translateY(-4px);
}

.footer-links h4 {
  margin-bottom: 18px;
  font-size: 1.15rem;
}

.footer-links a {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,0.82);
  margin-bottom: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 18px;
  color: rgba(255,255,255,0.7);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .hero-grid,
  .contact-grid,
  .pricing-grid,
  .blog-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    text-align: center;
  }

  .hero-text p {
    margin-inline: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .featured {
    transform: none;
  }
}

@media (max-width: 980px) {
  .nav {
    position: absolute;
    top: 82px;
    right: 20px;
    width: min(92vw, 360px);
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
    border-radius: 20px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    display: none;
  }

  .nav.active {
    display: flex;
    animation: fadeMenu 0.3s ease;
  }

  .nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .menu-toggle {
    display: block;
  }

  .carousel-btn.prev {
    left: -8px;
  }

  .carousel-btn.next {
    right: -8px;
  }
}

@keyframes fadeMenu {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-card {
    padding: 12px;
  }

  .carousel-btn {
    width: 42px;
    height: 42px;
  }

  .service-card {
    flex: 0 0 84%;
  }

  .project-card {
    flex: 0 0 85%;
  }

  .shape-left,
  .shape-right,
  .dot {
    display: none;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.1rem;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .service-card,
  .project-card {
    flex: 0 0 92%;
  }

  .contact-form {
    padding: 22px;
  }
}