/* ============================================================
   style.css — ColDe-Fi Coming Soon
   ============================================================ */


/* ------------------------------------------------------------
   1. VARIABLES (Design Tokens)
      Define colors, fonts, and spacing in one place.
      Change a variable here and it updates everywhere.
   ------------------------------------------------------------ */

:root {
  --bg-deep:      #040d1a;       /* Darkest background */
  --bg-mid:       #071428;       /* Mid background */
  --accent:       #7dd3fc;       /* Sky blue — main accent color */
  --accent-glow:  rgba(125, 211, 252, 0.18);
  --text:         #eef2ff;       /* Near-white text */
  --muted:        rgba(238, 242, 255, 0.60);
  --card-bg:      rgba(255, 255, 255, 0.05);
  --card-border:  rgba(255, 255, 255, 0.10);
  --radius:       16px;
  --max-width:    860px;
}


/* ------------------------------------------------------------
   2. RESET & BASE
      Remove default browser styles and set a clean foundation.
   ------------------------------------------------------------ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;    /* Smooth scrolling when jumping to sections */
}

body {
  background-color: var(--bg-deep);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;         /* Prevent horizontal scroll */
}

a {
  color: var(--accent);
  text-decoration: none;
}


/* ------------------------------------------------------------
   3. LANGUAGE TOGGLE
   ------------------------------------------------------------ */

.lang-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 99px;
  padding: 4px;
  backdrop-filter: blur(12px);
  width: fit-content;
  margin: 0 auto 40px;
}

.lang-btn {
  background: transparent;
  border: none;
  border-radius: 99px;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  background: rgba(125, 211, 252, 0.18);
  color: var(--accent);
}

.lang-btn:hover:not(.active) {
  color: var(--text);
}


/* ------------------------------------------------------------
   4. PARTICLE CANVAS
   ------------------------------------------------------------ */

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}




/* ------------------------------------------------------------
   5. MAIN CONTENT
      Sits on top of the map and particles (z-index: 2).
      Centered column layout with max width.
   ------------------------------------------------------------ */

main {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 80px;                  /* Space between sections */
}


/* ------------------------------------------------------------
   6. SCROLL REVEAL ANIMATION
      Elements with .reveal start invisible and slightly lower.
      When .visible is added by main.js, they animate in.
   ------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ------------------------------------------------------------
   7. HERO SECTION
   ------------------------------------------------------------ */

#hero {
  text-align: center;
  padding-top: 40px;
}

.kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(125, 211, 252, 0.30);
  border-radius: 99px;        /* Pill shape */
  background: rgba(125, 211, 252, 0.08);
}

.brand-title {
  font-size: clamp(3.5rem, 10vw, 7rem);   /* Scales with screen width */
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;   /* Gradient text effect */
  background-clip: text;
}

.tagline {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ------------------------------------------------------------
   8. SECTION TITLES & DESCRIPTIONS
   ------------------------------------------------------------ */

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.15;
}

.section-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 28px;
}


/* ------------------------------------------------------------
   9. CARDS (Qué hacemos section)
   ------------------------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: 1fr;   /* Single column on mobile */
  gap: 16px;
  margin-top: 32px;
}

/* On wider screens, switch to 3 columns */
@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  backdrop-filter: blur(12px);          /* Frosted glass effect */
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);          /* Lift on hover */
  border-color: rgba(125, 211, 252, 0.30);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
  color: var(--accent);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}


/* ------------------------------------------------------------
   10. PRIMER PROYECTO — TEASER SECTION
   ------------------------------------------------------------ */

#primer-proyecto {
  text-align: center;
}

#primer-proyecto .section-desc {
  margin: 0 auto 28px;
}

.teaser-badge {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 99px;
  border: 1px dashed rgba(125, 211, 252, 0.40);
  background: rgba(125, 211, 252, 0.06);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  animation: pulse-badge 3s ease-in-out infinite;  /* Subtle breathing animation */
}

/* Keyframe: the badge gently glows in and out */
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0px rgba(125, 211, 252, 0); }
  50%       { box-shadow: 0 0 18px rgba(125, 211, 252, 0.25); }
}


/* ------------------------------------------------------------
   11. FORM SECTION
   ------------------------------------------------------------ */

#registro {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 40px 36px;
  backdrop-filter: blur(14px);
}

@media (max-width: 600px) {
  #registro { padding: 28px 20px; }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;   /* Two columns on wider screens */
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  margin-bottom: 16px;
}

label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
}

label .optional {
  font-weight: 400;
  font-size: 0.80rem;
  opacity: 0.6;
  margin-left: 4px;
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.97rem;
  font-family: inherit;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: rgba(238, 242, 255, 0.30);
}

/* Highlight the active field */
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.10);
}

/* Fix the default dark arrow on selects */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237dd3fc' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Fix default white background on select options */
select option {
  background: #0b1b3a;
  color: var(--text);
}

.phone-input {
  display: flex;
  gap: 8px;
}

.phone-code-select {
  width: 110px;
  flex-shrink: 0;
  padding-right: 30px;
  font-size: 0.92rem;
}

.phone-input input {
  flex: 1;
  min-width: 0;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 15px 24px;
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.25), rgba(125, 211, 252, 0.08));
  border: 1px solid rgba(125, 211, 252, 0.40);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.35), rgba(125, 211, 252, 0.12));
  box-shadow: 0 6px 24px rgba(125, 211, 252, 0.18);
}

.btn-submit:active {
  transform: translateY(0);   /* Press-down feel on click */
}

.form-success {
  margin-top: 20px;
  padding: 24px 20px;
  border-radius: 12px;
  background: rgba(125, 211, 252, 0.10);
  border: 1px solid rgba(125, 211, 252, 0.30);
  color: var(--accent);
  font-weight: 600;
  text-align: center;
}

.form-success p {
  margin-bottom: 16px;
}

.btn-calendly {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.25), rgba(125, 211, 252, 0.08));
  border: 1px solid rgba(125, 211, 252, 0.40);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-calendly:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.35), rgba(125, 211, 252, 0.12));
  box-shadow: 0 6px 24px rgba(125, 211, 252, 0.18);
  color: var(--text);
}

.hidden {
  display: none;
}


/* ------------------------------------------------------------
   12. FOOTER
   ------------------------------------------------------------ */

footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 32px 24px 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-sub {
  margin-top: 6px;
  font-size: 0.82rem;
  opacity: 0.6;
}

.ig-section {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px 16px;
}

.footer-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--card-border);
  border-radius: 99px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-ig:hover {
  color: var(--accent);
  border-color: rgba(125, 211, 252, 0.40);
}
