/* ─────────── FICHA MODERNO ─────────── */
.mod-ficha-hero {
    margin-top: 68px;
    position: relative;
    height: 520px;
    overflow: hidden;
}
.mod-ficha-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}
.mod-ficha-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}
.mod-ficha-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 0 32px;
    z-index: 2;
}
.mod-ficha-op-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary);
    color: white;
    margin-bottom: 12px;
}
.mod-ficha-title {
    color: white;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.mod-ficha-location {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mod-ficha-price {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    margin-bottom: 6px;
}
.mod-ficha-photo-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 50px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ─────────── STATS GRID ─────────── */
.mod-ficha-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}
.mod-ficha-stat {
    background: white;
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}
.mod-ficha-stat:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.mod-ficha-stat i {
    font-size: 1.3rem;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}
.mod-ficha-stat strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}
.mod-ficha-stat span {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

/* ─────────── SECTIONS ─────────── */
.mod-ficha-section { margin-bottom: 40px; }
.mod-ficha-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}
.mod-ficha-desc {
    color: #475569;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ─────────── SERVICES GRID ─────────── */
.mod-ficha-serv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.mod-ficha-serv-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 0.88rem;
    color: #475569;
}
.mod-ficha-serv-item i { color: var(--accent); font-size: 0.9rem; flex-shrink: 0; }

/* ─────────── SIDEBAR ─────────── */
.mod-ficha-sidebar { position: sticky; top: 88px; }
.mod-ficha-sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    margin-bottom: 20px;
}
.mod-ficha-sidebar-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mod-contacto-card h5 i { color: var(--accent); }

/* ── Botones de contacto simétricos ── */
.mod-contacto-botones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
}
.mod-contacto-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 10px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}
.mod-contacto-btn i { font-size: 1.35rem; }
.mod-contacto-btn:hover { transform: translateY(-2px); }
.mod-contacto-wsp {
    background: #25D366;
    color: white;
    box-shadow: 0 3px 12px rgba(37,211,102,0.3);
}
.mod-contacto-wsp:hover { background: #1da851; box-shadow: 0 5px 20px rgba(37,211,102,0.4); color: white; }
.mod-contacto-tel {
    background: var(--primary);
    color: white;
    box-shadow: 0 3px 12px rgba(var(--primary-rgb),0.25);
}
.mod-contacto-tel:hover { filter: brightness(1.1); box-shadow: 0 5px 20px rgba(var(--primary-rgb),0.35); color: white; }
.mod-contacto-email {
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #e2e8f0;
}
.mod-contacto-email:hover { background: #e2e8f0; color: var(--primary); border-color: var(--primary); }

/* ── Detalles adicionales ── */
.mod-ficha-detail-table {
    width: 100%;
    border-collapse: collapse;
}
.mod-ficha-detail-table tr:not(:last-child) { border-bottom: 1px solid #f1f5f9; }
.mod-ficha-detail-table td {
    padding: 10px 0;
    font-size: 0.87rem;
}
.mod-ficha-detail-table td:first-child { color: #64748b; font-weight: 500; }
.mod-ficha-detail-table td:last-child { text-align: right; color: #1e293b; }

/* ── Share buttons ── */
.mod-share-row {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}
.mod-share-btn {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.mod-share-btn:hover { transform: translateY(-2px); }
.mod-share-wsp { background: #25D366; color: white; }
.mod-share-wsp:hover { background: #1da851; }
.mod-share-fb { background: #1877F2; color: white; }
.mod-share-fb:hover { background: #166fe5; }
.mod-share-tw { background: #0f1419; color: white; }
.mod-share-tw:hover { background: #1a1f26; }
.mod-share-copy { background: #f1f5f9; color: #64748b; }
.mod-share-copy:hover { background: #e2e8f0; color: var(--primary); }
.mod-share-pdf { background: #4f46e5; color: white; }
.mod-share-pdf:hover { background: #4338ca; }

.mod-ficha-hero-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}
.mod-ficha-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    color: white;
    transition: all 0.3s ease;
}
.mod-ficha-hero-btn:hover {
    background: rgba(0,0,0,0.6);
    transform: translateY(-2px);
}
.mod-ficha-hero-btn-video {
    background: rgba(220,38,38,0.5);
}
.mod-ficha-hero-btn-video:hover {
    background: rgba(220,38,38,0.7);
}

/* ─────────── GALERÍA OVERLAY ─────────── */
.mod-galeria-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.96);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.mod-galeria-overlay.activo { display: flex; }
.mod-galeria-cerrar {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.mod-galeria-cerrar:hover { background: rgba(255,255,255,0.3); }
.mod-galeria-counter {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
}
.mod-galeria-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.mod-galeria-nav:hover { background: rgba(255,255,255,0.25); }
.mod-galeria-prev { left: 20px; }
.mod-galeria-next { right: 20px; }
.mod-galeria-img-wrap {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.mod-galeria-img-wrap img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
    animation: fadeInImg 0.3s ease;
}
@keyframes fadeInImg { from { opacity:0; transform:scale(0.95); } to { opacity:1; transform:scale(1); } }
.mod-galeria-thumbs {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    overflow-x: auto;
    max-width: 90vw;
    margin-top: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.mod-gal-thumb {
    min-width: 64px;
    height: 48px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.mod-gal-thumb.active, .mod-gal-thumb:hover { opacity: 1; border-color: var(--accent); }

/* ─────────── VIDEO OVERLAY ─────────── */
.mod-video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.96);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}
.mod-video-overlay.activo { display: flex; }
.mod-video-wrap {
    width: 90vw;
    max-width: 960px;
    aspect-ratio: 16/9;
}
.mod-video-wrap iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

@media (max-width: 991px) {
    .mod-ficha-hero { height: 400px; }
    .mod-ficha-hero-content { padding: 24px 0; }
    .mod-ficha-sidebar { position: static; }
}
@media (max-width: 767px) {
    .mod-ficha-hero { height: 340px; }
    .mod-ficha-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .mod-ficha-serv-grid { grid-template-columns: 1fr 1fr; }
}
