:root {
    --white: #ffffff;
    --green: #2f7d32;
    --green-soft: #e9f5ea;
    --orange: #f39c12;
    --orange-soft: #fff3df;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
}

* { box-sizing: border-box; }


body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #ffffff !important;  /* 👈 blanco total */
}

.site-header {
    max-width: 1100px;   /* igual que .page */
    margin: 0 auto;      /* centrado */
    width: 100%;

    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;

    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header > * {
    flex-shrink: 1;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
}

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

.nav a {
    text-decoration: none;
    color: var(--green);
    font-weight: 600;
}

.nav .btn-primary {
    color: white;
}

.nav .btn-outline {
    color: #2f5d3a;
}

.nav .btn-secondary {
    color: white;
}

.btn-warning-soft {
    background-color: #F57C00; /* naranja más profundo */
    color: white;
    border-radius: 25px;
}

.btn-warning-soft:hover {
    background-color: #E65100;
}

.page {
    padding: 24px;
    background: var(--white);  /* o #ffffff */    
    max-width: 1100px;   /* mismo ancho que tus cards */
    margin: 0 auto;
}

.hero-banner {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}


.fab-mensajes {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 1000;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.fab-mensajes:hover {
    background: #1b5e20;
    transform: scale(1.08);
}

.fab-mensajes-prestador {
    bottom: 98px;
    background: #1565c0;
}

.fab-mensajes-prestador:hover {
    background: #0d47a1;
}

.fab-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
}

.footer-banner {
    height: 400px;
    border-radius: 20px;

    width: 100%;
    margin: 40px auto;

    overflow: hidden;

    background: linear-gradient(135deg, #2f7d32, #3fa34d);

    display: flex;

    justify-content: center;
    align-items: center;
    text-align: center;

}

.footer-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.footer-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 60px;
    color: white;
    max-width: 600px;

}

.footer-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* espacio entre "Quiénes somos" e Instagram */
    margin-top: 10px;
}

.footer-actions a {
    position: relative;
    z-index: 4;
}


.hero-top-actions {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    padding: 60px;
    color: white;
}

.hero-overlay h1 {
    font-size: 3rem;
    margin-bottom: 12px;
}

.hero-overlay p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    text-align: center;
}

.btn-primary {
    background: var(--orange);
    color: white;
}

.btn-secondary {
    background: var(--green);
    color: white;
}

.section-head {
    margin-bottom: 16px;
}

.section-head h1,
.section-head h2 {
    color: var(--green);
    margin-bottom: 8px;
}

.carousel-section {
    margin-bottom: 24px;
}


.carousel {
    position: relative;
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--green-soft);
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--green);
    font-size: 24px;
    cursor: pointer;
}

.carousel-btn.left { left: 16px; }
.carousel-btn.right { right: 16px; }

.grid {
    display: grid;
    gap: 20px;
}

.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.route-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: justify;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body, .card h2, .card p, .team-list, .form-card {
    padding: 20px;
}

