/* PÁGINA TAPICERÍA COCHE - ESTILOS AISLADOS */

.tap-page {
    color: #1f2937;
    background: #ffffff;
}

/* CONTAINERS */
.tap-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.tap-narrow {
    max-width: 900px;
}

.tap-center {
    text-align: center;
}

/* HERO */
.tap-hero-page {
    position: relative;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    overflow: hidden;
}

.tap-hero-page .hero-img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.72);
}

.tap-hero-page .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92%, 760px);
    background: rgba(10, 61, 115, 0.55);
    padding: 26px 24px;
    border-radius: 12px;
    text-align: center;
    color: #ffffff;
}

.tap-hero-page .hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 12px;
}

.tap-hero-page .hero-text p {
    font-size: 1.08rem;
    margin-bottom: 18px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* BOTONES */
.tap-btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.2s ease;
    text-decoration: none;
}

.tap-btn-primary {
    background: #39d12f;
    color: #0a3d73;
}

.tap-btn-primary:hover {
    background: #2fb126;
}

.tap-btn-secondary {
    background: #ffffff;
    color: #0e5aa7;
    border: 1px solid #dbeafe;
}

.tap-btn-secondary:hover {
    background: #f8fafc;
}

/* SECCIONES */
.tap-section {
    padding: 64px 0;
}

.tap-section-light {
    background: #f5f7fa;
}

.tap-section h2 {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 18px;
    color: #0a3d73;
    text-align: center;
}

.tap-section h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0e5aa7;
}

.tap-section p {
    margin-bottom: 14px;
}

.tap-section-intro {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
    color: #5f6b7a;
}

/* GRID DE SERVICIOS */
.tap-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.tap-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* DOS COLUMNAS */
.tap-two-col {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 28px;
    align-items: start;
}

.tap-info-box {
    background: #0a3d73;
    color: #ffffff;
    border-radius: 14px;
    padding: 24px;
}

.tap-info-box h3 {
    color: #ffffff;
    margin-bottom: 12px;
}

.tap-info-box ul li {
    margin-bottom: 8px;
}

/* ANTES / DESPUÉS */
.tap-before-after-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.tap-ba-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.tap-ba-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.tap-ba-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

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

.tap-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}

.tap-badge-before {
    background: #ef4444;
}

.tap-badge-after {
    background: #22c55e;
}

/* CTA */
.tap-cta-section {
    background: linear-gradient(135deg, #0a3d73, #0e5aa7);
    color: #ffffff;
}

.tap-cta-section h2 {
    color: #ffffff;
}

.tap-cta-section p {
    max-width: 760px;
    margin: 0 auto 20px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .tap-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tap-before-after-grid {
        grid-template-columns: 1fr;
    }

    .tap-two-col {
        grid-template-columns: 1fr;
    }

    .tap-hero-page .hero-text h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .tap-hero-page .hero-img {
        height: 340px;
    }

    .tap-hero-page .hero-text {
        width: 92%;
        padding: 16px 14px;
    }

    .tap-hero-page .hero-text h1 {
        font-size: 1.6rem;
    }

    .tap-hero-page .hero-text p {
        font-size: 0.95rem;
    }

    .tap-cards-grid {
        grid-template-columns: 1fr;
    }

    .tap-ba-image img {
        height: 180px;
    }

    .tap-section {
        padding: 48px 0;
    }

    .tap-section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 420px) {
    .tap-hero-page .hero-img {
        height: 300px;
    }

    .tap-hero-page .hero-text {
        top: 56%;
    }

    .tap-hero-page .hero-text h1 {
        font-size: 1.35rem;
    }

    .tap-hero-page .hero-text p {
        font-size: 0.88rem;
        margin-bottom: 14px;
    }

    .tap-btn {
        width: 100%;
        text-align: center;
    }
}