:root {
  --color-primary: #B6BA8A;

  --color-gold: #C5B58A;
  --color-gold-dark: #C7B06F;
  --color-champagne: #E4D6C3;
  --color-champagne-dark: #9B8460;

  --color-text-dark: #2F2F2D;
  --color-text-gray: #8A8A86;

  --color-bg-white: #F6F2ED;
  --color-bg-dark: #E1DFD5;
  --color-tap-highlight: rgba(0, 0, 0, 0.05);

  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Libre Baskerville', serif;
  --font-display: 'Italianno', cursive;

  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --spacing-xxl: 80px;

  --header-height: 80px;
  --logo-height: 50px;

  --transition-normal: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: var(--color-tap-highlight);
  tap-highlight-color: var(--color-tap-highlight);
}

body {
  font-family: var(--font-primary);
  color: var(--color-text-dark);
  background: var(--color-bg-dark);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  cursor: pointer;
}

.text-highlight {
  font-family: var(--font-display);
  font-size: 96px;
  color: var(--color-champagne-dark);
}

.divider {
  display: none;
}

.experiences-title .text-highlight {
  line-height: 32px;
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.06),
               0 0 20px rgba(0, 0, 0, 0.04),
               0 0 10px rgba(0, 0, 0, 0.03);
}

.experiences-title .text-normal-sm {
  margin-left: -16px;
}

.experiences-title .text-normal-md {
  margin-left: -24px;
}

.experiences-title .text-normal-xl {
  margin-left: -32px;
}

/* Header / Menu */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-primary);
  z-index: 1000;
  transition: var(--transition-normal);
}

.header .container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
}

.logo {
  height: var(--logo-height);
}

.nav {
  display: flex;
  gap: var(--spacing-lg);
}

.nav a {
  color: var(--color-text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-normal);
}

.nav a:hover {
  color: var(--color-primary);
}

.nav a.active {
  color: var(--color-primary);
  font-weight: 600;
}

.btn-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + var(--spacing-xl)) var(--spacing-md) var(--spacing-xxl);
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1400px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  align-items: center;
}

.hero-content {
  padding-right: 0;
  text-align: right;
  position: relative;
  z-index: 10;
  max-width: 550px;
  margin-left: auto;
}

.hero-content::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  bottom: -40px;
  left: -60px;
  background: linear-gradient(to right, rgba(225, 223, 213, 0.5), rgba(225, 223, 213, 0.85));
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 0.6;
  color: var(--color-gold-dark);
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.4;
  color: #5A5A56;
  font-weight: 400;
  position: relative;
  z-index: 1;
  padding-left: var(--spacing-lg);
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 0;
}

.hero-background {
  position: absolute;
  top: -25px;
  left: -45%;
  transform: rotate(-30deg) scale(1.3);
  opacity: 0.3;
}

.hero-polaroid-stack {
  position: relative;
  width: 100%;
  max-width: 650px;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: var(--spacing-xl);
}

.hero-polaroid {
  position: absolute;
  background: #ffffff;
  padding: 20px 20px 60px 20px;
  box-shadow: 0 12px 48px rgba(47, 47, 45, 0.06), 0 4px 16px rgba(47, 47, 45, 0.04);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  max-width: 420px;
}

.hero-polaroid img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-polaroid-back {
  transform: rotate(-4deg) translate(-58px, 22px);
  z-index: 1;
  opacity: 0.85;
}

.hero-polaroid-middle {
  transform: rotate(5deg) translate(52px, -15px);
  z-index: 2;
  opacity: 0.9;
}

.hero-polaroid-front {
  transform: rotate(-2deg) translate(3px, 5px);
  z-index: 3;
  opacity: 1;
}

.hero-polaroid-stack:hover .hero-polaroid-back {
  transform: rotate(-11deg) translate(-155px, -25px);
  opacity: 1;
  box-shadow: 0 20px 60px rgba(47, 47, 45, 0.1), 0 8px 24px rgba(47, 47, 45, 0.06);
}

.hero-polaroid-stack:hover .hero-polaroid-middle {
  transform: rotate(9deg) translate(138px, -60px);
  opacity: 1;
  box-shadow: 0 20px 60px rgba(47, 47, 45, 0.1), 0 8px 24px rgba(47, 47, 45, 0.06);
}

