/* Variables y estilos base */
:root {
    --primary-color: #df9148;
    --secondary-color: #ca5141;
    --text-light: #ffffff;
    --text-dark: #333333;
    --nav-bg: rgba(202, 81, 65, 0.95);
    --nav-hover: #e67e22;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

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

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

.main-header {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    color: var(--text-light);
    padding: 1.3rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    
}

.header-logo-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    
}

.logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.title-subtitle h1 {
    font-size: 3rem;
    margin: 0;
    line-height: 1.2;
}

.title-subtitle .tagline {
    font-size: 0.8rem;
    margin: 0;
    font-weight: 300;
    opacity: 0.9;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-light);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-light);
}

.nav-link:hover::after {
    width: 100%;
}

/* Efecto activo para la página actual */
.nav-link.active {
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        padding: 0.5rem;
    }
    
    .header-logo-title {
        margin-bottom: 0.5rem;
    }
    
    .main-nav {
        width: 100%;
        justify-content: space-around;
        gap: 0.5rem;
        padding: 0.5rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.144);
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
}

/* Secciones generales */
section {
    padding: 3rem 5%;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: 2rem;
    color: var(--secondary-color);
    text-align: center;
}

/* Hero section */
.hero {
    position: relative;
    background: url('./resource/Fondo.jpeg') no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    min-height: 85vh;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.hero h2,
.hero p,
.hero .button {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
}

/* Botones */
.button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: var(--transition);
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Sección Quiénes Somos */
.historia-section {
    background-color: var(--bg-light);
    min-height: 85vh;
}

.card-horizontal {
    display: flex;
    flex-direction: row;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 1200px;
    width: 100%;
}

.card-text {
    flex: 1;
    padding: 2rem;
    text-align: left;
}

.card-image {
    flex: 1;
    min-height: 300px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carrusel de aventuras */
.aventura-carousel-section {
    background-color: var(--bg-light);
    min-height: 85vh;
}

.carousel {
    position: relative;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 50vh;
    max-height: 600px;
    object-fit: cover;
}

.caption {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-light);
    padding: 1.5rem;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.caption h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-light);
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: var(--transition);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* Sección de planes */
.planes-section {
    background-color: white;
    min-height: 85vh;
}

.planes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}


.testimonios-section {
  padding: 3rem 1rem;
  background-color: #fff7f4;
  text-align: center;
  min-height: 85vh;
}

.testimonial-carousel {
  overflow: hidden;
  max-width: 800px;
  margin: 2rem auto;
  position: relative;
}

.testimonial-track {
  display: flex;
  transition: transform 1s ease;
}

.testimonial-card {
  min-width: 100%;
  padding: 2rem;
  box-sizing: border-box;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.testimonial-card p {
  font-style: italic;
  color: #444;
}

.testimonial-card h4 {
  margin-top: 1rem;
  color: #df9148;
}




/* Sección de contacto */
.contacto-section {
    background-color: var(--bg-light);
}

.contacto-header {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

.formulario-container {
    width: 100%;
    max-width: 800px;
    height: 600px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    background: linear-gradient(to left, var(--secondary-color), var(--primary-color));
    color: var(--text-light);
    text-align: center;
    padding: 2rem 5%;
}

/* Media Queries para responsividad */
@media (max-width: 992px) {
    html {
        scroll-padding-top: 120px;
    }
    
    .card-horizontal {
        flex-direction: column;
    }
    
    .card-image {
        order: -1;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 180px;
    }
    
    header {
        padding-top: 1rem;
    }
    
    nav {
        padding: 0.5rem 0;
    }
    
    nav a {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }
    
    .carousel-slide img {
        height: 40vh;
    }
    
    .formulario-container {
        height: 700px;
    }
}

@media (max-width: 480px) {
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    nav a {
        margin: 0;
        padding: 0.5rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        padding: 0.5rem;
        font-size: 1.2rem;
    }
    
    .card-text, .card {
        padding: 1.5rem;
    }
    
    .hero {
        min-height: 60vh;
    }
}

/* Estilos para tablets */
@media (max-width: 768px) {
  .testimonial-card {
    padding: 1.5rem;
    font-size: 0.95rem;
  }

  .testimonial-card h4 {
    font-size: 1.1rem;
  }
}

/* Estilos para móviles */
@media (max-width: 480px) {
  .testimonial-card {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .testimonial-card h4 {
    font-size: 1rem;
  }

  .testimonial-carousel {
    margin: 1rem;
  }

  .testimonios-section h2 {
    font-size: 1.5rem;
  }
}




@media print {
    header, nav, footer, .button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    section {
        min-height: auto;
        page-break-after: always;
    }
}

