@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital@1&display=swap');

:root {
  --noir-bg: #0A0A0A;
  --light-gray: #E5E5E5;
  --titanium: #8E8E8E;
  --gold: #C9A76A;
  --border-gray: rgba(142, 142, 142, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--noir-bg);
  color: var(--light-gray);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--noir-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(142, 142, 142, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(142, 142, 142, 0.6);
}

.selection-style::selection {
  background-color: white;
  color: black;
}

.geometric-bg {
  position: relative;
  background-image: radial-gradient(circle at 2px 2px, rgba(142, 142, 142, 0.05) 1px, transparent 0);
  background-size: 40px 40px;
  min-height: 100vh;
}

.geometric-bg::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  background-image: url('imagenes/logos/ancla2-lineas2.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40vh;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

.hairline-border {
  border: 0.5px solid rgba(142, 142, 142, 0.3);
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
}

/* Header & Nav */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1.2rem 1.5rem;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  header {
    padding: 1.2rem 6rem;
  }
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-home-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-icon {
  height: 1.875rem;
  width: auto;
}

.logo-text {
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.3s;
}

.logo-container a:hover .logo-text,
.logo-container a:focus-visible .logo-text {
  opacity: 0.85;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  nav {
    gap: 2.2rem;
  }
}

@media (max-width: 767px) {
  header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem 1.2rem;
  }

  .logo-container {
    width: 100%;
    justify-content: center;
  }

  nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }

  .btn-contact {
    padding: 0.65rem 1.4rem;
  }
}

.nav-link {
  color: var(--titanium);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.3rem;
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: white;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: white;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.btn-contact {
  background: white;
  color: black;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-contact:hover {
  background: var(--light-gray);
  color: black;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.btn-contact:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
}

/* Sections */
main {
  flex: 1;
}

section[id] {
  scroll-margin-top: 6.5rem;
}

@media (max-width: 767px) {
  section[id] {
    scroll-margin-top: 9.5rem;
  }
}

.hero {
  position: relative;
  padding: 8rem 1.5rem 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero {
    padding: 12rem 6rem 4rem 6rem;
  }
}

.eyebrow {
  color: var(--titanium);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  margin-bottom: 3rem;
  display: block;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.1;
  color: white;
  margin-bottom: 4rem;
  max-width: 56rem;
  letter-spacing: 0.05em;
  /* Increased letter spacing */
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-title span {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--titanium);
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.btn-primary {
  min-width: 200px;
  height: 3.5rem;
  background: white;
  color: black;
  border: none;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: var(--light-gray);
}

.btn-secondary {
  min-width: 200px;
  height: 3.5rem;
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: white;
  color: black;
}

/* Expertise */
.expertise {
  padding: 3.5rem 1.5rem 7rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  .expertise {
    padding: 5rem 6rem 7rem 6rem;
  }
}

.expertise-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6rem;
}

@media (min-width: 768px) {
  .expertise-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.expertise-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.expertise-item .material-symbols-outlined {
  font-size: 2.5rem;
  color: white;
  font-weight: 200;
}

.expertise-item .custom-icon {
  width: 10rem;
  height: auto;
}

.expertise-item h3 {
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.expertise-item p {
  color: var(--titanium);
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 300;
}

/* Projects */
.projects {
  padding: 7rem 1.5rem;
}

@media (min-width: 768px) {
  .projects {
    padding: 7rem 6rem;
  }
}

.projects-container {
  max-width: 72rem;
  margin: 0 auto;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5rem;
}

.projects-header h2 {
  color: white;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.divider {
  display: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  flex: 1;
  margin: 0 3rem;
}

@media (min-width: 768px) {
  .divider {
    display: block;
  }
}

.projects-tag {
  color: var(--titanium);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  padding: 1rem;
  transition: background 0.5s;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.project-image-container {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #18181b;
  margin-bottom: 2rem;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: grayscale(1);
  transition: all 0.7s;
}

.project-card:hover .project-image {
  filter: grayscale(0);
  transform: scale(1.05);
}

.enocamper-door-image {
  width: 75%;
  height: auto;
  display: block;
  margin: 1.5rem auto 0;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.enocamper-door-image:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--noir-bg), transparent);
}

.project-info {
  padding: 0 1rem 1rem;
}

.project-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
}

.project-logo {
  height: 1.125rem;
  width: auto;
  object-fit: contain;
}

.project-arrow {
  color: var(--titanium);
  font-size: 1.25rem;
}

.project-title {
  color: white;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.project-subtitle {
  color: var(--titanium);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 0.5rem;
}

.next-venture {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.next-venture .material-symbols-outlined {
  color: rgba(255, 255, 255, 0.1);
  font-size: 3.75rem;
  margin-bottom: 1.5rem;
}

.next-venture p:first-of-type {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.next-venture p:last-of-type {
  color: rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  text-transform: uppercase;
  margin-top: 0.5rem;
  letter-spacing: 0.08em;
}

/* Collaborations */
.collaborations {
  padding: 3.5rem 1.5rem 7rem;
  background: rgba(255, 255, 255, 0.02);
}

@media (min-width: 768px) {
  .collaborations {
    padding: 3.5rem 6rem 7rem;
  }
}

.collab-container {
  max-width: 72rem;
  margin: 0 auto;
}

.collab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
  width: 100%;
  margin: 0 auto;
  padding: 3rem;
}

.collab-item h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.collab-item p {
  color: var(--titanium);
  font-size: 0.875rem;
  line-height: 2;
  font-weight: 300;
}

.collab-text {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--titanium);
  text-align: left;
  max-width: 62rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 768px) {
  .collab-text {
    padding-inline: 2rem;
  }
}


.collab-link {
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
  width: fit-content;
  transition: border-color 0.3s;
}

.collab-link:hover {
  border-color: white;
}

/* Contact */
.contact {
  padding: 8rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  .contact {
    padding: 8rem 6rem;
  }
}

.contact h2 {
  color: white;
  font-size: 1.875rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-label {
  color: var(--titanium);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.8rem;
  border: 1px solid var(--titanium);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

@media (min-width: 768px) {
  .contact-button {
    font-size: 0.8rem;
  }
}

.contact-button:hover {
  background: white;
  color: black;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.contact-button:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
}

/* Footer */
footer {
  padding: 4rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  footer {
    padding: 4rem 6rem;
  }
}

.footer-content {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.footer-logo-img:hover {
  opacity: 0.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.footer-link {
  font-size: 0.68rem;
  color: var(--titanium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: white;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}


.footer-legal {
  text-align: center;
}

.footer-legal p:first-child {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.footer-legal p:last-child {
  color: rgba(255, 255, 255, 0.1);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 10, 10, 0.75);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  z-index: 30;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

.back-to-top:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}
