/* ============================================
   GEO-DASST — Portfolio Stylesheet
   Palette extracted from reference image:
   Deep Navy / Teal dark backgrounds,
   Cyan-Turquoise accents, white text.
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Backgrounds */
  --bg-deep:       #071525;
  --bg-primary:    #0A192F;
  --bg-secondary:  #0B2435;
  --bg-alt:        #0D2D45;
  --bg-card:       rgba(13, 45, 69, 0.55);

  /* Accents */
  --accent-cyan:   #00D4FF;
  --accent-teal:   #00BFA6;
  --accent-green:  #00E676;
  --gradient-accent: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));

  /* Text */
  --text-white:    #FFFFFF;
  --text-light:    #CBD5E1;
  --text-muted:    #8892A4;

  /* Effects */
  --glass-bg:      rgba(11, 36, 53, 0.60);
  --glass-border:  rgba(0, 212, 255, 0.15);
  --glass-blur:    16px;
  --shadow-card:   0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-soft:   0 4px 20px rgba(0, 0, 0, 0.25);
  --radius:        16px;
  --radius-sm:     10px;

  /* Layout */
  --header-h:      70px;
  --container-max:  1200px;

  /* Transition */
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 90%;
  max-width: var(--container-max);
  margin-inline: auto;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(7, 21, 37, 0.70);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.08);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.header.scrolled {
  background: rgba(7, 21, 37, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(0, 212, 255, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo-img {
  height: 42px;
  width: auto;
  transition: transform 0.3s var(--ease);
}
.nav__logo-img:hover { transform: scale(1.05); }

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-light);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: width 0.35s var(--ease);
}

.nav__link:hover {
  color: var(--accent-cyan);
}
.nav__link:hover::after {
  width: 100%;
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text-white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- HERO ---------- */
/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    /* 1. Capa superior: Degradado que empieza sutil y se oscurece hacia los servicios/botones */
    linear-gradient(to bottom, rgba(7, 21, 37, 0.3) 0%, rgba(7, 21, 37, 0.85) 75%, var(--bg-primary) 100%),
    /* 2. Capa inferior: Tu imagen de portada */
    url('portada.png') center center / cover no-repeat;
  overflow: hidden;
}

.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-h);
}

.hero__tag {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--accent-teal);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 0.3s forwards;
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 0.5s forwards;
}

.hero__title .accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 0.7s forwards;
}

.hero__cta {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg-deep);
  background: var(--gradient-accent);
  border-radius: 50px;
  letter-spacing: 0.03em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 0.9s forwards;
}

.hero__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.35);
}
/* --- Servicios Destacados en Hero --- */
.hero__services {
  margin-top: 3.5rem;
  opacity: 0;
  /* El delay de 1.1s hace que aparezca justo después del botón principal */
  animation: fadeInUp 0.8s var(--ease) 1.1s forwards;
}

.hero__services-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}

.hero__services-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  max-width: 850px;
  margin: 0 auto;
}

.hero__service-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-light);
  background: rgba(11, 36, 53, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.15);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease);
  cursor: default;
}

.hero__service-tag i {
  color: var(--accent-teal);
}

.hero__service-tag:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.15);
}
/* ---------- WAVE SEPARATORS ---------- */
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.wave svg {
  width: 100%;
  height: 100px;
}

.wave--hero svg path {
  fill: var(--bg-primary);
}

.wave--section svg path {
  fill: var(--bg-alt);
}

.section--alt .wave--section svg path {
  fill: var(--bg-primary);
}

/* ---------- SECTIONS ---------- */
.section {
  position: relative;
  padding: 6rem 0 8rem;
  background: var(--bg-primary);
}

.section--alt {
  background: var(--bg-alt);
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 0.6rem;
}

.section__subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

/* ---------- GRID ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* ---------- GLASSMORPHISM CARD ---------- */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  border-color: rgba(0, 212, 255, 0.3);
}

.card__img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(0, 191, 166, 0.08));
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card__img-placeholder::before {
  content: '';
  position: absolute;
  width: 64px;
  height: 64px;
  border: 2px dashed rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.card__img-label {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  z-index: 1;
}

.card__body {
  padding: 1.5rem;
}

.card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}

.card__badge.badge--dev {
  color: var(--accent-green);
  background: rgba(0, 230, 118, 0.1);
  border-color: rgba(0, 230, 118, 0.2);
}

.card__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- FOOTER & CONTACTO ---------- */
.footer {
  position: relative;
  background: var(--bg-deep);
  padding: 6rem 0 2rem;
  text-align: center;
}

.footer__wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  transform: rotate(180deg);
  overflow: hidden;
}

.footer__wave svg {
  width: 100%;
  height: 80px;
}

.footer__wave svg path {
  fill: var(--bg-primary);
}

.footer__contact {
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 2;
}

.footer__title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.footer__description {
  font-size: 1.1rem;
  color: var(--accent-cyan);
  margin-bottom: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.footer__info {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-light);
  background: rgba(11, 36, 53, 0.60);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s var(--ease);
}

.contact-item i {
  color: var(--accent-green);
  font-size: 1.3rem;
}

.contact-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  color: var(--text-white);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.footer__socials {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(11, 36, 53, 0.60);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
  font-size: 1.3rem;
  transition: all 0.3s var(--ease);
}

.social-icon:hover {
  background: var(--gradient-accent);
  color: var(--bg-deep);
  transform: translateY(-5px) scale(1.05);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.footer__bottom {
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  padding-top: 2rem;
  position: relative;
  z-index: 2;
}

.footer__bottom p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__bottom strong {
  color: var(--accent-cyan);
}

.footer__tagline {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-reveal for cards */
.card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease),
              box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */

/* Tablets */
@media (max-width: 768px) {
  .nav__list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    background: rgba(7, 21, 37, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    padding: 2rem;
    transition: right 0.4s var(--ease);
    z-index: 999;
  }

  .nav__list.open {
    right: 0;
  }

  .nav__link {
    font-size: 1.15rem;
  }

  .nav__toggle {
    display: flex;
    z-index: 1001;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }
}

/* Small phones */
@media (max-width: 480px) {
  :root {
    --header-h: 60px;
  }

  .section {
    padding: 4rem 0 6rem;
  }

  .hero__cta {
    padding: 0.75rem 1.8rem;
    font-size: 0.9rem;
  }

  .card__img-placeholder {
    height: 160px;
  }
}


