/* ===== SECCIÓN PERSONALIZA TU MÓDULO (ESTILO MODELS) ===== */
.custom-section {
    padding: 90px 0;
    background-image: url('../video.mp4');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

/* Video de fondo */
.custom-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* Overlay idéntico al del models */
.custom-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.55) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Contenedor principal */
.custom-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 1rem;
}

/* Títulos y subtítulos igual que en models */
.custom-section .section-title {
    text-align: center;
    color: var(--light);
    margin-bottom: 0.75rem;
    font-size: 2.5rem;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-section .section-subtitle {
    color: #ddd;
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    line-height: 1.65;
}

/* Grid de tarjetas de tipos de módulo */
.custom-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjeta individual de tipo */
.custom-type-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: var(--light);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.custom-type-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 193, 7, 0.1);
}

/* Imagen del tipo */
.custom-type-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #111;
}

.custom-type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.custom-type-card:hover .custom-type-image img {
    transform: scale(1.07);
}

/* Contenido de la tarjeta */
.custom-type-card > h3,
.custom-type-card > p,
.custom-type-card > button {
    padding: 0 1.75rem;
}

.custom-type-card > h3:first-of-type {
    padding-top: 1.75rem;
}

/* Título del tipo */
.custom-type-title {
    font-size: 1.9rem;
    color: var(--primary);
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 1.25rem 0 0.75rem;
    line-height: 1.1;
}

/* Descripción del tipo */
.custom-type-description {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

/* Botón personalizar */
.custom-type-btn {
    margin: 0 auto 1.75rem;
    width: calc(100% - 3.5rem);
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(255, 193, 7, 0.4);
    border-radius: 6px;
    font-weight: 700;
    padding: 0.85rem 1.5rem;
    text-align: center;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    min-height: 48px;
    flex-shrink: 0;
}

.custom-type-btn::after {
    content: '→';
    transition: transform 0.25s ease;
    display: inline-block;
}

.custom-type-card:hover .custom-type-btn,
.custom-type-btn:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.custom-type-card:hover .custom-type-btn::after,
.custom-type-btn:hover::after {
    transform: translateX(5px);
}

/* Animación de entrada */
.custom-type-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.custom-type-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.custom-type-card:nth-child(2) { transition-delay: 0.1s; }
.custom-type-card:nth-child(3) { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 900px) {
    .custom-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .custom-type-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .custom-section {
        padding: 70px 0;
        background-attachment: scroll;
    }
    .custom-types-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .custom-type-card:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
    }
    .custom-section .section-title {
        font-size: 1.8rem;
    }
    .custom-type-card { opacity: 1; transform: none; }
}