@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@300;400;700&display=swap');

* {
    font-family: 'Comic Neue', cursive;
    box-sizing: border-box;
}

/* ============================================================
   PAGE
============================================================ */
.rc-main {
    background: linear-gradient(180deg, #f6f7fb 0%, #eef2f7 100%);
    padding: 50px 0 90px;
}

.rc-container {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

/* ============================================================
   HERO
============================================================ */
.rc-hero {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #13294b;
}

.rc-hero__image {
    position: absolute;
    inset: 0;
}

.rc-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rc-hero__overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 150px 24px 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(0, 21, 47, 0.22) 0%, rgba(0, 21, 47, 0.45) 40%, rgba(0, 21, 47, 0.72) 100%);
}

.rc-hero__overlay h2 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px;
    line-height: 1;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.rc-hero__overlay h2 span {
    color: #ff4136;
}

.rc-hero__overlay p {
    max-width: 860px;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.8;
    margin: 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* ============================================================
   BREADCRUMB
============================================================ */
.breadcrumb {
    background: #ffffff;
    border-bottom: 1px solid #e6eaf0;
}

.breadcrumb-container {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.breadcrumb-container a {
    color: #001f3f;
    text-decoration: none;
    font-weight: 700;
}

.breadcrumb-container i {
    color: #9aa4b2;
    font-size: 0.72rem;
}

/* ============================================================
   INTRO
============================================================ */
.rc-intro {
    text-align: center;
    margin-bottom: 55px;
}

.rc-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #001226;
    font-weight: 800;
    margin-bottom: 10px;
}

.rc-title span {
    color: #ff4136;
}

.rc-line {
    width: 74px;
    height: 4px;
    border-radius: 999px;
    background: #daa520;
    margin: 0 auto 22px;
}

.rc-line.small {
    width: 56px;
    margin: 0 auto;
}

.rc-intro p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.9;
    color: #586274;
}

/* ============================================================
   TITULOS DE SECCIÓN
============================================================ */
.rc-section-heading {
    text-align: center;
    margin-bottom: 28px;
}

.rc-section-heading h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #001f3f;
    font-weight: 800;
    margin-bottom: 10px;
}

/* ============================================================
   ¿QUÉ TRABAJAMOS?
============================================================ */
.rc-work {
    margin-bottom: 70px;
}

.rc-grid-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.rc-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e8ecf3;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.6s ease;
    opacity: 0;
    transform: translateY(28px);
}

.rc-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.rc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
}

.rc-card__image {
    height: 250px;
    overflow: hidden;
}

.rc-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.rc-card:hover .rc-card__image img {
    transform: scale(1.05);
}

.rc-card__content {
    padding: 24px 22px 24px;
}

.rc-card__content h4 {
    color: #001f3f;
    font-size: 1.42rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.rc-card__content p {
    color: #5b6576;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

/* ============================================================
   GALERÍA
============================================================ */
.rc-gallery {
    margin-bottom: 70px;
}

.rc-gallery-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    grid-auto-rows: 240px;
    gap: 18px;
}

.rc-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #dfe7f1;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    min-height: 220px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.rc-gallery-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.rc-gallery-item--large {
    grid-row: span 2;
}

.rc-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.rc-gallery-item:hover img {
    transform: scale(1.06);
}

.rc-gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px 20px;
    background: linear-gradient(180deg, rgba(0, 18, 38, 0.04) 0%, rgba(0, 18, 38, 0.75) 100%);
}

.rc-gallery-overlay h4 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.rc-gallery-overlay p {
    color: rgba(255, 255, 255, 0.93);
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   BLOQUE FINAL
============================================================ */
.rc-closing-box {
    background: linear-gradient(135deg, #001f3f 0%, #173d76 100%);
    border-radius: 28px;
    padding: 44px 28px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.rc-closing-box.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.rc-closing-box::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    top: -120px;
    right: -90px;
    background: rgba(255, 255, 255, 0.08);
}

.rc-closing-box::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    bottom: -90px;
    left: -60px;
    background: rgba(255, 65, 54, 0.16);
}

.rc-closing-box > * {
    position: relative;
    z-index: 2;
}

.rc-closing-box h3 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.rc-closing-box p {
    max-width: 760px;
    margin: 0 auto 24px;
    font-size: 1.4rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.94);
}

.rc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #ff4136;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    box-shadow: 0 12px 24px rgba(255, 65, 54, 0.26);
}

.rc-btn:hover {
    transform: translateY(-3px);
    background: #e3362c;
}

/* ============================================================
   TABLET
============================================================ */
@media (max-width: 1024px) {
    .rc-grid-cards {
        gap: 20px;
    }

    .rc-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 220px;
    }

    .rc-gallery-item--large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* ============================================================
   MOBILE
============================================================ */
@media (max-width: 768px) {
    .rc-main {
        padding: 38px 0 70px;
    }

    .rc-container,
    .breadcrumb-container {
        width: calc(100% - 22px);
    }

    .rc-hero {
        min-height: 380px;
    }

    .rc-hero__overlay {
        padding: 120px 18px 90px;
    }

    .rc-grid-cards {
        grid-template-columns: 1fr;
    }

    .rc-card__image {
        height: 220px;
    }

    .rc-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .rc-gallery-item--large {
        grid-column: auto;
    }

    .rc-closing-box {
        padding: 34px 18px;
        border-radius: 22px;
    }
}

@media (max-width: 480px) {
    .rc-hero {
        min-height: 330px;
    }

    .rc-hero__overlay {
        padding: 110px 14px 74px;
    }

    .rc-hero__overlay p {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .rc-intro p,
    .rc-card__content p,
    .rc-closing-box p {
        font-size: 0.97rem;
        line-height: 1.75;
    }

    .rc-card__content {
        padding: 20px 18px;
    }

    .rc-card__content h4 {
        font-size: 1.25rem;
    }

    .rc-gallery-grid {
        grid-auto-rows: 200px;
    }

    .rc-btn {
        width: 100%;
        padding: 14px 18px;
    }
}