/* ============================================================
   DD - Que Encontrarás Widget
   Compatible con Elementor 4.x
   ============================================================ */

.ddw-encontraras-section {
    position: relative;
    overflow: hidden;
    background-color: #f0f4f8;
}

/* Imagen de fondo decorativa */
.ddw-encontraras-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.ddw-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   TÍTULO PRINCIPAL
   ============================================================ */
.ddw-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.ddw-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
}

.ddw-title-part1 {
    color: #0b1b2e;
}

.ddw-title-part2 {
    color: #d4a843;
}

/* Línea decorativa */
.ddw-deco-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
}

.ddw-deco-line {
    width: 120px;
    height: 2px;
    background-color: #d4a843;
    position: relative;
}

.ddw-deco-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #d4a843;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(212, 168, 67, 0.5);
}

/* ============================================================
   GRID DE TARJETAS
   ============================================================ */
.ddw-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ============================================================
   TARJETA INDIVIDUAL
   ============================================================ */
.ddw-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ddw-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Animación fade-in */
.ddw-card {
    opacity: 0;
    animation: ddwFadeInUp 0.6s ease forwards;
}

@keyframes ddwFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   ICONO DE TARJETA
   ============================================================ */
.ddw-card-icon-wrapper {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.ddw-card-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid #d4a843;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.ddw-card:hover .ddw-card-icon {
    box-shadow: 0 0 20px rgba(212, 168, 67, 0.3);
    transform: scale(1.05);
}

.ddw-card-icon svg {
    width: 40px;
    height: 40px;
    fill: #d4a843;
    transition: fill 0.3s ease;
}

.ddw-card-icon i {
    font-size: 40px;
    color: #d4a843;
    transition: color 0.3s ease;
}

/* ============================================================
   TÍTULO DE TARJETA
   ============================================================ */
.ddw-card-title-wrapper {
    margin-bottom: 16px;
}

.ddw-card-title-line1,
.ddw-card-title-line2 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    letter-spacing: 0.02em;
}

.ddw-card-title-line1 {
    color: #0b1b2e;
}

.ddw-card-title-line2 {
    color: #d4a843;
}

/* Separador dorado */
.ddw-card-separator {
    width: 40px;
    height: 2px;
    background-color: #d4a843;
    margin: 12px auto 0;
    border-radius: 1px;
}

/* ============================================================
   DESCRIPCIÓN
   ============================================================ */
.ddw-card-description {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .ddw-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .ddw-card {
        padding: 35px 25px;
    }
}

/* Móvil */
@media (max-width: 768px) {
    .ddw-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ddw-card {
        padding: 30px 20px;
    }

    .ddw-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .ddw-card-icon {
        width: 80px;
        height: 80px;
    }

    .ddw-card-icon svg,
    .ddw-card-icon i {
        width: 32px;
        height: 32px;
        font-size: 32px;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .ddw-card {
        padding: 25px 18px;
    }

    .ddw-card-title-line1,
    .ddw-card-title-line2 {
        font-size: 1rem;
    }

    .ddw-card-description {
        font-size: 0.9rem;
    }
}
