.header {
    position: relative;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    image-rendering: auto;
}

.route-header {
    background-image: url('img-routes/11.jpg');
}

@media (min-width: 769px) {
    .header {
        background-position: center 30%;
    }
}

@media (max-width: 768px) {
    .header {
        background-position: 35% 25% !important;
        background-attachment: fixed !important;
    }
}

/* Contenedor del texto */
.header-content {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

/* Caja del texto */
.header-txt {
    text-align: center;
    padding: 0 20px;
}

/* TÍTULO */
.header-txt h1 {
    color: #fff;
    font-size: 55px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.9);
    margin: 0;
}

.header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
    pointer-events: none;
}

:root {
    --route-green: #3a7d44;
    --route-dark: #111;
    --route-light: #f5f5f5;
}

/* ---------- HERO ---------- */
.route-hero {
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.route-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto; 
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

.route-hero-text {
    position: absolute;
    bottom: 15%;
    left: 8%;
    color: #fff;
    max-width: 600px;
}

.route-hero-text h1 {
    font-size: 42px;
    margin-bottom: 10px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.route-hero-text p {
    font-size: 18px;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ---------- SECTIONS ---------- */
.route-description,
.route-info,
.route-birds,
.route-itinerary,
.route-gallery {
    margin-top: 80px;
}

.route-description h2,
.route-birds h2,
.route-itinerary h2,
.route-gallery h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.route-description p {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 16px;
    text-align: center;
}

/* ---------- INFO CARDS ---------- */
.route-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    text-align: center;
}

.route-info .info-box {
    background: var(--route-light);
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.route-info i {
    font-size: 28px;
    color: var(--route-green);
    margin-bottom: 10px;
}

.route-info h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

/* ---------- BIRDS LIST ---------- */
.route-birds ul {
    max-width: 700px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.route-birds li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

/* ---------- ITINERARY ---------- */
.route-itinerary p {
    max-width: 900px;
    margin: 0 auto 15px;
    line-height: 1.6;
}

.route-itinerary strong {
    color: var(--route-green);
}

/* ---------- GALLERY ---------- */
.route-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.route-gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.route-gallery img:hover {
    transform: scale(1.05);
}

/* ---------- CTA ---------- */
.route-cta {
    margin-top: 100px;
    padding: 80px 20px;
    background: var(--route-dark);
    color: #fff;
    text-align: center;
}

.route-cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.route-cta p {
    max-width: 600px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {

    .header-txt h1 {
        margin-top: 300px;
        font-size: 35px;

    }
    
    .route-hero {
        height: 55vh;
    }

    .route-hero-text {
        left: 5%;
        right: 5%;
        bottom: 10%;
    }

    .route-hero-text h1 {
        font-size: 30px;
    }

    .route-description p {
        padding: 0 15px;
    }
}

/* ---------- INFORMATION SECTION ---------- */
.route-info-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.route-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-item {
    background: var(--route-light);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.info-item h4 {
    margin-bottom: 8px;
    color: var(--route-green);
}

/* ---------- TOUR PLAN ---------- */
.route-plan h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.plan-item {
    display: flex;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto 28px;
    align-items: flex-start;
    background: var(--route-light);
    padding: 22px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    border-left: 4px solid var(--route-green);
}

.plan-item span {
    font-size: 22px;
    font-weight: bold;
    color: var(--route-green);
    min-width: 44px;
    text-align: center;
    line-height: 1.4;
    flex-shrink: 0;
}

.plan-item div p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: #444;
}

/* ---------- ROUTE NAV BUTTONS ---------- */
.route-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px auto 60px;
    flex-wrap: wrap;
}

.route-btn {
    padding: 12px 26px;
    border: 2px solid var(--route-green);
    border-radius: 30px;
    color: var(--route-green);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.route-btn:hover {
    background: var(--route-green);
    color: #fff;
}

.route-section {
    display: none;
}

.route-btn {
    font-size: 1.1rem;              /* mismo tamaño que home */
    padding: 14px 32px;           /* más grandes */
    border-radius: 999px;         /* pill button */
    border: 2px solid #1f9d55;
    background: transparent;
    color: #1f9d55;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.35s ease;
}

.route-btn:hover {
    background: #1f9d55;
    color: #fff;
    transform: translateY(-2px);
}

/* BOTÓN ACTIVO */
.route-btn.active {
    background: #1f9d55;
    color: #fff;
    box-shadow: 0 6px 18px rgba(31, 157, 85, 0.35);
}

.slider {
    animation: none;
}

.btn-scroll-top {
    position: fixed;
    bottom: 100px; /* Ubicado arriba del de WhatsApp (que suele estar en 20px) */
    right: 25px;
    width: 60px;   /* Tamaño un poco más grande */
    height: 60px;
    background-color: #ffffff !important; 
    color: #21ba66 !important;
    text-align: center;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    opacity: 0; /* Invisible al inicio */
    visibility: hidden;
    text-decoration: none !important;
}

.btn-scroll-top i {
    font-size: 20px;
}

.btn-scroll-top span {
    font-size: 10px;
    font-weight: bold;
}

.btn-scroll-top:hover {
    background-color: #ff9800 !important; /* Naranja al pasar el mouse */
    color: #ff9800;
    transform: translateY(-5px); /* Pequeño salto */
}

/* Clase para mostrar el botón cuando bajamos */
.btn-scroll-top.show {
    opacity: 1;
    visibility: visible;
}

/* ---------- INFO SECTION BOTTOM SPACING (PC only) ---------- */
@media (min-width: 1201px) {
    #info.route-section {
        margin-bottom: 60px;
    }
    #birdlist.route-section {
        margin-bottom: 30px;
    }
    .plan-title {
        margin-left: 75px;
    }
}

/* ---------- SECTION WRAPPER LAYOUT ---------- */
.section-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    align-items: start;
    padding: 0 20px;
}

.section-content {
    min-height: 400px;
}

/* ---------- INFO FORM SIDEBAR ---------- */
.info-form-sidebar {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    position: sticky;
    top: 100px;
    height: fit-content;
    margin-right: 20px;
    margin-bottom: 25px;
}

.info-form-sidebar h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: #111;
    font-weight: 600;
    text-align: center;
}

.form-subtitle {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

/* ---------- FORM GROUPS ---------- */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1f9d55;
    box-shadow: 0 0 0 3px rgba(31, 157, 85, 0.1);
    background-color: #fafafa;
}

.form-group input::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-size: 14px;
}