.hero-polaroid-stack:hover .hero-polaroid-front {
  transform: rotate(1deg) translate(-8px, -12px);
  box-shadow: 0 20px 60px rgba(47, 47, 45, 0.12), 0 8px 24px rgba(47, 47, 45, 0.08);
}

.hero-flowers {
  position: absolute;
  bottom: 65px;
  transform: rotateX(180deg) scale(1.2);
  opacity: 0.25;
  right: 46%;
}

/* Portfolio Section */
.experiences {
  max-width: 1400px;
  margin: 0 auto;
}

.experiences-wrapper {
  padding: var(--spacing-xxl) var(--spacing-md);
}

.experiences-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
  position: relative;
  min-height: 50vh;
}

.experiences-row:last-child {
  margin-bottom: 0;
}

.experiences-row-reverse {
  direction: rtl;
}

.experiences-row-reverse > * {
  direction: ltr;
}

.experiences-text {
  padding: var(--spacing-lg);
  text-align: right;
}

.experiences-row-reverse .experiences-text {
  text-align: left;
}

.experiences-background {
  position: absolute;
  margin-top: -50px;
  margin-left: -40px;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.25;
}

.experiences-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text-dark);
  position: relative;
  z-index: 10;
}

.experiences-description {
  font-size: 1.125rem;
  line-height: 1.5;
  color: #5A5A56;
  font-weight: 400;
  position: relative;
  z-index: 10;
}

.experiences-images {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.experiences-images .experiences-background {
  display: none;
}

.experiences-polaroid {
  position: absolute;
  background: #ffffff;
  padding: 18px 18px 54px 18px;
  box-shadow: 0 12px 48px rgba(47, 47, 45, 0.06), 0 4px 16px rgba(47, 47, 45, 0.04);
  transition: box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 380px;
  cursor: pointer;
}

.experiences-polaroid img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Posiciones base para cada polaroid */
.experiences-polaroid-1 {
  transform: rotate(-1deg) translate(-100px, 5px);
  z-index: 3;
}

.experiences-polaroid-2 {
  transform: rotate(1deg) translate(0px, -5px);
  z-index: 2;
}

.experiences-polaroid-3 {
  transform: rotate(-2deg) translate(100px, 10px);
  z-index: 1;
}

.experiences-row-reverse .experiences-polaroid-1 {
  z-index: 1;
}

.experiences-row-reverse .experiences-polaroid-2 {
  z-index: 2;
}

.experiences-row-reverse .experiences-polaroid-3 {
  z-index: 3;
}

.experiences-polaroid-1:hover {
  transform: scale(1.05) rotate(-1deg) translate(-100px, 5px);
  z-index: 10 !important;
  box-shadow: 0 25px 70px rgba(47, 47, 45, 0.15), 0 10px 30px rgba(47, 47, 45, 0.1);
}

.experiences-polaroid-2:hover {
  transform: scale(1.05) rotate(1deg) translate(0px, -5px);
  z-index: 10 !important;
  box-shadow: 0 25px 70px rgba(47, 47, 45, 0.15), 0 10px 30px rgba(47, 47, 45, 0.1);
}

.experiences-polaroid-3:hover {
  transform: scale(1.05) rotate(-2deg) translate(100px, 10px);
  z-index: 10 !important;
  box-shadow: 0 25px 70px rgba(47, 47, 45, 0.15), 0 10px 30px rgba(47, 47, 45, 0.1);
}

.experiences-video {
  margin-top: 100px;
}

.experiences-video video {
  display: block;
}

.experiences-video video::-webkit-media-controls-panel {
  display: flex !important;
}

.experiences-video video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}

.experiences-video video::-webkit-media-controls-picture-in-picture-button {
  display: none !important;
}

/* Contact Section */
.contact {
  padding: var(--spacing-xxl) var(--spacing-md);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.corner {
  position: absolute;
  opacity: 0.25;
}

.corner-left {
  left: -40px;
  top: 0;
  transform: rotate(180deg);
}

.corner-right {
  right: -40px;
  bottom: 0;
}

.contact-container {
  max-width: 1400px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-xxl);
  align-items: center;
  padding: 0 var(--spacing-lg);
}

