/*
 * Socal Liquidadores de Seguros - hoja de estilos propia
 * Reemplaza el theme comprado (grid.css/camera.css/owl.carousel.css/etc.)
 * Se apoya 100% en utilidades de Bootstrap 5 (CDN); aqui solo van los
 * ajustes de marca (colores, tipografia, componentes puntuales).
 */

:root {
    --brand-primary: #7d261a;
    --brand-primary-dark: #5c1a12;
    --brand-accent: #d94d3a;
    --brand-blue: #284c76;
    --brand-bg: #fbfaf8;
    --brand-text: #3a3a3a;
    /* Color de fondo real del archivo images/logo.gif (medido en pixel:
       rgb(99,129,146)). Se usa en header, footer y títulos para que el
       logo se integre sin caja/recuadro visible y todo el sitio quede
       coherente con esa pieza. */
    --brand-header: #638192;
    --brand-header-dark: #48606f;
    --bs-primary: var(--brand-primary);
    --bs-primary-rgb: 125, 38, 26;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--brand-text);
    background: #fff;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
}

a:hover {
    color: var(--brand-accent);
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h1,
.section-title h2 {
    display: inline-block;
    font-weight: 700;
    color: var(--brand-header);
    position: relative;
    padding-bottom: .6rem;
}

.section-title h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--brand-accent);
}

.section-bg-light {
    background: var(--brand-bg);
}

/* ===== Navbar ===== */
.navbar-brand img {
    height: 48px;
    width: auto;
}

.navbar-socal {
    background: var(--brand-header);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

.navbar-socal .nav-link {
    color: rgba(255, 255, 255, .85);
    font-weight: 600;
    padding: .5rem 1rem;
}

.navbar-socal .nav-link.active,
.navbar-socal .nav-link:hover {
    color: #fff;
}

.navbar-socal .nav-link.active {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.navbar-socal .navbar-toggler {
    border-color: rgba(255, 255, 255, .6);
}

.navbar-socal .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Hero / carousel ===== */
.hero-carousel .carousel-item {
    height: 62vh;
    min-height: 340px;
    background-size: cover;
    background-position: center;
}

.hero-carousel .carousel-caption {
    bottom: 12%;
    text-align: left;
    left: 8%;
    right: 8%;
    max-width: 560px;
    background: rgba(0, 0, 0, .45);
    padding: 1.5rem 2rem;
    border-radius: .5rem;
    /* Bootstrap no le pone z-index a .carousel-caption, así que quedaba
       por debajo de .carousel-control-prev/next (z-index:1) y los botones
       "Escríbenos"/"Llámanos" no recibían el click - lo agarraba la franja
       invisible de la flecha izquierda/derecha. */
    z-index: 5;
}

.hero-carousel .carousel-caption h3 {
    font-weight: 700;
    margin-bottom: .75rem;
}

.hero-carousel .btn-hero {
    margin-right: .5rem;
}

/* ===== Botones de marca ===== */
.btn-brand {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.btn-brand:hover {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
}

/* ===== Home: subcategorias sobre imagen de album ===== */
.subcategoria-block {
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 4rem 0;
    position: relative;
}

.subcategoria-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(40, 20, 15, .65);
}

.subcategoria-block .container {
    position: relative;
    z-index: 1;
}

.subcategoria-block h2 {
    color: #fff;
}

.subcategoria-block h3 a {
    color: #fff;
}

.subcategoria-block .element {
    background: rgba(255, 255, 255, .12);
    border-radius: .4rem;
    padding: 1rem;
    height: 100%;
}

/* ===== Cards: proyectos / equipo ===== */
.proyecto-card img,
.team-card img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.proyecto-card .card-body,
.team-card .card-body {
    text-align: center;
}

.proyecto-card .card-text {
    text-align: justify;
}

.numero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ===== Footer ===== */
/* Mismo color de fondo que el header (var(--brand-header)) para mantener
   coherencia visual en todo el sitio. */
.footer-socal {
    background: var(--brand-header);
    color: rgba(255, 255, 255, .9);
    padding: 3rem 0 1.5rem;
}

.footer-socal a {
    color: #fff;
}

.footer-socal a:hover {
    color: rgba(255, 255, 255, .75);
}

.footer-socal .fs-tel {
    font-size: 1.4rem;
    font-weight: 600;
}

.footer-bottom {
    background: var(--brand-header-dark);
    color: rgba(255, 255, 255, .7);
    text-align: center;
    padding: .75rem 0;
    font-size: .85rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, .85);
}

.footer-bottom a:hover {
    color: #fff;
}

/* ===== Contacto ===== */
.contacto-form-wrapper {
    background: var(--brand-bg);
    border-radius: .5rem;
    padding: 2rem;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

@media (max-width: 767.98px) {
    .hero-carousel .carousel-item {
        height: 48vh;
    }

    .hero-carousel .carousel-caption {
        padding: 1rem 1.25rem;
    }
}