.route-card {
    padding: 20px;
    background: linear-gradient(180deg, #fff 0%, #f8fff8 100%);
}

.route-number {
    display: inline-block;
    background: var(--orange-soft);
    color: #a55d00;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tag {
    display: inline-block;
    background: var(--green-soft);
    color: var(--green);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
}

.form-section {
    display: flex;
    justify-content: center;
    padding: 30px 0;
    max-width: 1100px;
    margin: 0 auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.team-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
}

.team-item {
    background: #fafafa;
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    width: calc(50% - 8px);
    text-align: center;
}

.flash-wrap {
    margin-bottom: 16px;
    display: grid;
    gap: 10px;
}

.flash {
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 600;
}

.flash.success {
    background: #edfdf0;
    color: #1b5e20;
}

.flash.danger {
    background: #fff1f2;
    color: #9f1239;
}

.site-footer {
    text-align: center;
    padding: 24px;
    color: var(--muted);
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
    }

    .user-name {
        display: none; 
    }

    .hero-overlay {
        padding: 28px;
    }

    .hero-overlay h1 {
        font-size: 2rem;
    }

    .page {
        padding: 18px;
    }

    .carousel {
        height: 280px;
    }

    .hero-banner {
        height: 340px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .side-banner {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .logo-container img {
        max-width: 95px;
        height: auto;
    }

    .user-pill span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .user-pill {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .user-avatar img {
        width: 36px;
        height: 36px;
        border-radius: 50%;
    }


}





.header {
    display: flex;
    align-items: center;
    padding: 15px 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-container img {
    height: 60px; /* ajusta tamaño */
    width: auto;
}

.logo-container span {
    font-size: 22px;
    font-weight: bold;
    color: #2e7d32; /* verde que ya usas */
}

.tips-section {
    padding: 60px 20px;
    background-color: #f7f7f7;
    text-align: center;
}

.tips-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2f5d3a;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.tip-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.tip-card h3 {
    margin: 16px 0 10px;
    color: #2f5d3a;
}

.tip-card p {
    padding: 0 16px 20px;
    color: #555;
    font-size: 0.95rem;
}

.footer-actions {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    height: 80px;
    width: auto;
    transition: transform 0.2s ease;
}

.footer-logo:hover {
    transform: scale(1.1);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 20px;
}

/* CARDS */
.card {
    background: white;
    padding: 20px;
    border-radius: 16px;
}


.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f3f4f6;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.buscador-albums {
    max-width: 900px;
    margin: 0 auto 24px auto;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.albums-filter-form .filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.albums-filter-form .filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    display: block;
}

.albums-filter-form .filter-item {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 180px;
}

.albums-filter-form select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #f9f9f9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232f7d32' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 36px 10px 14px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s;
    width: 100%;
}

.albums-filter-form select:focus {
    outline: none;
    border-color: var(--green);
}

.albums-filter-form .filter-item-limpiar {
    flex: 0 0 auto;
    min-width: unset;
}

.albums-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
}

.albums-section h1 {
    margin-bottom: 24px;
    font-size: 2rem;
    font-weight: 700;
    color: #0f2742;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.album-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.album-cover {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    margin-bottom: 16px;
    border-radius: 12px;
    margin-bottom: 12px;

}

.album-info {
    margin-bottom: 18px;
}

.album-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #10243e;
}

.album-info p {
    font-size: 1rem;
    line-height: 1.5;
    color: #5c6b80;
    margin: 0;
}

.album-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.album-actions form {
    width: 100%;
    margin: 0;
}

.full-width {
    width: 100%;
}

@media (max-width: 992px) {
    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .albums-grid {
        grid-template-columns: 1fr;
    }

    .album-cover {
        height: 200px;
    }
}

.route-detail-page {
    padding: 32px 20px;
    display: flex;
    justify-content: center;
}

.route-detail-card {
    width: 100%;
    max-width: 1100px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 32px;
}

.route-detail-header h1 {
    margin: 0 0 10px;
    font-size: 2rem;
    color: #1f3b2d;
}

.route-detail-header p {
    margin: 0 0 28px;
    color: #5f6f65;
    line-height: 1.6;
}

.route-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 18px;
}

.detail-item {
    background: #f7faf8;
    border: 1px solid #e2ebe5;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.detail-item .label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2f7d32;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-item .value {
    font-size: 1rem;
    color: #243328;
    line-height: 1.5;
}

.route-detail-actions {
    margin-top: 28px;
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .route-detail-card {
        padding: 22px;
    }

    .route-detail-grid {
        grid-template-columns: 1fr;
    }

    .route-detail-header h1 {
        font-size: 1.6rem;
    }
}

.album-cover.gris {
    filter: grayscale(100%);
    opacity: 0.75;
}

.input-field {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin-top: 5px;
    font-family: inherit;
}

textarea.input-field {
    min-height: 80px;
    resize: vertical;
}

.label-verde {
    color: #2e7d32; /* verde tipo tu diseño */
    font-weight: 600;
}

.input-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #d7dfd8;
    border-radius: 12px;
    font-size: 1rem;
    margin-top: 8px;
    box-sizing: border-box;
}

.route-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.input-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #d7dfd8;
    border-radius: 12px;
    font-size: 1rem;
    margin-top: 8px;
    box-sizing: border-box;
}

textarea.input-field {
    min-height: 120px;
    resize: vertical;
}

