/* Paleta de Colores Extraída del Brandboard Oficial */
:root {
    --brand-dark-blue: #0B1F4D;
    --brand-light-blue: #8FB7E8;
    --brand-soft-blue: #DCEBFA;
    --brand-gold: #D4B26A;
    --brand-white: #FFFFFF;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: var(--brand-white);
    line-height: 1.6;
}

/* Tipografía Serif para encabezados */
h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Playfair Display', serif;
}

/* Clases de utilidad corporativa */
.text-dark-blue {
    color: var(--brand-dark-blue) !important;
}

.text-light-blue {
    color: var(--brand-light-blue) !important;
}

.text-gold {
    color: var(--brand-gold) !important;
}

.bg-dark-blue {
    background-color: var(--brand-dark-blue) !important;
    color: white;
}

.bg-soft-blue {
    background-color: var(--brand-soft-blue) !important;
}

/* Botones */
.btn-brand-primary {
    background-color: var(--brand-dark-blue);
    color: var(--brand-white);
    border: 1px solid var(--brand-dark-blue);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 12px 24px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-brand-primary:hover {
    background-color: var(--brand-white);
    color: var(--brand-dark-blue);
}

.btn-brand-outline {
    background-color: transparent;
    color: var(--brand-dark-blue);
    border: 1px solid var(--brand-dark-blue);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 12px 24px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-brand-outline:hover {
    background-color: var(--brand-soft-blue);
}

/* Elementos UI */
.accent-divider {
    width: 50px;
    height: 2px;
    background-color: var(--brand-gold);
    margin: 1.5rem auto;
}

.accent-divider-left {
    width: 50px;
    height: 2px;
    background-color: var(--brand-gold);
    margin: 1.5rem 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: calc(100vh - 86px);
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 8px solid var(--brand-dark-blue);
    background-color: #0B1F4D;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.7) saturate(1.05);
}

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

.hero-content {
    position: relative;
    z-index: 2;
    padding: clamp(4rem, 8vw, 6rem) 0;
}

.hero-section h1,
.hero-section p,
.hero-section .btn {
    color: white !important;
}

/* Cajas de Diferenciales */
.feature-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--brand-dark-blue);
    color: var(--brand-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem auto;
}

.flip-card {
    perspective: 1200px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    min-height: 270px;
    transition: transform 0.65s ease;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(11, 31, 77, 0.08);
}

.flip-card-front {
    background-color: #FFFFFF;
    color: var(--brand-dark-blue);
}

.flip-card-back {
    background-color: var(--brand-dark-blue);
    color: #FFFFFF;
    transform: rotateY(180deg);
}

.flip-card-back h5,
.flip-card-back p {
    color: #FFFFFF;
}

.flip-card-back p {
    margin-bottom: 0;
    line-height: 1.75;
}

.service-item {
    border-bottom: 1px solid rgba(139, 183, 232, 0.3);
    padding: 1rem 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    transition: background-color 0.3s ease;
    overflow: hidden;
}

.service-item:hover {
    background-color: rgba(220, 235, 250, 0.35);
}

.service-item > div:first-child {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 220px;
}

@media (max-width: 767.98px) {
    .service-item {
        grid-template-columns: 1fr;
    }
    .service-item > div:first-child {
        min-width: auto;
        width: 100%;
    }
    .service-item .service-detail {
        max-height: none;
        opacity: 1;
        margin-top: 0.75rem;
    }
}

.service-detail {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease;
    margin-top: 0;
}

.service-item:hover .service-detail {
    max-height: 120px;
    opacity: 1;
    margin-top: 0.5rem;
}

.service-icon {
    color: var(--brand-light-blue);
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

#galeria {
    background-color: #ffffff;
}

#galeria .carousel-card {
    height: 260px;
    overflow: hidden;
}

#galeria .carousel-card img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

#galeria .carousel-control-prev,
#galeria .carousel-control-next {
    width: 3.5rem;
    opacity: 1;
    background: rgba(11, 31, 77, 0.15);
    border-radius: 50%;
}

#galeria .carousel-control-prev-icon,
#galeria .carousel-control-next-icon {
    filter: invert(1);
}

@media (max-width: 767.98px) {
    #galeria .carousel-control-prev,
    #galeria .carousel-control-next {
        width: 3rem;
        height: 3rem;
    }
}
