* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-green: #6c7838;
  --secondary-green: #5d6829;
  --light-green: #a1b350;
  --gold: #d4af37;
  --dark-text: #2c2c2c;
  --light-text: #666;
  --bg-light: #fefefe;
  --shadow: rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Raleway', sans-serif;
  background-color: var(--bg-light);
  color: var(--dark-text);
  line-height: 1.6;
  overflow-x: hidden;
}

.blanco{
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
}

/* ===== HEADER CON TRANSICIÓN SUAVE ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgb(255, 255, 255);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px var(--shadow);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Logo con transición suave */
.logoAV {
  margin: 0 auto;
  width: 25vw;
  max-width: 220px;
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Container del navegador */
.nav-container {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
}

/* Estado cuando se hace scroll */
.header.scrolled {
  padding: 15px 20px;
  justify-content: flex-start;
}

.header.scrolled .logoAV {
  max-width: 120px;
  width: auto;
  margin: 0;
}

.header.scrolled .nav-container {
  opacity: 1;
  pointer-events: auto;
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  z-index: 1001;
  position: relative;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-green);
  border-radius: 2px;
  margin: 2px 0;
  transition: all 0.3s ease;
  transform-origin: left;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #6c7838ec, #5e6829e8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right 0.5s ease;
  z-index: 999;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  color: white;
  text-decoration: none;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 300;
  margin: 20px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.3s ease;
}

.mobile-menu.active a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.3s; }

.mobile-menu a:hover {
  color: var(--gold);
  transform: scale(1.1);
}

/* ===== CONTENT SECTIONS ===== */
.section {
  position: relative;
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 200;
  text-align: center;
  margin-bottom: 10px;
  color: var(--primary-green);
  position: relative;
}

.section h2::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: linear-gradient(135deg, var(--light-green), var(--primary-green));
  margin: 30px auto;
  border-radius: 2px;
}

.section h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.7rem);
  line-height: 1.8;
  color: var(--light-text);
}

/* ===== VERTICAL CAROUSEL ===== */
.tab-menu {
  display: flex;
  justify-content: center;
  margin: 0 20px 60px;
  background: white;
  border-radius: 50px;
  padding: 8px;
  box-shadow: 0 10px 30px var(--shadow);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 5px;
}

.tab-button {
  flex: 1;
  min-width: 100px;
  padding: 16px 20px;
  border: none;
  background: transparent;
  color: var(--light-text);
  font-size: clamp(0.8rem, 2.2vw, 1.1rem);
  font-weight: 600;
  cursor: pointer;
  border-radius: 40px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.tab-button:hover {
  background: rgba(108, 120, 56, 0.1);
  color: var(--primary-green);
}

.tab-button.active {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  color: white;
  box-shadow: 0 5px 20px rgba(108, 120, 56, 0.3);
}

.carousel-section {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 20px 0;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.carousel-container {
  height: 80vh;
  aspect-ratio: 3/4;
  max-width: 450px;
  max-height: 600px;
  position: relative;
  overflow: hidden;
  cursor: grab;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  touch-action: pan-y;
  user-select: none;
  margin: 0 auto;
}

.carousel-container:active {
  cursor: grabbing;
}

.carousel-track {
  height: 100%;
  width: 100%; /* Asegurar que el track tenga el ancho completo */
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
  position: relative; /* Importante para el posicionamiento */
}

.carousel-slide {
  display: block;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.carousel-slide img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  border-radius: 10px;
}


/* Flechas de navegación */
.carousel-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.carousel-arrow:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(-50%) scale(1.1);
}

.carousel-arrow.up {
  top: 20px;
}

.carousel-arrow.down {
  bottom: 20px;
}

.carousel-arrow svg {
  width: 16px;
  height: 16px;
  fill: var(--primary-green);
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-arrow:disabled:hover {
  transform: translateX(-50%) scale(1);
  background: rgba(255, 255, 255, 0.7);
}


/* ===== INSTAGRAM ===== */
.social-links {
  text-align: center;
  margin: auto;
  margin-top: 40px;
  padding: 45px;
  max-width: 500px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.social-links p {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #4a4a4a;
}

.social-links a {
  margin-top: 15px;
  display: inline-block;
  transition: transform 0.3s ease;
  padding: 8px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--light-green), var(--primary-green));
  box-shadow: 0 5px 15px var(--shadow);
  animation: pulse 3s ease-in-out infinite;
}

/* Animación de pulso */
@keyframes pulse {
    0%, 100% {
        transform: scale(1.20);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }
    50% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    }
}

.social-links a:hover {
  box-shadow: 0 8px 25px rgba(108, 120, 56, 0.731);
  background: var(--light-green);
}

.social-links a:active {
  background: var(--light-green);
}

.social-links img {
  height: auto;
  width: auto;
  filter: brightness(0) invert(1);
  vertical-align: middle;
}

/* ===== WORK SECTION ===== */
/* .work-content {
  background: white;
  padding: 60px;
  border-radius: 20px;
  box-shadow: 0 20px 60px var(--shadow);
  position: relative;
  overflow: hidden;
}

.work-content::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 120px;
  color: rgba(108, 120, 56, 0.1);
  font-family: serif;
  line-height: 1;
}


.work-content p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  line-height: 1.8;
  color: var(--light-text);
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
  text-align: justify;
} */

