:root {
  --fucsia: #ff1493;
  --rosa-pastel: #ffd1e8;
  --blanco: #ffffff;
  --azul: #14d8ff;
  --negro: #000000;
}
html {
  scroll-behavior: smooth;
}


/* TEXTO GENERAL */
body {
  font-family: "Raleway", sans-serif;
  font-weight: 400;
}

/* TÍTULOS */
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
}


/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--fucsia);
  display: flex;
  justify-content: center;
  z-index: 1000;
  padding: 20px 0;
  box-sizing: border-box;
}
.navbar ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: flex;
  gap: 20px;
}
.navbar a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
  letter-spacing: 1.5px;
  padding: 0 15px;
  font-size: 1.2em;
  display: inline-block;
}
.navbar a:hover {
  color: var(--azul);
  transform: scale(1.1);
  letter-spacing: 2px;
}

/* ── SECCIONES ── */
.section {
  min-height: 100vh;
  padding: 120px 40px 80px;
  box-sizing: border-box;
}
.section-alt {
  background-color: #fdf6fa;
}
.section-header h2 {
  text-align: center;
  font-size: 1.8em;
  color: var(--fucsia);
  margin-bottom: 50px;
  font-weight: 600;
  position: relative;
}
.section-header h2::after {
  content: "";
  display: block;
  width: 320px;
  height: 3px;
  background-color: var(--rosa-pastel);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ── BANNER ── */
.banner {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, var(--rosa-pastel), var(--blanco));
  text-align: center;
  flex-direction: column;
  padding: 50px;
}
.banner-title {
  font-size: 4em;
  color: var(--fucsia);
  margin: 0 0 10px;
}
.banner-subtitle {
  font-size: 1.5em;
  color: var(--fucsia);
  margin: 0 0 30px;
}
.banner-cta {
  display: inline-block;
  color: var(--blanco);
  border: 2px solid var(--fucsia);
  background: var(--fucsia);
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  transition: background 0.3s, color 0.3s;
}
.banner-cta:hover {
  background: var(--azul);
  color: var(--blanco);
  border: 2px solid var(--azul);
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ── VIDEO ── */
.video-wrapper {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── GRID DE PROYECTOS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 1300px;
  margin: 0 auto;
}

/* ── TARJETA DE PROYECTO ── */
.project-card {
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

/* Portada 16:9 */
.project-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: grayscale(100%);
}
.project-card:hover .project-cover img {
  transform: scale(1.06);
}

/* Overlay oscuro con título al hover */
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.project-card:hover .project-overlay {
  opacity: 1;
}
.project-overlay .project-title-hover {
  color: var(--blanco);
  font-size: 1.05em;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-align: center;
  padding: 0 16px;
}
.project-overlay .view-label {
  color: var(--blanco);
  font-size: 0.8em;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,0.7);
  padding: 6px 18px;
  border-radius: 30px;
}

.project-title {
  display: none;
}

/* ── ABOUT ── */
.about-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
}
.about-photo {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--rosa-pastel);
  box-shadow: 0 6px 24px rgba(255,20,147,0.15);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-text h3 {
  font-size: 1.6em;
  color: var(--fucsia);
  margin-bottom: 16px;
}
.about-text p {
  font-size: 1em;
  line-height: 1.7;
  color: #444;
  margin-bottom: 12px;
}