.foto-completa {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 16px;
    background-color: #f5f5f5;
    display: block;
    margin: 0 auto;
}

.stars-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 10px;
}

.stars-rating input {
    display: none;
}

.stars-rating label {
    font-size: 2rem;
    color: #d0d0d0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.stars-rating input:checked ~ label {
    color: #f4a300;
}

.stars-rating label:hover,
.stars-rating label:hover ~ label {
    color: #f4a300;
}

.stars-view {
    color: orange; /* o el tono que quieras */
    font-size: 18px; /* opcional, para que se vean mejor */
}

.carousel {
    position: relative;
}

.carousel-overlay {
    position: absolute;
    top: 40px;       /* distancia desde arriba */
    left: 40px;      /* distancia desde la izquierda */

    transform: none; /* quitamos el centrado */
    text-align: left;

    color: white;
    z-index: 2;

    max-width: 500px; /* importante para que no se extienda mucho */
    
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.carousel-overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.carousel-overlay p {
    margin-left: 40px;
    opacity: 0.9;
}


/* -------------------------
   DETALLE CONSEJOS
-------------------------- */

.tip-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.consejos-lista {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.consejo-card {
    display: grid;
    grid-template-columns: 280px 1fr 220px;
    gap: 24px;
    background: white;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    align-items: start;
}

.consejo-img img,
.consejo-publicidad img {
    width: 100%;
    border-radius: 14px;
    display: block;
}

.consejo-info h2 {
    margin: 8px 0;
    color: #1f5f3b;
}

.consejo-info h4 {
    margin: 0 0 12px 0;
    color: #666;
    font-weight: 500;
}

.consejo-info p {
    line-height: 1.6;
}

.consejo-tag {
    display: inline-block;
    background: #e8f3eb;
    color: #1f5f3b;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.sin-publicidad {
    background: #f3f3f3;
    border-radius: 14px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    text-align: center;
    padding: 20px;
}

@media (max-width: 900px) {
    .consejo-card {
        grid-template-columns: 1fr;
    }

    .header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap; /* 🔥 CLAVE */
    }

    .header-top > * {
        flex-shrink: 1;
    }

    .header-top img {
        max-width: 120px; /* reduce logo */
    }

    .user-info {
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* formato perfiles*/

.perfil-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.perfil-header-card {
    background: white;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.perfil-foto img,
.persona-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.perfil-foto-placeholder,
.persona-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #e8f3eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.perfil-info h1 {
    margin: 0 0 6px 0;
    color: #1f5f3b;
}

.perfil-busqueda,
.perfil-columna,
.mi-red {
    background: white;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.perfil-busqueda form {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 20px;
}

.perfil-busqueda input {
    flex: 1;
}

.personas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 10px;
}

.persona-card.horizontal {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    margin-bottom: 14px;
}

.acciones-inline {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.perfil-secciones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .perfil-secciones {
        grid-template-columns: 1fr;
    }

    .perfil-header-card {
        flex-direction: column;
        text-align: center;
    }

    .persona-card.horizontal {
        flex-direction: column;
        align-items: flex-start;
    }

    .acciones-inline {
        margin-left: 0;
    }
}

.user-pill-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    margin-left: auto;
}

.user-pill-link:hover .user-pill {
    background-color: #e5e7eb;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.perfil-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 20px 0 30px;
    flex-wrap: wrap;
}

.perfil-actions .btn:last-child {
    background: #f79809; /* rojo para logout */
}

.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #2f5d3a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* 👈 importante */
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.persona-card {
    background: #f8fbf8;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    border: 1px solid #e2ebe5;
    display: flex;              /* 👈 clave */
    align-items: center;        /* centra vertical */
    gap: 20px;                  /* espacio entre imagen y texto */
}


/* Imagen */
.persona-img img,
.persona-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* Info */
.persona-info h3 {
    margin: 0;
    font-size: 1.2rem;
}

.persona-info p {
    margin: 0;
    color: #666;
}

@media (max-width: 600px) {
    .persona-card {
        flex-direction: column;
        text-align: center;
    }
}

.busqueda-red-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.busqueda-red-form .input-field {
    flex: 1;
    min-width: 240px;
}

.selectable-card {
    cursor: pointer;
}


.selectable-card {
    cursor: pointer;
}

.selectable-card input[type="checkbox"] {
    margin-right: 10px;
}

.seleccionados-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 18px;
}

.seleccionado-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f3eb;
    color: #1f5f3b;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.chip-remove {
    border: none;
    background: transparent;
    color: #1f5f3b;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}


.invitaciones-bloque {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.seleccionados-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.seleccionado-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f3eb;
    color: #1f5f3b;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.chip-remove {
    border: none;
    background: transparent;
    color: #1f5f3b;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.selectable-card {
    cursor: pointer;
}


.invitacion-ruta-card {
    justify-content: space-between;
    margin-bottom: 14px;
}

.invitacion-ruta-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.invitacion-ruta-info h3 {
    margin: 0;
    color: #1f5f3b;
}

.invitacion-ruta-info p {
    margin: 0;
    color: #444;
}

@media (max-width: 900px) {
    .invitacion-ruta-card {
        flex-direction: column;
        align-items: flex-start;
    }
}


.estatus-invitacion {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: capitalize;
}

.estatus-pendiente {
    background: #fff3cd;
    color: #a16207;
}

.estatus-aceptada {
    background: #e8f5e9;
    color: #1b5e20;
}

.estatus-rechazada {
    background: #fdecec;
    color: #b91c1c;
}


.ruta-meta p {
    margin: 0;
    line-height: 1.35;
}

.ruta-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding: 0;
}

