/* =====================================================
   Robert Moreno - CSS Personalizado para Elementor
   ===================================================== */

/* ----- VARIABLES DE DISEÑO ----- */
:root {
    --rm-primary: #0a0a0a;
    --rm-secondary: #1a1a1a;
    --rm-accent: #c9a962;
    --rm-accent-light: #d4b978;
    --rm-text: #ffffff;
    --rm-text-muted: #888888;
    --rm-gradient: linear-gradient(135deg, #c9a962 0%, #8b7355 100%);
    --rm-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --rm-shadow: 0 20px 60px rgba(0,0,0,0.4);
    --rm-shadow-hover: 0 30px 80px rgba(201, 169, 98, 0.2);
}

/* ----- ANIMACIONES BASE ----- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Clase para elementos que aparecen al scroll */
.rm-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--rm-transition);
}

.rm-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ----- TARJETAS DE PRENSA/BLOG ----- */
.rm-card {
    position: relative;
    background: var(--rm-secondary);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--rm-transition);
    box-shadow: var(--rm-shadow);
}

.rm-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--rm-shadow-hover);
}

.rm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rm-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.rm-card:hover::before {
    transform: scaleX(1);
}

.rm-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.rm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.rm-card:hover .rm-card-image img {
    transform: scale(1.08);
}

.rm-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    pointer-events: none;
}

.rm-card-content {
    padding: 24px;
}

.rm-card-badge {
    display: inline-block;
    background: var(--rm-gradient);
    color: var(--rm-primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.rm-card-title {
    color: var(--rm-text);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.rm-card:hover .rm-card-title {
    color: var(--rm-accent);
}

.rm-card-meta {
    color: var(--rm-text-muted);
    font-size: 14px;
}

/* ----- GALERÍA DE IMÁGENES ----- */
.rm-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.rm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.rm-gallery-item:hover img {
    transform: scale(1.1);
}

.rm-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.4) 50%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.rm-gallery-item:hover .rm-gallery-overlay {
    opacity: 1;
}

.rm-gallery-title {
    color: var(--rm-text);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.rm-gallery-item:hover .rm-gallery-title {
    transform: translateY(0);
}

.rm-gallery-description {
    color: var(--rm-text-muted);
    font-size: 14px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.rm-gallery-item:hover .rm-gallery-description {
    transform: translateY(0);
}

.rm-gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: var(--rm-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.rm-gallery-item:hover .rm-gallery-icon {
    transform: translate(-50%, -50%) scale(1);
}

/* ----- TIMELINE ----- */
.rm-timeline {
    position: relative;
    padding-left: 40px;
}

.rm-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--rm-accent), var(--rm-secondary));
}

.rm-timeline-item {
    position: relative;
    padding-bottom: 48px;
    opacity: 0;
    transform: translateX(-30px);
    transition: var(--rm-transition);
}

.rm-timeline-item.revealed {
    opacity: 1;
    transform: translateX(0);
}

.rm-timeline-dot {
    position: absolute;
    left: -32px;
    top: 0;
    width: 36px;
    height: 36px;
    background: var(--rm-secondary);
    border: 3px solid var(--rm-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--rm-transition);
    z-index: 2;
}

.rm-timeline-item:hover .rm-timeline-dot {
    background: var(--rm-accent);
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(201, 169, 98, 0.5);
}

.rm-timeline-dot img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
}

.rm-timeline-content {
    background: var(--rm-secondary);
    border-radius: 12px;
    padding: 24px;
    margin-left: 16px;
    transition: var(--rm-transition);
}

.rm-timeline-item:hover .rm-timeline-content {
    background: #222;
    box-shadow: var(--rm-shadow-hover);
}

.rm-timeline-year {
    color: var(--rm-accent);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.rm-timeline-title {
    color: var(--rm-text);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.rm-timeline-description {
    color: var(--rm-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ----- BOTONES ----- */
.rm-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--rm-gradient);
    color: var(--rm-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--rm-transition);
    position: relative;
    overflow: hidden;
}

.rm-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.rm-button:hover::before {
    left: 100%;
}

.rm-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 169, 98, 0.4);
}

/* ----- FILTROS ----- */
.rm-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.rm-filter-btn {
    background: transparent;
    color: var(--rm-text-muted);
    border: 1px solid var(--rm-text-muted);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--rm-transition);
}

.rm-filter-btn:hover,
.rm-filter-btn.active {
    background: var(--rm-accent);
    color: var(--rm-primary);
    border-color: var(--rm-accent);
}

/* ----- SECCIÓN FILOSOFÍA ----- */
.rm-philosophy-card {
    background: var(--rm-secondary);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: var(--rm-transition);
    height: 100%;
}

.rm-philosophy-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--rm-shadow-hover);
}

.rm-philosophy-icon {
    width: 80px;
    height: 80px;
    background: var(--rm-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    transition: transform 0.4s ease;
}

.rm-philosophy-card:hover .rm-philosophy-icon {
    transform: rotateY(180deg);
}

.rm-philosophy-title {
    color: var(--rm-text);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.rm-philosophy-text {
    color: var(--rm-text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ----- NÚMEROS/STATS ----- */
.rm-stat {
    text-align: center;
    padding: 24px;
}

.rm-stat-number {
    font-size: 64px;
    font-weight: 800;
    background: var(--rm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}

.rm-stat-label {
    color: var(--rm-text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
    .rm-timeline {
        padding-left: 30px;
    }
    
    .rm-timeline::before {
        left: 10px;
    }
    
    .rm-timeline-dot {
        left: -24px;
        width: 28px;
        height: 28px;
    }
    
    .rm-card-content {
        padding: 16px;
    }
    
    .rm-stat-number {
        font-size: 48px;
    }
    
    .rm-philosophy-card {
        padding: 24px;
    }
}
