/* --- Estilos específicos para SERVICIOS (tarjetas, catálogo) --- */

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.transition-img {
    transition: transform 0.5s ease;
}

.card:hover .transition-img {
    transform: scale(1.05);
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    color: white;
}

/* Estilos antiguos para compatibilidad */
.service-img { height: 220px; object-fit: cover; border-radius:5px; }
.hover-up { transition: transform .3s, box-shadow .3s; }
.hover-up:hover { transform: translateY(-6px); box-shadow: 0 10px 20px rgba(0,0,0,.2); }
.fade-in { animation: fadeIn .6s ease-in-out; }
@keyframes fadeIn { from {opacity:0; transform: translateY(10px);} to {opacity:1; transform: translateY(0);} }

/* === Estilos de página de detalle de servicio (nuevo diseño) === */

/* Wrapper general */
.sd-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

/* ── Hero Row ── */
.sd-hero-row {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.sd-img-wrap {
    position: relative;
    height: 100%;
    min-height: 340px;
}

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

.sd-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45,125,70,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.sd-img-placeholder {
    background: #e8f5e9;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d7d46;
    font-size: 5rem;
}

/* Panel derecho */
.sd-info-panel {
    background: linear-gradient(160deg, #ffffff 0%, #f4fdf6 100%);
    padding: 2rem 2rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Badges superiores */
.sd-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.sd-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 5px 12px;
    border-radius: 999px;
}

.sd-badge-type {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.sd-badge-method {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #90caf9;
}

.sd-badge-time {
    background: #fff8e1;
    color: #e65100;
    border: 1px solid #ffcc80;
}

/* Título */
.sd-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0;
}

/* Precio */
.sd-price-box {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    background: linear-gradient(135deg, #2d7d46, #388e3c);
    color: white;
    padding: 0.85rem 1.4rem;
    border-radius: 14px;
    width: fit-content;
}

.sd-price-label {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sd-price {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

/* Bloques de sección (descripción) */
.sd-section {
    border-radius: 12px;
    padding: 1rem 1.2rem;
    flex: 1;
}

.sd-section-desc {
    background: #f8fffe;
    border: 1px solid #c8e6c9;
}

.sd-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.sd-section-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sd-dot-blue  { background: #1976d2; }
.sd-dot-green { background: #2d7d46; }
.sd-dot-amber { background: #f57c00; }

.sd-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}

.sd-section-text {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0;
    white-space: pre-line;
}

/* Botones CTA */
.sd-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.sd-btn-wa {
    background: #25d366;
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border: none;
    box-shadow: 0 4px 14px rgba(37,211,102,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sd-btn-wa:hover {
    background: #1ebe5d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37,211,102,0.4);
}

.sd-btn-back {
    background: #f4f4f4;
    color: #444;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s ease;
}

.sd-btn-back:hover {
    background: #e9ecef;
    color: #222;
}

/* ── Grid de cards de detalle ── */
.sd-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.sd-detail-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 16px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.sd-detail-card:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}

/* Colores por card */
.sd-card-green .sd-card-header { background: linear-gradient(135deg, #2d7d46, #43a047); }
.sd-card-blue  .sd-card-header { background: linear-gradient(135deg, #1565c0, #1976d2); }
.sd-card-amber .sd-card-header { background: linear-gradient(135deg, #e65100, #f57c00); }

.sd-card-green { border: 1px solid #c8e6c9; }
.sd-card-blue  { border: 1px solid #bbdefb; }
.sd-card-amber { border: 1px solid #ffe0b2; }

.sd-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: white;
}

.sd-card-icon-wrap {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.sd-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0;
}

.sd-card-body {
    padding: 1.2rem 1.25rem;
    background: #fff;
    color: #333;
    font-size: 0.93rem;
    line-height: 1.75;
    flex: 1;
    white-space: pre-line;
}

/* Responsive */
@media (max-width: 767px) {
    .sd-title { font-size: 1.45rem; }
    .sd-price { font-size: 1.6rem; }
    .sd-info-panel { padding: 1.25rem; }
    .sd-img-wrap { min-height: 240px; }
    .sd-hero-row { border-radius: 14px; }
    .sd-cta-row { flex-direction: column; }
    .sd-btn-wa, .sd-btn-back { width: 100%; justify-content: center; }
}

.detail-page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.detail-gallery {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.detail-main-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.detail-no-img {
    background: #f0f4f0;
    min-height: 340px;
    border: 2px dashed #c8d8c8;
}

.detail-category-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2d7d46;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(45,125,70,0.25);
}

.detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.detail-price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0 1.2rem;
    flex-wrap: wrap;
}

.detail-price {
    font-size: 2rem;
    font-weight: 900;
    color: #2d7d46;
    font-family: 'Segoe UI', system-ui, sans-serif;
    letter-spacing: -0.5px;
}

.detail-meta-chips {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.9rem;
    color: #444;
}

.detail-meta-chip i {
    color: #2d7d46;
    font-size: 1rem;
}

.detail-description-block {
    background: linear-gradient(135deg, #f8fffe 0%, #f0fdf4 100%);
    border-left: 4px solid #2d7d46;
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.2rem;
    margin-top: 1rem;
}

.detail-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2d7d46;
    margin-bottom: 0.5rem;
}

.detail-description-text {
    color: #333;
    font-size: 0.97rem;
    line-height: 1.7;
    margin: 0;
    white-space: pre-line;
}

.detail-cta {
    border-radius: 12px;
    padding: 0.9rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 16px rgba(45,125,70,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45,125,70,0.35);
}

.detail-extra-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.detail-extra-card {
    background: #fff;
    border: 1px solid #e8f5e9;
    border-radius: 14px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}

.detail-extra-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

.detail-extra-icon {
    width: 44px;
    height: 44px;
    background: #e8f5e9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.detail-extra-icon i {
    color: #2d7d46;
    font-size: 1.25rem;
}

.detail-extra-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-extra-text {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
    white-space: pre-line;
}

@media (max-width: 767px) {
    .detail-title { font-size: 1.5rem; }
    .detail-price { font-size: 1.6rem; }
    .detail-main-img { max-height: 260px; }
    .detail-page-wrapper { padding: 1rem 0.75rem 2rem; }
}