.ruta-meta div {
    margin: 0;
    padding: 0;
    line-height: 1.35;
}


.route-detail-header {
    margin-bottom: 8px;
}

.route-detail-header h3 {
    margin: 0;
}

.detalle-box {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #f5f7f6;
}

.titulo-seccion {
    font-size: 14px;
    font-weight: 700;
    color: #2e7d32; /* verde como tus títulos */
    margin-bottom: 10px;
}

.detalle-lista p {
    margin: 4px 0;
    line-height: 1.3;
}

.ruta-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.red-card-link:hover .network-card {
    transform: translateY(-2px);
    transition: 0.2s ease;
}


.album-resumen {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: #e8f5e9; /* verde claro */
    padding: 14px 18px;
    border-radius: 12px;
    margin: 16px 0;
}

.resumen-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
}

.resumen-item .label {
    font-weight: 600;
    color: #2e7d32;
}

.resumen-item .value {
    font-weight: 500;
}

.route-card.pendiente img {
    filter: grayscale(100%);
    opacity: 0.7;
}

.header-rutas {
    display: flex;
    justify-content: space-between; /* separa izquierda / derecha */
    align-items: center;            /* centra vertical */
    margin-bottom: 12px;
}

.network-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
}

.network-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.network-card div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.network-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.red-card-link {
    display: grid;
    grid-template-columns: 80px 150px 1fr; 
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.persona-img {
    flex-shrink: 0; /* evita que la imagen se encoja */
}

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.equipo-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #d9e3dc;
    border-radius: 10px;
    background: #f8fbf9;
    cursor: pointer;
}

.equipo-item input {
    margin-top: 3px;
}

.equipo-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.equipo-chip {
    background: #eef6f0;
    border: 1px solid #cddfd1;
    border-radius: 20px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
}

.equipo-chip:hover {
    background: #e1f0e5;
}

.cerrar-modal {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.carrusel-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.carrusel-equipo {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 420px;
}

.carrusel-slide {
    display: none;
    text-align: center;
}

.carrusel-slide.activo {
    display: block;
}

.carrusel-slide img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 12px;
}

.carrusel-btn {
    border: none;
    background: #2f8f3b;
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
}

.carrusel-btn:hover {
    opacity: 0.9;
}

.producto-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #f4a10a;
    color: white;
    text-decoration: none;
    font-weight: 600;
}


.panel-equipo-header {
    display: flex;
    justify-content: space-between; /* separa izquierda y derecha */
    align-items: center;            /* alinea vertical */
    gap: 12px;
}

#panelEquipoTitulo {
    color: #2e7d32;       /* verde BI-Pué */
    font-size: 20px;      /* más grande */
    font-weight: 700;     /* más fuerte */
    margin: 0;
}