/* ---------- FORM SUBMIT BUTTON ---------- */
.form-submit-btn {
    width: 100%;
    padding: 12px;
    background: #1f9d55;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.form-submit-btn:hover {
    background: #1a7d45;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 157, 85, 0.3);
}

.form-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(31, 157, 85, 0.2);
}

/* ---------- RESPONSIVE FORM ---------- */
@media (max-width: 1200px) {
    .section-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .info-form-sidebar {
        position: relative;
        top: 0;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .section-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .info-form-sidebar {
        padding: 20px;
        max-width: 100%;
        margin-right: 0;
    }

    .info-form-sidebar h3 {
        font-size: 16px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* ---------- GALLERY GRID WITH SIDEBAR ---------- */
.gallery-grid-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-grid-sidebar img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.gallery-grid-sidebar img:hover {
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .gallery-grid-sidebar {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .gallery-grid-sidebar {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-grid-sidebar img {
        height: 200px;
    }
}

/* ---------- SPECIES SECTION ---------- */
.species-section {
    margin-top: 80px;
    margin-bottom: 150px;
    padding: 50px 30px;
    background: #f5f5f5;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .species-section {
        margin-bottom: 80px;
        padding: 30px 20px;
    }
}

/* ---------- LIGHTBOX MODAL ---------- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    transition: transform 0.2s ease;
    cursor: zoom-in;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #1f9d55;
    transform: scale(1.2);
}

.lightbox-nav {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    z-index: 10001;
}

.lightbox-prev,
.lightbox-next {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid #1f9d55;
    color: #fff;
    font-size: 30px;
    padding: 15px 25px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: #1f9d55;
    transform: scale(1.1);
}

.gallery-img {
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-img:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 30px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 24px;
        padding: 10px 18px;
    }

    .lightbox-nav {
        gap: 20px;
        margin-top: 20px;
    }
}

/* Responsive para información grid */
@media (max-width: 768px) {
    .route-info-grid {
        grid-template-columns: 1fr;
    }
}
/* ---------- GALLERY: formulario centrado solo en móvil ---------- */
@media (max-width: 1200px) {
 .info-form-sidebar {
        max-width: 500px;
        margin: 0vw !important;
        position: relative;
        top: 0;
        width: 100%;
        margin-bottom: 25px !important;
    }
}
/* ---------- FORMULARIO: textos igual al resto en móvil ---------- */
@media (max-width: 768px) {
    .info-form-sidebar h3 {
        font-size: 18px;
    }

    .form-subtitle {
        font-size: 15px;
    }

    .form-group label {
        font-size: 16px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }

    .form-submit-btn {
        font-size: 18px;
    }
}
/* ---------- BIRD LIST SECTION ---------- */
.bird-family-block {
    background: var(--route-light);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    border-left: 4px solid var(--route-green);
}

.bird-family-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.bird-family-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.bird-family-name {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.bird-species-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0 20px;
}

.bird-species-list li {
    display: flex;
    flex-direction: column;
    padding: 7px 0;
    border-bottom: 1px solid #e8e8e8;
}

.bird-species-list li:last-child {
    border-bottom: none;
}

.bird-common {
    font-size: 17px !important;
    font-weight: 600;
    color: #222;
}

.bird-scientific {
    font-size: 16px !important;
    color: #888;
    font-style: italic;
    margin-top: 1px;
}

@media (max-width: 768px) {
    .bird-family-block {
        padding: 14px 14px;
    }

    .bird-species-list {
        grid-template-columns: 1fr;
    }

    .bird-family-name {
        font-size: 17px;
    }

    .bird-common {
        font-size: 16px;
    }

    .bird-scientific {
        font-size: 14px;
    }
}
/* ---------- BIRD LIST: layout fila + badges ---------- */
.bird-species-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
}
.bird-species-list li:last-child { border-bottom: none; }

/* nombre + científico apilados a la izquierda */
.bird-common  { display: block; font-size: 14px; font-weight: 600; color: #222; }
.bird-scientific { display: block; font-size: 12px; color: #888; font-style: italic; margin-top: 1px; }

/* grupo de badges a la derecha */
.bird-badges {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
    align-items: center;
}

.bird-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    cursor: default;
}

@media (max-width: 768px) {
    .bird-badge { font-size: 12px; padding: 3px 8px; }
    .bird-common { font-size: 16px; }
    .bird-scientific { font-size: 14px; }
}
/* ---------- BIRD FAMILY DIET ---------- */
.bird-family-diet {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #888;
    font-style: italic;
    margin-top: 2px;
    letter-spacing: 0.2px;
}

@media (max-width: 768px) {
    .bird-family-diet {
        font-size: 11px;
    }
}

.bird-family-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}