.work-content {
    background: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow);
    position: relative;
    overflow: hidden;
}

.work-content::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 120px;
    color: rgba(108, 120, 56, 0.1);
    font-family: serif;
    line-height: 1;
}

.intro-text {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    text-align: justify;
}

.process-timeline {
    position: relative;
    margin: 50px 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
    animation: fadeInUp 0.8s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    box-shadow: 0 8px 20px rgba(108, 120, 56, 0.3);
    transition: transform 0.3s ease;
}

.timeline-icon:hover {
    transform: scale(1.1);
}

.timeline-icon::before {
    content: attr(data-step);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.timeline-content {
    flex: 1;
    background: var(--soft-gold);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108, 120, 56, 0.2);
}

.timeline-content h4 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--light-text);
}

.pruebas-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(108, 120, 56, 0.2);
}

.pruebas-section h3 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.pruebas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.prueba-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-green);
    position: relative;
    overflow: hidden;
}

.prueba-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    transition: height 0.3s ease;
}

.prueba-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(108, 120, 56, 0.2);
}

.prueba-card:hover::before {
    height: 8px;
}

.prueba-number {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary-green);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(108, 120, 56, 0.4);
}

.prueba-card h4 {
    color: var(--primary-green);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.prueba-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-text);
    text-align: justify;
}

.closing-text {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(108, 120, 56, 0.1), rgba(143, 168, 58, 0.1));
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.closing-text::before {
  content: 'AV';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: rgba(108, 120, 56, 0.3);
  font-style: italic;
}

.closing-text p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.8;
    color: var(--light-text);
    font-style: italic;
    margin-top: 20px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  color: white;
  margin-top: 45px;
}

.contact-section h2 {
  color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 0;
}

.contact-info h3 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-top: 0;
  margin-bottom: 30px;
  font-weight: 300;
}
.contact-info p {
  text-align: justify;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.contact-item a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--gold);
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  height: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.map-container:hover iframe {
  filter: grayscale(0%);
}


/* ===== FOOTER ===== */
.footer {
  background: #1a1a1a;
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-top: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .tab-menu {
    margin: 0 10px 40px;
    padding: 6px;
    border-radius: 25px;
  }

  .tab-button {
    padding: 20px 20px;
    font-size: clamp(0.7rem, 3vw, 0.9rem);
    min-width: 80px;
    letter-spacing: 0.5px;
  }

  .carousel-wrapper {
      flex-direction: column;
      gap: 15px;
  }

  .carousel-container {
      height: 60vh;
      max-width: 300px;
      margin: 0 20px;
  }

  .logoAV {
    width: 50vw;
    max-width: 250px;
  }

  .header.scrolled .logoAV {
    max-width: 100px;
  }

  .carousel-arrow {
    width: 35px;
    height: 35px;
  }
  
  .carousel-arrow svg {
    width: 14px;
    height: 14px;
  }

  .work-content {
    padding: 40px 25px;
  }
  
  .timeline-item {
    flex-direction: column;
    text-align: center;
  }
  
  .timeline-icon {
    margin: 0 auto 20px;
  }
  
  .pruebas-grid {
    grid-template-columns: 1fr;
  }

  .pruebas-section h3::after {
    position: static;
    margin-left: 10px;
  }

  .map-container{
    margin: auto;
    width: 80%;
    height: 100%;
  }

}

@media (max-width: 480px) {
  .hamburger {
    padding: 5px;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
  }

  .section {
    padding: 60px 15px;
  }

  .work-content,
  .contact-info {
    padding: 40px 20px;
  }

  .tab-menu {
    margin: 0 5px 30px;
    padding: 5px;
    gap: 3px;
    border-radius: 15px;
  }

  .tab-button {
    padding: 20px 20px;
    font-size: 0.75rem;
    min-width: auto;
    width: 100%;
    border-radius: 20px;

  }

  .carousel-container {
      height: 50vh;
      max-width: 250px;
      margin: 0 15px;
  }

  .logoAV {
    width: 60vw;
    max-width: 200px;
  }

  .header.scrolled .logoAV {
    max-width: 80px;
  }

  .carousel-arrow {
    width: 30px;
    height: 30px;
  }
  
  .carousel-arrow svg {
    width: 12px;
    height: 12px;
  }
  
  .map-container{
    margin: auto;
    width: 90%;
    height: 100%;
  }

}

@media (max-width: 320px) {
  .tab-menu {
    margin: 0 2px 20px;
  }

  .tab-button {
    padding: 10px 15px;
    font-size: 0.75rem;
  }

  /* .carousel-container {
    height: 55vh;
  } */
}

@media (min-width: 1200px) {
  .carousel-container {
      height: 80vh; /* Mantener la misma altura que el base */
      max-height: 600px; /* Altura máxima más conservadora */
      max-width: 450px; /* Mantener proporción 3:4 */
  }
}

/* ===== ANIMATIONS ===== */

/* Animación de entrada para las tarjetas */
.prueba-card {
  animation: slideInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.prueba-card:nth-child(1) { animation-delay: 0.1s; }
.prueba-card:nth-child(2) { animation-delay: 0.2s; }
.prueba-card:nth-child(3) { animation-delay: 0.3s; }
.prueba-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeInUp 0.8s ease-out;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--secondary-green), #4a5220);
}