.contact-text {
  max-width: 600px;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text-dark);
  margin-bottom: var(--spacing-md);
}

.contact-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-dark);
  font-weight: 400;
}

.btn-contact {
  display: inline-block;
  padding: 18px 40px;
  background: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(156, 207, 181, 0.15);
  color: #551a8b;
}

.btn-contact:hover {
  background: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 181, 138, 0.25);
}

/* Footer Section */
.footer {
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-sm) var(--spacing-md);
  color: var(--color-text-dark);
}

.footer-container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--spacing-xl);
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.footer-logo img {
  height: 40px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: flex-end;
}

.footer-socials {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.footer-socials a {
  color: var(--color-primary);
  width: 24px;
  height: 24px;
}

.footer-socials a svg {
  fill: var(--color-primary);
}

.footer-socials a:hover {
  color: var(--color-primary);
}

.footer-location {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: right;
}

.footer-location p {
  margin: 0;
  font-size: 0.875rem;
}

.footer-copyright {
  text-align: center;
  margin-top: var(--spacing-md);
}

.footer-copyright p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-text-gray);
  font-family: var(--font-primary);
}

/* Responsive - Tablets y Mobile general */
@media (max-width: 1000px) {
  .hero {
    padding-bottom: var(--spacing-md);
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-container {
    gap: var(--spacing-md);
  }

  .hero-polaroid-stack {
    max-width: 550px;
    height: 600px;
  }

  .hero-polaroid {
    max-width: 360px;
  }
  
  .experiences {
    padding: var(--spacing-xxl) 0 var(--spacing-md) 0;
    height: auto;
  }

  .experiences-row {
    gap: 0;
    margin-bottom: 0px;
    height: 450px;
    grid-template-columns: 1fr 2fr;
  }

  .experiences-title {
    font-size: 1.875rem;
  }

  .experiences-description {
    font-size: 1rem;
  }

  .experiences-images {
    height: 550px;
  }

  .experiences-polaroid {
    width: 300px;
    padding: 17px 17px 50px 17px;
  }

  .contact {
    min-height: 50vh;
  }

  .contact-container {
    gap: var(--spacing-xl);
  }

  .contact-title {
    font-size: 2.25rem;
  }

  .contact-description {
    font-size: 1rem;
  }

  .btn-contact {
    padding: 16px 36px;
  }

  .footer-container {
    grid-template-columns: auto 1fr;
  }

  .footer-logo {
    justify-content: flex-start;
  }

  .footer-right {
    align-items: flex-end;
  }
}

/* Responsive - Mobile específico */
@media (max-width: 750px) {  
  .hero {
    padding-bottom: var(--spacing-md);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding-left: 0;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
  }

  .hero-image-wrapper {
    padding-left: 0;
    justify-content: center;
    order: 1;
    flex-shrink: 0;
    width: 100%;
  }

  .hero-content {
    padding-right: 0;
    text-align: center;
    order: 2;
    z-index: 10;
    position: relative;
    transform: translateY(-150px);
  }

  .hero-polaroid-stack {
    max-width: 100%;
    height: 550px;
    padding-left: 0;
    justify-content: center;
  }

  .hero-polaroid {
    max-width: 280px;
  }

  .hero-polaroid-back {
    transform: rotate(-9deg) translate(-85px, -12px);
    opacity: 1;
  }

  .hero-polaroid-middle {
    transform: rotate(8deg) translate(68px, -38px);
    opacity: 1;
  }

  .hero-polaroid-front {
    transform: rotate(1deg) translate(-5px, -8px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hero-polaroid-stack:hover .hero-polaroid-back {
    transform: rotate(-9deg) translate(-85px, -12px);
    opacity: 1;
  }

  .hero-polaroid-stack:hover .hero-polaroid-middle {
    transform: rotate(8deg) translate(68px, -38px);
    opacity: 1;
  }

  .hero-polaroid-stack:hover .hero-polaroid-front {
    transform: rotate(1deg) translate(-5px, -8px) scale(1.08);
    box-shadow: 0 25px 70px rgba(47, 47, 45, 0.15), 0 10px 30px rgba(47, 47, 45, 0.1);
  }

  .hero-background, .hero-flowers {
    display: none;
  }

  .divider {
    display: block;
    position: absolute;
    z-index: 11;
    margin-bottom: var(--spacing-xxl);
    text-align: center;
    margin-top: 10px;
    opacity: 0.5;
  }

  .divider img {
    width: 80%;
  }

  .logo {
    z-index: 11;
  }

  .background {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: var(--color-bg-white);
  }

  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--color-bg-white);
    flex-direction: column;
    padding: var(--spacing-xl);
    gap: var(--spacing-md);
    border-bottom: 1px solid rgba(156, 207, 181, 0.4);
    box-shadow: 0 4px 20px rgba(47, 47, 45, 0.08);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    z-index: 9;
  }

  .nav.show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .nav.closing {
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  @keyframes slideDown {
    from {
      transform: translateY(-100%);
    }
    to {
      transform: translateY(0);
    }
  }

  @keyframes slideUp {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(-100%);
    }
  }

  .nav a {
    font-size: 1.125rem;
    padding: var(--spacing-sm) 0;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .btn-menu {
    display: block;
    position: relative;
    z-index: 11;
  }

  .experiences {
    padding: var(--spacing-xxl) 0 var(--spacing-xxl) 0;
    height: auto;
    overflow-x: hidden;
  }

  .experiences-wrapper {
    padding-bottom: 0;
  }

  .experiences-row {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xxl);
  }

  .experiences-row:last-child {
    margin-bottom: 0;
    height: auto;
  }
  
  .experiences-row:last-child .experiences-images {
    height: 400px;
    padding-bottom: 150px;
  }

  .experiences-row-reverse {
    direction: ltr;
  }

  .experiences-title .text-highlight {
    font-size: 64px;
  }

  .experiences-title .text-normal-sm {
    margin-left: -12px;
  }

  .experiences-title .text-normal-md {
    margin-left: -20px;
  }

  .experiences-title .text-normal-xl {
    margin-left: -28px;
  }

  .experiences-text {
    order: 1;
    text-align: right;
    padding: var(--spacing-md);
  }

  .experiences-title {
    font-size: 1.75rem;
    margin-bottom: 0;
  }

  .experiences-title .experiences-background {
    display: none;
  }

  .experiences-description {
    font-size: 0.875rem;
  }

  .experiences-images {
    order: 2;
    height: 250px;
  }

  .experiences-images .experiences-background {
    display: block;
    margin-top: -250px;
    margin-left: -10px;
  }

  .experiences-images .experiences-background-last {
    margin-top: -100px;
  }

  .experiences-polaroid {
    width: 240px;
    padding: 17px 17px 51px 17px;
  }

  .experiences-video {
    margin-top: 0px;
  }

  .contact {
    padding: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
    min-height: auto;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
    padding: 0;
  }

  .contact-text {
    max-width: 100%;
  }

  .contact-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
  }

  .contact-description {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .btn-contact {
    padding: 16px 32px;
    font-size: 0.9375rem;
    width: 100%;
    max-width: 300px;
  }

  .footer-container {
    grid-template-columns: auto 1fr;
    gap: var(--spacing-md);
  }

  .footer-logo {
    justify-content: flex-start;
  }

  .footer-right {
    align-items: flex-end;
    gap: var(--spacing-sm);
  }

  .footer-socials {
    justify-content: flex-end;
  }

  .footer-socials a {
    width: 20px;
    height: 20px;
  }

  .footer-location {
    text-align: right;
  }

  .footer-location p {
    font-size: 0.75rem;
  }
}

/* Responsive - Tablet específico */
@media (min-width: 751px) and (max-width: 1000px) {
  .hero-title {
    font-size: 3.25rem;
  }

  .contact-container {
    grid-template-columns: 1fr auto;
  }

  .contact-text {
    text-align: left;
  }

  .contact-title {
    font-size: 2.25rem;
  }

  .contact-description {
    font-size: 1rem;
  }

  .footer-container {
    grid-template-columns: auto 1fr;
  }

  .footer-logo {
    justify-content: flex-start;
  }

  .footer-right {
    align-items: flex-end;
  }
}