/* ── CONTACT ── */
.contact-wrapper {
  display: flex;
  gap: 80px;
  max-width: 960px;
  margin: 0 auto;
  align-items: flex-start;
  padding: 20px 0;
}
.contact-left {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-mail-icon {
  font-size: 1.6em;
  color: var(--fucsia);
}
.contact-tagline {
  font-size: 1.05em;
  font-weight: 600;
  color: var(--negro);
  line-height: 1.5;
  margin: 0;
}
.contact-email {
  font-size: 1em;
  color: var(--fucsia);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--rosa-pastel);
  padding-bottom: 2px;
  transition: border-color 0.3s;
  width: fit-content;
}
.contact-email:hover {
  border-color: var(--fucsia);
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--negro);
  font-size: 0.95em;
  font-weight: 500;
  transition: color 0.3s;
}
.contact-link:hover {
  color: var(--fucsia);
}
.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fucsia);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8em;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: background 0.3s;
}
.contact-link:hover .contact-icon {
  background: var(--azul);
}
.contact-right {
  flex: 1;
}
.contact-right h2 {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--negro);
  margin: 0 0 24px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form-row {
  display: flex;
  gap: 20px;
}
.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.contact-form-group label {
  font-size: 0.85em;
  color: #666;
}
.contact-form input,
.contact-form textarea {
  padding: 10px 0;
  border: none;
  border-bottom: 1.5px solid #aaa;
  font-family: inherit;
  font-size: 0.95em;
  outline: none;
  background: transparent;
  transition: border-color 0.3s;
  width: 100%;
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--fucsia);
}
.contact-form textarea {
  resize: vertical;
  min-height: 80px;
}
.contact-form button {
  align-self: flex-start;
  padding: 12px 36px;
  background: var(--fucsia);
  color: var(--blanco);
  border: none;
  border-radius: 30px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.3s, transform 0.2s;
}
.contact-form button:hover {
  background: var(--azul);
  transform: scale(1.03);
}
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    gap: 40px;
  }
  .contact-left {
    flex: none;
    width: 100%;
  }
  .contact-form-row {
    flex-direction: column;
  }
}

/* ── BOTÓN VOLVER ARRIBA ── */
#toTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--fucsia);
  color: var(--blanco);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 30px;
  cursor: pointer;
  display: none;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
  z-index: 999;
}
#toTop:hover {
  background-color: var(--azul);
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ── MODAL ── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal.open {
  display: flex;
}
.modal-inner {
  position: relative;
  width: 80vw;
  max-width: 960px;
  background: #111;
  border-radius: 14px;
  padding: 24px 24px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 1.4em;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10;
}
.modal-close:hover { opacity: 1; }

.modal-main {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.modal-prev,
.modal-next {
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--blanco);
  font-size: 2.2em;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-prev:hover,
.modal-next:hover {
  background: var(--fucsia);
}
.modal-img-wrap {
  flex: 1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.modal-counter {
  color: rgba(255,255,255,0.6);
  font-size: 0.85em;
  letter-spacing: 1px;
}
.modal-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}
.modal-thumb {
  width: 64px;
  height: 42px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}
.modal-thumb.active {
  opacity: 1;
  border-color: var(--fucsia);
}
.modal-thumb:hover { opacity: 0.85; }

.modal-thumb-video {
  width: 64px;
  height: 42px;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
  background: #333;
  color: var(--blanco);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
}
.modal-thumb-video.active {
  opacity: 1;
  border-color: var(--fucsia);
}
.modal-thumb-video:hover { opacity: 0.85; }

/* ── HAMBURGUESA ── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 0 20px;
}
.menu-toggle span {
  background-color: var(--blanco);
  width: 25px;
  height: 3px;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .navbar {
    justify-content: space-between;
    padding: 10px 0;
  }
  .navbar ul {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: var(--fucsia);
    width: 100%;
    text-align: center;
    display: none;
    padding: 20px 0;
    margin: 0;
    gap: 10px;
  }
  .navbar ul.active { display: flex; }
  .navbar a { font-size: 1.1em; padding: 10px 0; }
  .menu-toggle { display: flex; }
  .banner-title { font-size: 2.2em; }
  .banner-subtitle { font-size: 1.1em; }
  .section { padding: 90px 20px 50px; }
  .about-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
  }
  .contact-wrapper { flex-direction: column; }
  .modal-inner { width: 95vw; padding: 16px 12px 14px; }
  #toTop { width: 44px; height: 44px; font-size: 20px; bottom: 20px; right: 20px; }
}
@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
  .banner-title { font-size: 1.8em; }
  .banner-subtitle { font-size: 1em; }
  .navbar a { font-size: 1em; }
  .modal-prev, .modal-next { width: 36px; height: 36px; font-size: 1.6em; }
}
