/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 3rem 5rem;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

/* VIDEO SLIDESHOW */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #000;
}

.hero-bg .video-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-bg .video-slide.active {
  opacity: 1;
}

.hero-bg .video-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.logo {
  width: 500px;
  max-width: 70vw;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--white);
  width: 100%;
  margin-bottom: 2.5rem;
  font-weight: 300;
  text-align: center;
}

.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding-left: 30px;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-secondary {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition);
}

.btn-secondary:hover {
  color: var(--accent);
}

.btn-secondary::after {
  content: '↓';
}

.section-body {
  max-width: 580px;
}

/* SERVICES */
.services {
  background: var(--gray-100);
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5px;
  background: var(--gray-200);
  border: 1.5px solid var(--gray-200);
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}

.service-card::after {
  content: '→';
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-size: 1.25rem;
  color: var(--gray-400);
  transition: all var(--transition);
}

.service-card:hover {
  background: var(--black);
}

.service-card:hover .service-num,
.service-card:hover .service-name,
.service-card:hover .service-desc {
  color: var(--white);
}

.service-card:hover::after {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.service-num {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-bottom: 2rem;
}

.service-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 1rem;
  transition: color var(--transition);
}

.service-desc {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.7;
  font-weight: 300;
  transition: color var(--transition);
}

/* ABOUT */
.about {
  background: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--black);
}

.about-quote em {
  font-style: italic;
  color: var(--accent);
}

.about-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.85;
  font-weight: 300;
}

.about-text p {
  margin-bottom: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat {
  padding: 1.25rem;
  background: var(--gray-100);
  border-radius: 0.5rem;
}

.stat-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--black);
  line-height: 1;
}

.stat-num.letter-fix {
  font-size: 1.5rem;
  padding-top: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
  font-weight: 400;
}

/* PROCESS */
.process {
  background: var(--black);
  color: var(--white);
}

.process .section-title {
  color: var(--white);
}

/* CONTACT */
.contact {
  background: var(--gray-100);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  color: var(--black);
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
  appearance: none;
}

.form-field select {
  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='%235a5852' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--black);
}

.form-field select option[value=""] {
  color: var(--gray-400);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: background var(--transition);
  width: fit-content;
}

.form-submit:hover {
  background: var(--accent);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-note {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

.form-success {
  display: none;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.form-success.visible {
  display: block;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  section {
    padding: 4rem 1.5rem;
  }

  .hero {
    padding: 0 1.5rem 4rem;
    justify-content: flex-start;
    padding-top: calc(64px + 8vh);
  }

  .logo {
    width: 280px;
  }

  .hero-sub {
    padding-left: 0;
  }

  .hero-content {
    text-align: center;
    align-items: center;
    width: 100%;
  }

  .hero-messages {
    text-align: center;
  }

  .hero-message {
    width: 100%;
    text-align: center;
  }

  .hero-title {
    text-align: center;
  }

  .hero-sub {
    text-align: center;
  }

  .hero-actions {
    position: absolute;
    bottom: 5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0%;
  }

  .hero-actions .btn-primary {
    width: 100%;
    text-align: center;
  }

  .btn-secondary {
    text-align: center;
  }

  .slide-indicators {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .linear-steps {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-submit {
    width: 100%;
  }

  .process .linear-steps {
    border-top: none;
  }

  .process .linear-step {
    padding: 2rem 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-right: 0;
  }

  .process .linear-step:last-child {
    border-bottom: none;
  }

}

@media (max-width: 500px) {
  .about-stats {
    grid-template-columns: 1fr;
  }

  .linear-steps {
    grid-template-columns: 1fr;
  }
}

/* VCARD */
.vcard {
  position: relative;
  cursor: pointer;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16/9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.vcard-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.vcard:hover .vcard-thumb {
  transform: scale(1.04);
}

.vcard-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1a0a 100%);
}

.vcard-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  transition: background 0.3s ease;
}

.vcard:hover .vcard-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.25) 65%);
}

.vcard-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.35rem;
}

.vcard-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.25;
}

.vcard-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.3rem;
  font-weight: 300;
  line-height: 1.4;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.vcard:hover .vcard-desc {
  max-height: 3rem;
  opacity: 1;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.vcard:hover .play-btn {
  background: var(--accent);
  border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-btn svg {
  width: 22px;
  height: 22px;
  fill: white;
  margin-left: 3px;
}

.vimeo-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 0.3rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vcard.featured {
  grid-column: 1 / -1;
  aspect-ratio: 21/9;
}

.vcard.featured .vcard-title {
  font-size: 1.4rem;
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 960px;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
  background: #000;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.modal-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.modal-info {
  padding: 1rem 1.5rem 1.25rem;
  background: #0d0d0d;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.modal-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white);
}

.modal-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.2rem;
  font-weight: 300;
}

.modal-vimeo-link {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  align-self: center;
}

.modal-vimeo-link:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ── EQUIPO ── */
.team-section {
  padding: 6rem 3rem;
  background: var(--gray-100);
}

.team-header {
  margin-bottom: 3.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 2rem;
  justify-content: center;
}

.team-member {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
}

.team-photo {
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--gray-200);
}

.team-photo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.team-member:hover .team-photo img {
  transform: scale(1.03);
}

.team-info {
  padding: 1.75rem;
}

.team-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--black);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.8;
  font-weight: 300;
}

@media (max-width: 900px) {
  .team-section {
    padding: 4rem 1.5rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-photo {
    aspect-ratio: 2/3;
  }
}

/* ── PORTFOLIO ── */
.portfolio-section {
  padding: 6rem 3rem;
  background: var(--white);
}

.portfolio-header {
  margin-bottom: 3.5rem;
}

.portfolio-intro {
  margin-top: 1rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--gray-100);
  border-radius: 0.75rem;
  overflow: hidden;
}

.portfolio-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-thumb--empty {
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-coming-soon {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 300;
}

.portfolio-info {
  padding: 1.75rem;
}

.portfolio-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

.portfolio-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.portfolio-desc {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.7;
  font-weight: 300;
}

@media (max-width: 900px) {
  .portfolio-section {
    padding: 4rem 1.5rem;
  }
}

/* ── FORM FIELD FOOTER ── */
.form-field-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

/* ── CONTACT WHATSAPP ── */
.contact-whatsapp {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 300;
}

.contact-whatsapp-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-whatsapp-link:hover {
  text-decoration: underline;
}

.hero-slide picture {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-slide picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
