/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Georgia', serif;
  background-color: #0f0d0d;
  color: #fff;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
  border: none;
}
html {
  scroll-behavior: smooth;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 60px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  flex-wrap: wrap;
}
.logo {
  height: 24px;
}
nav {
  display: flex;
  gap: 40px;
}
nav a {
  font-size: 16px;
  font-weight: 400;
}

/* Mobile Header Fix */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav a {
    font-size: 14px;
  }
}

/* HERO SECTION */
.hero {
  height: 100vh;
  width: 100%;
  background-image: url('../assets/Profile.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
@media (max-width: 768px) {
  .hero {
    background-image: url('../assets/Profile.png');
    padding: 0 130px;
  }
}
.hero-overlay {
  width:100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
  flex-wrap: wrap;
}

/* HERO TEXT */
.hero-left {
  flex: 1;
  padding-top: 120px;
  padding-bottom: 120px;
  max-width: 600px;
}
.hero-text h2 {
  color: #caa880;
  font-size: 18px;
  margin-bottom: 10px;
}
.hero-text h1 {
  font-size: 48px;
  font-weight: bold;
  line-height: 1.2;
  color: #f2e6da;
}
.hero-text p {
  margin-top: 10px;
  margin-bottom: 30px;
  font-size: 15px;
  color: #ccc;
}
.buttons {
  display: flex;
  gap: 15px;
}
.btn {
  padding: 10px 20px;
  font-size: 14px;
  border: 1px solid #fff;
  cursor: pointer;
}
.primary {
  background-color: #caa880;
  color: #fff;
  border: none;
}
.secondary {
  background-color: transparent;
  color: #fff;
}
@media (max-width: 768px) {
  .buttons {
    flex-direction: column;
    gap: 10px;
  }
  .btn {
    width: fit-content;
  }
}

/* STATS */
.stats {
  position: absolute;
  top: 160px;
  right: 60px;
  text-align: right;
  font-size: 14px;
  line-height: 1.3;
}
.stats span {
  font-size: 20px;
  font-weight: bold;
}
@media (max-width: 768px) {
  .stats {
    position: static;
    margin-top: 20px;
    text-align: left;
    font-size: 12px;
    padding: 0 100px;
    
  }
  .stats span {
    font-size: 16px;
  }
}

/* SOCIAL ICONS */
.socials {
  position: absolute;
  bottom: 60px;
  right: 60px;
  display: flex;
  gap: 20px;
  z-index: 2;
}
.socials img {
  height: 20px;
  opacity: 0.8;
  transition: 0.3s;
}
.socials img:hover {
  opacity: 1;
}
@media (max-width: 768px) {
  .socials {
    position: static;
    margin-top: 20px;
    justify-content: center;
    gap: 16px;
  }
  .socials img {
    height: 64px;
    filter: brightness(0) invert(1);
  }
}

/* FOOTER */
footer {
  position: absolute;
  left: 60px;
  bottom: 60px;
  color: #ccc;
}
.footer-contact {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.info img {
  height: 14px;
  margin-top: 4px;
}
.info p {
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 768px), (max-height: 700px) {
  footer {
    position: static;
    margin-top: 40px;
    padding: 0 20px;
    text-align: center;
  }
  .footer-contact {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .info {
    justify-content: center;
  }
}

.about {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: 100vh;
  position: relative;
}

.section-intro {
  text-align: center;
  font-size: 24px;
  color: #caa880;
  margin-top: 110px;
  margin-bottom: 0px;
  font-style: italic;
  opacity: 0.8;
  animation: fadeIn 1.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 0.8;
    transform: translateY(0);
  }
}

.friend-fade-in {
  opacity: 0;
  transform: translateX(-50%) translateY(400px);
  transition: transform 1.2s ease-out, opacity 1.2s ease-out;
}

.friend-fade-in.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0px) scale(1.3);
}

@keyframes friendIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  gap: 0px;
}

.carousel-arrow {
  font-size: 36px;
  color: #caa880;
  cursor: pointer;
  user-select: none;
  z-index: 10;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-arrow.left {
  left: -60px;
}

.carousel-arrow.right {
  right: -60px;
}

.carousel-container {
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-arrow:hover {
  opacity: 0.8;
  transform: scale(1.1);
  transition: 0.2s ease;
}

.about-card {
  position: relative;
  padding: 80px 100px 180px 100px;
  flex: 0 0 100%;
  min-height: 600px;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  margin: 0;
  text-align: center;
  box-shadow:
    0 0 40px rgba(255, 203, 143, 0.341),
    0 20px 40px rgba(0, 0, 0, 0.7);
}

.card-about-me {
  background-image: url('../assets/Profile2.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-color: transparent;
  backdrop-filter: none;
  position: relative;
}

.friend-cutout {
  position: absolute;
  top: -10px;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%) translateY(120px) scale(1.4);
  width: auto;
  pointer-events: none;
  z-index: 2;
  opacity: 1;
  transition: transform 1s ease-out, opacity 1s ease-out;
}

.card-about-me::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
  border-radius: 20px;
}

.card-about-me > * {
  position: relative;
  z-index: 1;
}

.about-title {
  font-size: 64px;
  margin-bottom: 16px;
  color: #caa880;
}

.about-text {
  text-align: left;
  max-width: 600px;
  height: 280px; /* o el alto que veas que queda guapo */
  overflow-y: auto;
  color: #fff;
  margin: 0 auto 40px;
  padding-right: 10px;
  z-index: 3;
}

.about-text::-webkit-scrollbar {
  width: 6px;
}

.about-text::-webkit-scrollbar-thumb {
  background: #caa880;
  border-radius: 3px;
}

.about-text::-webkit-scrollbar-track {
  background: transparent;
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 16px;
  color: #caa880;
}

.about-text p {
  font-size: 20px;
  line-height: 1.6;
}

.about-image {
  margin-top: 40px;
  height: 200px; /* Asegura espacio para el cutout */
  position: relative;
}

.about-image img {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.card-video-gallery {
  background-image: url('../assets/videogallery.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  backdrop-filter: none;
  position: relative;
}

.card-video-gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* si quieres oscurecer */
  z-index: 0;
  border-radius: 20px;
}

.card-video-gallery > * {
  position: relative;
  z-index: 1;
}

.card-video-gallery .about-title,
.card-video-gallery .about-text {
  text-align: center;
  position: relative;
  z-index: 1;
}

.card-video-gallery .about-text .btn {
  margin-left: auto;
  margin-right: auto;
  display: inline-block;
  margin-top: 20px !important;
}

@media (max-width: 768px) {
  .about-card {
    width: 90%;          /* shrink width */
    max-width: 380px;    /* optional cap */
    min-height: 450px; /* ✅ add this instead */
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    overflow: visible; /* important */
  }

  .about-title {
    font-size: 26px;
  }

  .about-text p {
    font-size: 18px;
  }

  .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
  }

  .carousel-arrow.left {
    left: -0px;
  }

  .carousel-arrow.right {
    right: -0px;
  }

  .about-image {
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }

  .about-image img {
    max-width: 90%;
    padding-top: 80px;
    height: auto;
    display: block;
    object-fit: contain;
  }


}
