:root {
  --accent: #1b4f72;
  --accent-soft: rgba(255, 55, 95, 0.12);
  --text-main: #151515;
  --text-muted: #6f7480;
  --border-soft: #e5e5ea;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.18);
  --radius-lg: 22px;
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.28s ease-out;
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #ffffff;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

/* CONTENEDOR */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* NAVBAR */
.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
  color: #ffffff;
  transition: background 0.25s ease-out, color 0.25s ease-out,
    border-color 0.25s ease-out;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-main);
  backdrop-filter: saturate(180%) blur(18px);
  border-color: #e5e5ea;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.6rem;
}

.navbar-logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
}

.navbar-title {
  font-family: "Montserrat", system-ui;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e3342f;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-link {
  position: relative;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f8f8f8;
  padding-bottom: 2px;
  transition: color var(--transition-fast);
}

.navbar.scrolled .nav-link {
  color: var(--text-muted);
}

.navbar.scrolled .nav-link:hover {
  color: var(--text-main);
}
.navbar.scrolled .navbar-title {
  color: #111111; /* NEGRO AL HACER SCROLL */
}


.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ffb347);
  transition: width var(--transition-med);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.35);
}

.navbar.scrolled .nav-link-cta {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text-main);
}

/* NAV TOGGLE */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #ffffff;
  border-radius: 999px;
  transition: transform 0.2s, opacity 0.2s, background 0.2s;
}

.navbar.scrolled .navbar-toggle span {
  background: var(--text-main);
}

/* HERO CON VIDEO */
.hero {
  position: relative;
}

.hero-video {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 90px 0 80px;
  overflow: hidden;
  color: #ffffff;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

/* Capa que oscurece arriba y aclara hacia la parte inferior (hacia blanco) */
.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 35%,
    rgba(255, 255, 255, 0.1) 70%,
    #ffffff 100%
  );
  z-index: -2;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
  gap: 3rem;
  align-items: center;
}

.hero-intro {
  max-width: 560px;
}

.hero-title {
  font-family: "Montserrat", system-ui;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  font-weight: 800;
  margin: 0 0 0.6rem;
}

.hero-highlight {
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
}

.hero-subtitle {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #f5f5f5;
}

.cursor {
  font-size: 0.9rem;
  animation: blink 1s step-end infinite;
}

.hero-description {
  font-size: 0.98rem;
  margin: 0 0 1.7rem;
  color: #f0f0f0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* HERO PROFILE */
.hero-profile {
  display: flex;
  justify-content: flex-end;
}

.hero-profile-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.2rem 1.4rem;
  box-shadow: var(--shadow-soft);
  color: var(--text-main);
  max-width: 360px;
}

.profile-img-wrap {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.profile-img {
  width: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease-out;
}

.hero-profile-card:hover .profile-img {
  transform: scale(1.06);
}

.profile-info h2 {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
}

.profile-role {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.profile-tagline {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
}

/* SCROLL HINT */
.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f4f4f4;
}

.scroll-line {
  width: 1px;
  height: 40px;
  margin-top: 4px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), transparent);
  animation: scrollLine 2s infinite;
}




/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;   /* ← TEXTO BLANCO */
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #163f5a; /* un tono más oscuro del mismo color */
  color: #ffffff;   /* ← TEXTO BLANCO */
}

.btn-ghost {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;   /* ← TEXTO BLANCO */
}

.btn-outline {
  border-color: #1b4f72;
 color: #1b4f72;   /* ← TEXTO BLANCO */
  background: transparent;
}

.btn-outline:hover {
   background: rgba(27, 79, 114, 0.12);
   color: #ffffff;   /* ← TEXTO BLANCO */
}

.btn-block {
  width: 100%;
}

/* SECCIONES GENERALES */
.section {
  padding: 80px 0;
  background: #ffffff;
}

.section-alt {
  background: #fafafa;
  border-top: 1px solid #ededf0;
  border-bottom: 1px solid #ededf0;
}

.section-title {
  font-family: "Montserrat", system-ui;
  font-size: 1.8rem;
  margin: 0 0 1rem;
}

.section-title span {
  color: var(--accent);
}

.section-subtitle {
  margin: 0 0 2rem;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.about-text p {
  margin: 0 0 0.95rem;
  font-size: 0.96rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.about-tags span {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #e5e5ea;
  background: #f9fafb;
  color: var(--text-muted);
}

.about-cards {
  display: grid;
  gap: 1rem;
}

.pill-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.pill-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.pill-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.3rem 1.4rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top right, rgba(255, 55, 95, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-med);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
}

.service-card h3 {
  margin: 0 0 0.4rem;
}

.service-card p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.service-card ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.86rem;
}

/* VIDEOS */
.videos {
  background: #ffffff;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.video-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform var(--transition-med), box-shadow var(--transition-med),
    border-color var(--transition-med);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  border-color: var(--accent);
}

.video-thumb {
  position: relative;
  padding-top: 56.25%;
  background-size: cover;
  background-position: center;
}

.video-thumb::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #ffffff;
  text-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
}

.video-info {
  padding: 0.85rem 1rem 1rem;
}

.video-info h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
}

.video-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.videos-cta {
  margin-top: 2.2rem;
  text-align: center;
}

/* FOTOGRAFÍA (placeholders) */
.photography {
  background: #ffffff;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.photo-card {
  position: relative;
  border-radius: 18px;
  height: 230px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.photo-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.35s ease-out;
  pointer-events: none;
}

.photo-card:hover::before {
  opacity: 1;     /* solo prende y apaga, no se mueve */
}


/* CLIENTES */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.client-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CONTACTO */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2rem;
}

.contact-list {
  list-style: none;
  margin: 1rem 0 0.6rem;
  padding: 0;
  font-size: 0.92rem;
}

.contact-list li {
  margin-bottom: 0.25rem;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form-wrap {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

label {
  font-size: 0.85rem;
  color: var(--text-main);
}

input,
select,
textarea {
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.7rem;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  background: #ffffff;
  color: var(--text-main);
  transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

textarea {
  resize: vertical;
}

.form-note {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FOOTER */
.footer {
  border-top: 1px solid #e5e5ea;
  padding: 1.3rem 0 1.5rem;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* VIDEO MODAL */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 960px;
  padding: 1rem;
  z-index: 1;
}

.video-modal-inner {
  position: relative;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.9);
}

.video-modal-inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
}

/* ANIMACIONES SCROLL */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-right"] {
  transform: translateX(-18px);
}

[data-animate="fade-right"].visible {
  transform: translateX(0);
}

[data-animate="fade-left"] {
  transform: translateX(18px);
}

[data-animate="fade-left"].visible {
  transform: translateX(0);
}

[data-animate="zoom-in"] {
  transform: scale(0.96);
}

[data-animate="zoom-in"].visible {
  transform: scale(1);
}

/* KEYFRAMES */
@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

@keyframes scrollLine {
  0% { transform: translateY(0); opacity: 0.25; }
  30% { opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.1rem;
  }

  .hero-profile {
    justify-content: flex-start;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-grid,
  .videos-grid,
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    height: 64px;
  }

  .navbar-nav {
    position: absolute;
    inset-inline: 0;
    top: 64px;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 0.8rem 1.5rem 1.2rem;
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    border-bottom: 1px solid #e5e5ea;
  }

  .navbar-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    color: var(--text-muted);
  }

  .navbar-toggle {
    display: block;
  }

  .hero-video {
    padding-top: 90px;
  }

  .services-grid,
  .videos-grid,
  .photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-profile-card {
    max-width: 360px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .section {
    padding: 64px 0;
  }
}