.consejo-link {
    text-decoration: none;
    color: inherit;
}


.buscador-consejos {
    max-width: 480px;
    margin: 0 auto 30px auto;
}

.detalle-consejo-blog {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.detalle-blog-img img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 24px;
}

.detalle-blog-info h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.detalle-blog-info h3 {
    margin-bottom: 20px;
    color: #666;
}

.detalle-blog-texto {
    font-size: 1.1rem;
    line-height: 1.8;
}

.card-link {
    text-decoration: none;
    color: inherit;
}



.btn-regresar {
    max-width: 1000px;
    margin: 20px auto;
}

.btn-regresar a {
    text-decoration: none;
    color: #1f4d2e;
    font-weight: 600;
}

.buscador-historias {
    max-width: 480px;
    margin: 0 auto 30px auto;
    text-align: center;
}

.buscador-historias form {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.buscador-historias input,
.buscador-historias button {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.buscador-historias button {
    background: #1f4d2e;
    color: white;
    border: none;
    cursor: pointer;
}

.historias-lista {
    max-width: 1000px;
    margin: 0 auto 40px auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.historia-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.historia-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
}

.historia-info h2 {
    margin-bottom: 8px;
}

.historia-fecha {
    color: #666;
    margin-bottom: 14px;
}

.detalle-historia {
    max-width: 1000px;
    margin: 0 auto 40px auto;
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.detalle-historia h1 {
    margin-bottom: 10px;
}

.detalle-historia-texto {
    margin: 24px 0;
    font-size: 1.08rem;
    line-height: 1.8;
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 30px auto 0 auto;
}

.carousel-item {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 16px;
}

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

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


/* === Dany estilos === */

/* === PRESTADORES === */
.prestadores-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.prestadores-section h2 {
    color: var(--green);
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.prestadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.prestador-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.prestador-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.prestador-precio {
    font-weight: 700;
    color: var(--green);
}

.prestador-logo {
    text-align: center;
}

.prestador-logo img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.prestador-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.prestador-rating .star {
    color: #ccc;
    font-size: 18px;
}

.prestador-rating .star.filled {
    color: #f39c12;
}

.prestador-rating small {
    margin-left: 6px;
    color: #888;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    margin-top: 24px;
}

.servicios-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.servicios-table th {
    text-align: left;
    font-size: 0.85rem;
    color: var(--green);
    text-transform: uppercase;
    padding: 8px 12px;
    border-bottom: 2px solid var(--border);
}

.servicios-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    font-size: 0.95rem;
}

select.input-field {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
}

/* === REDES SOCIALES DASHBOARD === */
.redes-top-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.redes-sociales-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.red-social-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.red-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    flex-shrink: 0;
}

.red-social-row .input-field {
    flex: 1;
}

/* === PERFIL PÚBLICO DEL PRESTADOR === */
.perfil-contacto-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.perfil-contacto-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-size: 0.95rem;
}

a.perfil-link {
    text-decoration: none;
    color: var(--green);
    font-weight: 600;
}

.perfil-redes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.red-social-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--border);
    color: var(--text);
    transition: opacity 0.15s;
}

