/* RESET Y ESTILOS BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de colores principal */
    --color-primary: #ff4b33; /* Naranja para ciclismo */
    --color-secondary: #1a2b45; /* Azul oscuro */
    --color-accent: #2bd9fe; /* Azul claro */
    --color-light: #f4f5f9;
    --color-dark: #161c2d;
    --color-grey: #9aa5b9;
    --color-success: #28a745;
    --color-error: #dc3545;
    
    /* Sombras y transiciones */
    --shadow-sm: 0 2px 4px rgba(22, 28, 45, 0.1);
    --shadow-md: 0 4px 12px rgba(22, 28, 45, 0.12);
    --shadow-lg: 0 18px 40px rgba(22, 28, 45, 0.1);
    --transition: all 0.3s ease;
    
    /* Bordes redondeados */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--color-secondary);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* UTILIDADES */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #e83e26;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: #253655;
    transform: translateY(-2px);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--color-secondary);
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-primary);
}

.section-header p {
    color: var(--color-grey);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* NAVEGACIÓN */
.main-nav {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
}

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

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

.nav-links a.cta-btn {
    background-color: var(--color-primary);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    height: 80vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    /* Default background for roadcycling.html */
    background-image: url('../img/lavueltaEspaña.JPG');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 43, 69, 0.6), rgba(26, 43, 69, 0.8));
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* CARACTERÍSTICAS */
.features-section {
    padding: 120px 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: rgba(255, 75, 51, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--color-primary);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.feature-card p {
    color: var(--color-grey);
}

/* SECCIONES CON IMAGEN Y TEXTO */
.offer-section,
.accommodation-section,
.food-section {
    padding: 80px 0;
    background-color: white;
}

.why-section,
.routes-section {
    padding: 80px 0;
    background-color: var(--color-light);
}

.offer-section .container,
.accommodation-section .container,
.food-section .container,
.why-section .container,
.routes-section .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.container.reverse {
    flex-direction: row-reverse;
}

.section-image {
    flex: 1;
}

.section-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    object-fit: cover;
    height: 400px;
}

.section-content {
    flex: 1;
}

.section-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-secondary);
    position: relative;
    padding-bottom: 15px;
}

.section-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

.container.reverse .section-content h2::after {
    left: 0;
}

.section-content p {
    margin-bottom: 25px;
    color: var(--color-grey);
    font-size: 1.05rem;
}

.benefits-list li,
.amenities-list li,
.food-benefits li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.benefits-list i,
.amenities-list i,
.food-benefits i {
    color: var(--color-primary);
    margin-right: 10px;
    font-size: 18px;
}

/* ESTADÍSTICAS */
.stats-container {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-text {
    color: var(--color-grey);
    font-size: 0.9rem;
}

/* RUTAS */
.route-highlights {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.route-stat {
    text-align: center;
    flex: 1;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.route-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* TESTIMONIOS */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--color-light);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    color: var(--color-primary);
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--color-dark);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 3px;
    font-size: 1rem;
}

.testimonial-author p {
    font-size: 0.85rem;
    color: var(--color-grey);
}

/* STRAVA CONNECT */
.strava-section {
    padding: 80px 0;
    background-color: white;
    text-align: center;
}

.strava-connect-container {
    max-width: 500px;
    margin: 0 auto;
}

.strava-btn {
    display: inline-block;
    margin-bottom: 20px;
    transition: var(--transition);
}

.strava-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* FORMULARIO DE RESERVA */
.reserve-section {
    padding: 80px 0;
    background-color: var(--color-light);
}

.reservation-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    min-width: calc(50% - 10px);
}

.form-group.full-width {
    min-width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-secondary);
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-group select:focus,
.form-group input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 75, 51, 0.2);
}

#submit-btn {
    background-color: var(--color-primary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

#submit-btn:hover {
    background-color: #e83e26;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* BOTONES DEL FORMULARIO */
.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.form-buttons button,
.form-buttons .whatsapp-btn {
    flex: 1;
    min-width: 200px;
    padding: 14px 20px;
    border-radius: var(--border-radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border: none;
}

.whatsapp-btn {
    background-color: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background-color: #1da851;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.whatsapp-btn i {
    font-size: 18px;
}

/* Responsive para botones */
@media (max-width: 768px) {
    .form-buttons {
        flex-direction: column;
    }
    
    .form-buttons button,
    .form-buttons .whatsapp-btn {
        width: 100%;
        min-width: auto;
    }
}

#form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

#form-status.success {
    color: var(--color-success);
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--color-success);
    border-radius: var(--border-radius-md);
    padding: 12px 20px;
}

#form-status.error {
    color: var(--color-error);
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--color-error);
    border-radius: var(--border-radius-md);
    padding: 12px 20px;
}

/* FOOTER */
.main-footer {
    background-color: var(--color-secondary);
    color: white;
    padding: 70px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: #b4c0d3;
    font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-size: 1.2rem;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-links a {
    color: #b4c0d3;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #b4c0d3;
}

.footer-contact ul li i {
    margin-right: 10px;
    color: var(--color-primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #b4c0d3;
}

/* MEDIA QUERIES */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .offer-section .container,
    .accommodation-section .container,
    .food-section .container,
    .why-section .container,
    .routes-section .container {
        flex-direction: column;
    }
    
    .container.reverse {
        flex-direction: column;
    }
    
    .section-image {
        margin-bottom: 30px;
    }
    
    .section-content h2::after {
        left: 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-links.active {
        max-height: 400px;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 20px;
        border-radius: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-group {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-content h2 {
        font-size: 1.8rem;
    }
    
    .reservation-card {
        padding: 30px 20px;
    }
}

/* PAGE-SPECIFIC HERO BACKGROUNDS */
/* Imagen específica para zona.html */
body.zona-page .hero {
    background-image: url('../img/paseo montañas 3 corredores.png');
}

/* Imagen específica para pack.html */
body.pack-page .hero {
    background-image: url('../img/momento descanso.png');
}

/* Imagen específica para comida.html */
body.comida-page .hero {
    background-image: url('../img/calidadcomida.png');
}

/* Imagen específica para roadcycling.html */
body.roadcycling-page .hero {
    background-image: url('../img/lavueltaEspaña.JPG');
}

/* Imagen específica para alojamiento.html */
body.alojamiento-page .hero {
    background-image: url('../img/cocina.png');
}

/* Imagen específica para reserve.html */
body.reserve-page .hero {
    background-image: url('../img/grupo-ciclistas.png');
}
