:root {
  --blue: #2b3e88;
  --blue-dark: #1f2f67;
  --gray-strip: #e6e6e6;
  --text-color: #444;
  --border-color: #ddd;
}

.rf-site { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: var(--text-color); overflow-x: hidden; }
.rf-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- HERO CON IMAGEN --- */
.rf-about-hero {
    position: relative;
    height: 450px;
    background-image: url('../img/Acercade.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rf-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.rf-about-hero h1 {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 55px;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5);
    margin: 0;
}

/* --- GRID TABS --- */
.rf-about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; margin: 80px 0; align-items: flex-start; }
.rf-about-img img { width: 100%; border-radius: 8px; }

.rf-about-tabs { display: flex; gap: 30px; border-bottom: 2px solid var(--border-color); margin-bottom: 25px; padding-bottom: 5px; }
.rf-about-tabs span { cursor: pointer; font-weight: 700; font-size: 14px; text-transform: uppercase; transition: .3s; position: relative; padding-bottom: 10px; }
.rf-about-tabs span.active { color: var(--blue); }
.rf-about-tabs span.active::after { content: ""; position: absolute; width: 100%; height: 4px; bottom: -7px; left: 0; background: var(--blue); }

/* --- ESTABILIDAD DE TEXTO --- */
#rfTabContent {
    min-height: 180px;
    transition: opacity 0.3s ease;
}
#rfTabContent p { font-size: 16px; line-height: 1.7; margin-bottom: 15px; }

/* --- BOTÓN WHATSAPP 3D --- */
.whatsapp-link { text-decoration: none; display: inline-block; margin-top: 15px; }
.custom-btn { cursor: pointer; border: none; background: transparent !important; padding: 0; }
.whats-btn.btn-12 { width: 240px; height: 55px; position: relative; perspective: 500px; }

.whats-btn.btn-12 span {
    background: #235ECB;
    display: flex; align-items: center; justify-content: center;
    position: absolute; inset: 0; border-radius: 8px; color: white;
    font-weight: 700; font-size: 14px;
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: 50% 50% -27.5px;
    backface-visibility: hidden;
}

.whats-btn i {
    color: white !important;
    font-size: 22px !important;
    margin-right: 10px;
    font-style: normal !important;
    transform: rotate(0deg) !important;
}

.whats-btn.btn-12 span:nth-child(1) { transform: rotateX(90deg); }
.whats-btn.btn-12 span:nth-child(2) { transform: rotateX(0deg); }
.whats-btn.btn-12:hover span:nth-child(1) { transform: rotateX(0deg); }
.whats-btn.btn-12:hover span:nth-child(2) { transform: rotateX(-90deg); }

/* --- SERVICIOS --- */
.rf-about-services-section h2 {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
    padding-left: 14px;
}

/* --- ANIMACIONES SCROLL --- */
.rf-about-img,
.rf-about-content {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rf-about-img.visible,
.rf-about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.rf-about-img { transition-delay: 0s; }
.rf-about-content { transition-delay: 0.15s; }

.rf-about-list li {
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.rf-about-list li.visible {
    opacity: 1;
    transform: translateX(0);
}

.rf-about-list li:nth-child(1) { transition-delay: 0s; }
.rf-about-list li:nth-child(2) { transition-delay: 0.1s; }
.rf-about-list li:nth-child(3) { transition-delay: 0.2s; }
.rf-about-list li:nth-child(4) { transition-delay: 0.3s; }
.rf-about-list li:nth-child(5) { transition-delay: 0.4s; }
.rf-about-services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 80px; }
.rf-about-list li { font-size: 16px; margin-bottom: 12px; padding-left: 25px; position: relative; list-style: none; }
.rf-about-list li::before { content: "•"; position: absolute; left: 0; color: var(--blue); font-size: 24px; top: -4px; }

/* --- CINTILLO LOGOS --- */
.rf-about-strip {
    width: 100%;
    background: var(--gray-strip);
    padding: 40px 0 !important;
    overflow: hidden;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    display: flex !important;
}

.rf-about-strip-track {
    display: flex !important;
    align-items: center;
    gap: 50px !important;
    animation: rfStripScroll 30s linear infinite;
    width: max-content;
}

.rf-about-strip-track img {
    height: 70px !important;
    width: 120px !important;
    min-width: 120px !important;
    object-fit: contain !important;
    background-color: #ffffff !important;
    padding: 12px 20px !important;
    border-radius: 10px !important;
    opacity: 0.9;
    transition: all .3s ease;
    box-shadow: 0px 3px 8px rgba(0,0,0,0.08) !important;
}

.rf-about-strip-track img:hover {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0px 5px 12px rgba(0,0,0,0.12) !important;
}


@keyframes rfStripScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 900px) {
    .rf-about-grid, .rf-about-services-grid { grid-template-columns: 1fr; }
    .rf-about-hero h1 { font-size: 35px; }
    .rf-about-strip-track img { height: 50px !important; width: 100px !important; min-width: 100px !important; }
}