.red-social-badge:hover { opacity: 0.75; }
.red-social-badge.whatsapp  { border-color: #25d366; color: #128c5e; }
.red-social-badge.facebook  { border-color: #1877f2; color: #1877f2; }
.red-social-badge.instagram { border-color: #e1306c; color: #c13584; }
.red-social-badge.twitter   { border-color: #1da1f2; color: #1da1f2; }

@media (max-width: 640px) {
    .redes-top-row { grid-template-columns: 1fr; }
    .perfil-top-row { flex-direction: column; align-items: center; text-align: center; }
}

/* === FILA PERFIL + LOGO EN DASHBOARD === */
.perfil-logo-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .perfil-logo-row { flex-direction: column; }
    .perfil-logo-row .form-card { flex: 1 1 100% !important; }
}

/* === LOGO DEL PRESTADOR === */
.logo-preview-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 160px;
    background: #f7faf8;
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.logo-preview {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.logo-placeholder {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Perfil público: logo + info en fila */
.perfil-top-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.perfil-logo-wrap {
    flex-shrink: 0;
}

.perfil-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
}

.perfil-logo-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 14px;
    background: var(--green);
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === CALIFICACIÓN: DISPLAY === */
.rating-display-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.stars-display {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 1.6rem;
    line-height: 1;
}

.star.filled { color: #f39c12; }
.star.empty  { color: #d1d5db; }

.rating-label {
    font-size: 0.95rem;
    color: var(--muted);
}

/* === CALIFICACIÓN: INPUT INTERACTIVO === */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input label {
    font-size: 2rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.15s;
    padding: 0 2px;
}

/* Estrella marcada y todas las anteriores (right-to-left) */
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #f39c12;
}

/* Calificación dentro de la tarjeta de servicio */
.rating-servicio {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.calificar-details {
    margin-top: 8px;
    font-size: 0.85rem;
}

.calificar-details summary {
    cursor: pointer;
    color: var(--green);
    font-weight: 600;
    list-style: none;
    user-select: none;
}

.calificar-details summary::-webkit-details-marker { display: none; }

.calificar-details[open] summary { margin-bottom: 4px; }


.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 0 auto;
 
}

.form-group {
    margin-bottom: 16px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
}

.inline-form {
    display: grid;
    grid-template-columns: 1fr 120px 180px;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.fotos-grid,
.participantes-grid,
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.foto-card,
.participante-card,
.card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 12px;
}

.foto-card img,
.card-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

.usuario-resultado,
.participante-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #ececec;
    border-radius: 10px;
    margin-bottom: 10px;
}

.usuario-info {
    display: flex;
    align-items: center;
    gap: 10px;
}


.preview-portada {
    margin-top: 12px;
}

.preview-portada p {
    margin-bottom: 8px;
    font-weight: 600;
}

.img-portada-preview {
    width: 220px;
    max-width: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.editor-texto {
    width: 100%;
    min-height: 260px;
    padding: 16px;
    border: 1px solid #d9d9d9;
    border-radius: 14px;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    background: #fff;
    font-family: inherit;
    box-sizing: border-box;
}

.editor-texto:focus {
    outline: none;
    border-color: #f4a000;
    box-shadow: 0 0 0 3px rgba(244, 160, 0, 0.15);
    width: 100%;
    max-width: 900px;   /* ← aquí controlas qué tan ancho */
}


.comentarios-ruta-section {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #dcdcdc;
}

.comentarios-ruta-section h2 {
    margin-bottom: 18px;
    color: var(--green);
}

.comentarios-ruta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.comentario-ruta-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.comentario-header {
    margin-bottom: 12px;
}

.comentario-usuario {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comentario-avatar,
.comentario-avatar-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: #eef2ee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.comentario-estrellas {
    margin-top: 4px;
    font-size: 20px;
    line-height: 1;
}

.estrella {
    color: #cfcfcf;
}

.estrella.activa {
    color: #f5b301;
}

.comentario-texto {
    line-height: 1.6;
    color: #1f2937;
    white-space: pre-line;
}


.ruta-badge {
    width: 50px;
    height: 50px;
    font-size: 24px;
    animation: popStar 0.8s ease;
}

@keyframes popStar {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.mis-rutas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.ruta-realizada-link {
    text-decoration: none;
    color: inherit;
}

.ruta-realizada-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ruta-realizada-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.ruta-realizada-img img,
.ruta-realizada-placeholder {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    background: #f1f3f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ruta-realizada-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.ruta-memoria {
    line-height: 1.6;
    color: #222;
}


@media (max-width: 768px) {
    .ruta-realizada-card {
        grid-template-columns: 1fr;
    }
}


.mensaje {
    max-width: 70%;
    padding: 10px;
    border-radius: 12px;
}

.mensajes-buscador-wrap {
    position: relative;
    margin-bottom: 20px;
}

.mensajes-buscador {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.mensajes-buscador:focus {
    border-color: var(--green);
}

.mensajes-buscador-icono {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}

.chat-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #d8e2d8;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: #fff;
}

.chat-item:hover {
    background: #f7faf7;
}

.chat-info h3 {
    margin: 0 0 4px;
}

.chat-info p {
    margin: 0;
    color: #666;
}

.chat-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 350px;
    padding: 20px;
    border: 1px solid #d8e2d8;
    border-radius: 16px;
    background: #f8faf8;
    margin-bottom: 20px;
}

.mensaje {
    max-width: 72%;
    padding: 10px 14px;
    border-radius: 14px;
}

.mensaje p {
    margin: 0 0 6px;
}

.mensaje span {
    font-size: 12px;
    opacity: 0.7;
}

.mio {
    align-self: flex-end;
    background: #2e7d32;
    color: white;
}

.otro {
    align-self: flex-start;
    background: white;
    border: 1px solid #dfe7df;
}

.chat-form {
    display: flex;
    gap: 10px;
}

.chat-form input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #ccd8cc;
    border-radius: 12px;
}

.chat-form button {
    padding: 12px 18px;
}


.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef4ee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.interesados-grid {
    display: grid;
    gap: 16px;
}

.interesado-card {
    position: relative;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 18px;
    align-items: start;
    padding: 18px;
    border: 1px solid #d9e2d9;
    border-radius: 18px;
    background: #fff;
}

.interesado-img {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    overflow: hidden;
    background: #eef4ee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interesado-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.interesado-placeholder {
    font-size: 34px;
}

.interesado-info h3 {
    margin: 0 0 10px;
}

.interesado-info p {
    margin: 6px 0;
}

.interesado-badge {
    position: absolute;
    top: 12px;
    right: 16px;
    background: #1565c0;
    color: #e53935;
    font-size: 14px;
    min-width: 26px;
    height: 26px;
    border-radius: 13px;
    padding: 0 7px;
}

.interesado-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.rutas-extremos {
    display: flex;
    justify-content: space-between; /* uno a cada extremo */
    align-items: flex-start;
    margin-top: 20px;
}

.ruta-nombre {
    font-size: 16px;
}

.ruta-detalle {
    font-size: 13px;
}


.icono-ruta {
    width: 40px;
    height: auto;
}

.ruta-info {
    display: flex;
    flex-direction: column;
}

/* opcional: colores por tipo */
.ruta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 48%; /* importante para que no se encimen */
}

/* IZQUIERDA */
.ruta-item.alta {
    justify-content: flex-start;
    border-left: 4px solid #2ecc71;
    padding-left: 10px;
}

/* DERECHA */
.ruta-item.baja {
    justify-content: flex-end;
    border-right: 4px solid #e67e22;
    padding-right: 10px;
    text-align: right;
}

.ruta-item.baja .ruta-info {
    align-items: flex-end;
}

.badge-dificultad {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 4px;
}

.dificultad-verde {
    background-color: #059221;
    color: #ddf5e5;
}

.dificultad-verde-claro {
    background-color: #6a8f04;
    color: #deecc2;
}

.dificultad-amarillo {
    background-color: #ee8206;
    color: #f8d4bf;
}

.dificultad-naranja {
    background-color: #c55206;
    color: #f3c393;
}

.dificultad-rojo {
    background-color: #a00404;
    color: #e98686;
}

.dificultad-default {
    background-color: #eeeeee;
    color: #555555;
}

.ruta-img-wrapper {
    position: relative;
}

/* MEDALLA */
.ruta-badge-medalla {
    position: absolute;
    top: 8px;
    left: 8px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;

    background: linear-gradient(135deg, #f7d774, #f1c40f);
    border-radius: 50%;

    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* CANDADO ruta bloqueada */
.ruta-badge-candado {
    position: absolute;
    top: 8px;
    left: 8px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;

    background: linear-gradient(135deg, #aaaaaa, #777777);
    border-radius: 50%;

    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.route-card-bloqueada {
    opacity: 0.75;
}

.ruta-bloqueada-msg {
    color: #888;
    font-size: 0.82rem;
    margin-top: 4px;
    font-style: italic;
}

/* OPCIONAL: título sobre imagen */
.persona-info {
    position: absolute;
    top: 8px;
    left: 50px; /* para no chocar con la medalla */
    color: white;
    font-size: 14px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.ruta-titulo {
    background-color: #e67e22;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    margin: 10px 0 4px;
    padding: 10px 14px;
    border-radius: 8px;
    display: block; /* 🔥 clave para ocupar todo el ancho */
    width: 100%; /* 🔥 asegura que llene todo */
    line-height: 1.2;
}

.side-banner {
    min-height: 420px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 250px;  
}

/* Tus imágenes */
.side-banner.left {
    background-image: url("/static/img/banner-left.jpg");
}

.side-banner.right {
    background-image: url("/static/img/banner-right.jpg");
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* CELULAR */
@media (max-width: 768px) {
    .about-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .side-banner {
        display: block;
        width: 100%;
        min-height: 280px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .side-banner.left {
        order: 1;
    }

    .about-grid article:nth-of-type(1) {
        order: 2;
    }

    .side-banner.right {
        order: 3;
    }

    .about-grid article:nth-of-type(2) {
        order: 4;
    }

    .historia-card {
        grid-template-columns: 1fr;
    }

    .historia-img img {
        height: 220px;
    }

    .rutas-extremos {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .ruta-item {
        width: auto;
        justify-content: center;
    }

    .ruta-item.baja {
        justify-content: center;
        border-right: none;
        border-left: 4px solid #e67e22;
        padding-right: 0;
        padding-left: 10px;
        text-align: left;
    }

    .ruta-item.baja .ruta-info {
        align-items: flex-start;
    }

    .rutas-stats {
        text-align: center;
    }
}

.descripcion-con-formato {
    white-space: pre-line;
}


.rutas-montana-card {

    width: 100%;
    height: 260px;

    padding-top: 10px;
    margin-bottom: 18px;

    background-repeat: no-repeat;
    background-position: center 70px;
    background-size: 58% auto;
}

.rutas-montana-card h3 {
    text-align: center;
    font-size: 20px;
    color: #001f3f;
    margin-bottom: 20px;
}

.rutas-grid {

    display: grid;

    grid-template-columns: 130px 1fr 130px;

    align-items: center;

    width: 100%;
    max-width: 560px;

    margin: 0 auto 140px;
}

.ruta-box {

    background: #ffffff;

    padding: 10px 12px;

    border-radius: 14px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.10);

    width: 115px;

    z-index: 5;

    position: relative;
}

.ruta-baja {
    justify-self: start;
    border-left: 4px solid #2ecc71;
}

.ruta-baja strong {
    color: #16a34a;
}

.ruta-alta {
    justify-self: end;
    border-left: 4px solid #f28c00;
}

.ruta-alta strong {
    color: #f28c00;
}

.persona-montana {

    background-repeat: no-repeat;

    background-position: center 95px;

    background-size: 62% auto;
}

.perfil-montana {

    background-image: url("../img/montana_extremos.png");

    background-repeat: no-repeat;

    background-position: center 130px;

    background-size: 80% auto;
}

.red-rutas-stats {
    font-size: 13px;
}

.red-rutas-stats p {
    margin: 3px 0;
}

.red-rutas-info {
    width: 100%;
    text-align: center;
}

.red-rutas-grid {
    display: grid;
    grid-template-columns: 105px 150px 105px;
    align-items: center;
    gap: 8px;
    margin: 6px auto 8px;
}

.red-montana-img {
    height: 90px;
    background-image: url("../img/montana_extremos.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.red-ruta-box {
    background: #ffffff;
    padding: 7px 8px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.10);
    text-align: left;
    width: 95px;
}

.red-ruta-box strong {
    display: block;
    font-size: 12px;
    margin-bottom: 3px;
}

.red-ruta-box span {
    display: block;
    font-size: 10px;
    line-height: 1.1;
    color: #001f3f;
    font-weight: 600;
}

.red-ruta-box small {
    display: block;
    font-size: 9px;
    margin-top: 2px;
    color: #555;
}

.red-ruta-baja {
    border-left: 4px solid #2ecc71;
}

.red-ruta-baja strong {
    color: #16a34a;
}

.red-ruta-alta {
    border-left: 4px solid #f28c00;
}

.red-ruta-alta strong {
    color: #f28c00;
}

.rutas-stats {
    font-size: 13px;
}
