/* ==========================================
   COJOS FC — cojosfc.com
   Dark cinematic design
   ========================================== */

/* --- TOKENS --- */
:root {
  --black:     #080808;
  --carbon:    #121212;
  --surface:   #1a1a1a;
  --border:    #2a2a2a;
  --muted:     #555;
  --text-dim:  #888;
  --text:      #c8c4bc;
  --white:     #f0ede6;
  --green:     #4caf50;
  --gold:      #c9a84c;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', system-ui, sans-serif;

  --max: 1100px;
  --gap: clamp(2rem, 6vw, 5rem);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- FILM STRIP --- */
.filmstrip {
  width: 100%;
  background: #0d0d0d;
  border-top: 1px solid #1e1e1e;
  border-bottom: 1px solid #1e1e1e;
  overflow: hidden;
  height: 22px;
  display: flex;
  align-items: center;
}
.filmstrip--bottom { border-top: 1px solid #1e1e1e; border-bottom: none; }
.filmstrip__track {
  display: flex;
  gap: 14px;
  padding: 0 14px;
  animation: filmroll 12s linear infinite;
  white-space: nowrap;
}
.filmstrip__track span {
  display: inline-block;
  width: 12px;
  height: 10px;
  border: 1.5px solid #2a2a2a;
  border-radius: 2px;
  flex-shrink: 0;
}
@keyframes filmroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 22px;
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: linear-gradient(to bottom, rgba(8,8,8,.95) 0%, rgba(8,8,8,0) 100%);
  backdrop-filter: blur(0px);
}
.nav__logo {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: .12em;
  color: var(--white);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .2s;
}
.nav__links a:hover { color: var(--white); }
.nav__cta {
  color: var(--green) !important;
  border: 1px solid var(--green);
  padding: .4rem 1rem;
  border-radius: 2px;
  transition: background .2s, color .2s !important;
}
.nav__cta:hover {
  background: var(--green);
  color: var(--black) !important;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--ff-body);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); opacity: .9; }
.btn--primary {
  background: var(--green);
  color: var(--black);
}
.btn--full { width: 100%; justify-content: center; }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(1.5rem, 8vw, 8rem) clamp(4rem, 10vh, 7rem);
  overflow: hidden;
}
.hero__photo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
}
.hero__photo {
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%) contrast(1.05);
  opacity: .55;
}
.hero__photo-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  var(--black) 30%, transparent 70%),
    linear-gradient(to top, var(--black) 8%, transparent 40%),
    linear-gradient(to bottom, var(--black) 0%, transparent 18%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.hero__eyebrow {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: .95;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: italic;
  color: var(--text-dim);
}
.hero__sub {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 400px;
}

/* --- ABOUT --- */
.about {
  padding: var(--gap) clamp(1.5rem, 8vw, 8rem);
  max-width: calc(var(--max) + 16vw);
  margin: 0 auto;
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.section-label {
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}
.about__title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.about__title em { font-style: italic; color: var(--gold); }
.about__body {
  color: var(--text-dim);
  font-size: .95rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}
.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.stat {
  background: var(--carbon);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.stat__num {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat__label {
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .04em;
}

/* --- DIVIDER --- */
.divider {
  text-align: center;
  padding: 1.5rem 0;
  color: var(--border);
  letter-spacing: .6em;
  font-size: .8rem;
}

/* --- CONTACT --- */
.contact {
  padding: var(--gap) clamp(1.5rem, 8vw, 8rem);
  max-width: calc(var(--max) + 16vw);
  margin: 0 auto;
}
.contact__inner {
  max-width: 640px;
  margin: 0 auto;
}
.contact__header {
  margin-bottom: 3rem;
}
.contact__title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: .75rem;
}
.contact__sub {
  color: var(--text-dim);
  font-size: .95rem;
  line-height: 1.7;
}
.contact__sub a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- FORM --- */
.form { display: flex; flex-direction: column; gap: 1.5rem; }

.form__type-label {
  display: block;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .75rem;
}
.form__type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.type-option input { display: none; }
.type-option__box {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--carbon);
}
.type-option input:checked + .type-option__box {
  border-color: var(--green);
  background: rgba(76,175,80,.07);
}
.type-option__icon { font-size: 1.3rem; }
.type-option__name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--white);
}
.type-option__desc {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.4;
}

.form__row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form__field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form__field label {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form__field input,
.form__field textarea {
  background: var(--carbon);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--white);
  font-family: var(--ff-body);
  font-size: .95rem;
  padding: .8rem 1rem;
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.form__field input:focus,
.form__field textarea:focus {
  border-color: var(--green);
}
.form__field input::placeholder,
.form__field textarea::placeholder {
  color: var(--muted);
}
.form__field--empresa {
  animation: fadeIn .3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form__feedback {
  font-size: .9rem;
  padding: .75rem 1rem;
  border-radius: 2px;
  display: none;
}
.form__feedback.success {
  display: block;
  background: rgba(76,175,80,.12);
  border: 1px solid rgba(76,175,80,.3);
  color: #81c784;
}
.form__feedback.error {
  display: block;
  background: rgba(244,67,54,.1);
  border: 1px solid rgba(244,67,54,.25);
  color: #e57373;
}

/* --- FOOTER --- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 8vw, 8rem);
  border-top: 1px solid var(--border);
}
.footer__copy {
  font-size: .8rem;
  color: var(--muted);
}
.footer__copy a { color: var(--gold); }
.footer__yt {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text-dim);
  letter-spacing: .05em;
  transition: color .2s;
}
.footer__yt:hover { color: var(--green); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav__links li:not(:last-child) { display: none; }
  .hero { align-items: flex-end; padding-bottom: 3rem; }
  .hero__photo { width: 100%; object-position: center top; opacity: .35; }
  .about__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .form__type-options { grid-template-columns: 1fr; }
  .form__row--two { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .filmstrip__track { animation: none; }
  * { transition: none !important; }
}
