/*!
 * Start Bootstrap - Business Casual Bootstrap Theme (http://startbootstrap.com)
 * Code licensed under the Apache License v2.0.
 * For details, see http://www.apache.org/licenses/LICENSE-2.0.
 */

body {
    font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
    background: url('../img/bj.jpg') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-transform: uppercase;
    font-family: "Josefin Slab","Helvetica Neue",Helvetica,Arial,sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

p {
    font-size: 1em;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.box p {
    text-align: center;
    color: #555;
}

hr {
    max-width: 400px;
    border-color: #3498db;
    border-width: 2px;
    margin: 10px auto;
}

.brand,
.address-bar {
    display: none;
}

.navbar-brand {
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 2px;
}

.navbar-nav {
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 3px;
}

.img-full {
    min-width: 100%;
}

.brand-before,
.brand-name {
    text-transform: capitalize;
}

.brand-before {
    margin: 15px 0;
}

.brand-name {
    margin: 0;
    font-size: 4em;
}

.tagline-divider {
    margin: 15px auto 3px;
    max-width: 250px;
    border-color: #999999;
}

.box {
    margin: 20px 0;
    padding: 30px 25px;
    background: #fff;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 15px;
}

.box:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.box .col-lg-4,
.box .col-lg-6 {
    padding: 20px 15px;
    transition: all 0.3s ease;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-radius: 8px;
    background: rgba(248,249,250,0.5);
}

.box .col-lg-4:hover,
.box .col-lg-6:hover {
    transform: translateY(-5px);
}

/* Asegurar que las imágenes tengan la misma altura */
.box .col-lg-4 .intro-text,
.box .col-lg-6 .intro-text {
    /* min-height: 100px; */
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin: 0 0 20px 0; */
}

/* Hacer que el contenido se expanda para llenar el espacio */
.box .col-lg-4 p,
.box .col-lg-6 p {
    flex-grow: 1;
    margin: 0 0 12px 0;
    padding: 0 5px;
}

/* Línea separadora después de las primeras 3 columnas */
.box .col-lg-4:nth-child(3) {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 40px;
    margin-bottom: 40px;
}

/* En pantallas grandes, la línea debe extenderse por toda la fila */
@media screen and (min-width:992px) {
    .box .col-lg-4:nth-child(1),
    .box .col-lg-4:nth-child(2) {
        border-bottom: 2px solid #e0e0e0;
        padding-bottom: 40px;
        margin-bottom: 40px;
    }
    
    /* Todos los elementos tendrán la misma altura automáticamente con flexbox */
    .box .col-lg-4,
    .box .col-lg-6 {
        min-height: 450px;
    }
}

.box .col-lg-4 a,
.box .col-lg-6 a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.intro-text {
    text-transform: uppercase;
    font-size: 1.25em;
    font-weight: 400;
    letter-spacing: 1px;
    color: #2c3e50;
    transition: color 0.3s ease;
    /* min-height: 80px; */
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box .col-lg-4:hover .intro-text,
.box .col-lg-6:hover .intro-text {
    color: #3498db;
}

.img-border {
    float: none;
    margin: 0 auto 0;
    border: #999999 solid 1px;
}

.img-center {
    margin: 0 auto 25px;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.box .col-lg-4:hover .img-center,
.box .col-lg-6:hover .img-center {
    transform: scale(1.05);
}

.sized {
    height: 200px;
    object-fit: contain;
    width: 100%;
}

footer {
    background: #2c3e50;
    background: rgba(44,62,80,0.95);
    margin-top: 40px;
    border-top: 4px solid #3498db;
}

footer p {
    margin: 0;
    padding: 50px 0;
    color: #ecf0f1;
    font-weight: 300;
}

a {
    color: #3498db;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
    color: #2980b9;
}

.box p a {
    font-weight: 600;
    text-decoration: underline;
}

.box p a:hover {
    color: #e74c3c;
}

.title-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.red {
    display: inline-block;
    padding: 4px 12px;
    margin: 8px auto 0 auto;
    background: linear-gradient(135deg, #FD8388 0%, #e74c3c 100%);
    color: white;
    font-size: 0.7em;
    font-weight: 600;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(253,131,136,0.3);
    -moz-transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.red:hover {
    box-shadow: 0 4px 15px rgba(253,131,136,0.5);
    transform: scale(1.05);
}

.small {
    font-size: .75em;
    margin-top: -10px;
    color: #7f8c8d;
    font-style: italic;
}

@media screen and (min-width:768px) {
    .brand {
        display: inherit;
        margin: 0;
        padding: 40px 0 20px;
        text-align: center;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
        font-family: "Josefin Slab","Helvetica Neue",Helvetica,Arial,sans-serif;
        font-size: 5em;
        font-weight: 700;
        line-height: normal;
        color: #fff;
        letter-spacing: 3px;
        animation: fadeInDown 1s ease;
    }

    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .top-divider {
        margin-top: 0;
    }

    .img-left {
        float: left;
        margin-right: 25px;
    }

    .address-bar {
        display: inherit;
        margin: 0;
        padding: 0 0 40px;
        text-align: center;
        text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
        text-transform: uppercase;
        font-size: 1.25em;
        font-weight: 400;
        letter-spacing: 3px;
        color: #fff;
    }

    .navbar {
        border-radius: 8px;
        margin-bottom: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .navbar-header {
        /*display: none;*/
    }

    .navbar {
        /*min-height: 0;*/
    }

    .navbar-default {
        border: none;
        background: #fff;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(10px);
    }

    .nav>li {
        padding: 35px;
        text-align: center;
    }

    .navbar-nav>li>a {
        line-height: normal;
        transition: all 0.3s ease;
        border-radius: 4px;
    }

    .navbar-nav>li>a:hover {
        background: rgba(52,152,219,0.1);
        color: #3498db;
    }

    .navbar-nav {
        display: table;
        float: none;
        margin: 0 auto;
        table-layout: fixed;
        font-size: 1.25em;
    }
}

@media screen and (min-width:1200px) {
    .box:after {
        content: '';
        display: table;
        clear: both;
    }
    
    .box {
        padding: 50px 30px;
    }
}

/* Mejoras responsivas para móvil */
@media screen and (max-width:767px) {
    .box {
        margin: 15px 0;
        padding: 20px 15px;
        flex-direction: column;
        gap: 12px;
    }
    
    .intro-text {
        font-size: 1.1em;
        min-height: auto;
        margin-bottom: 12px;
    }
    
    .sized {
        height: 180px;
    }
    
    .box .col-lg-4,
    .box .col-lg-6 {
        margin: 0;
        padding: 18px 15px;
        flex: none;
        width: 100%;
    }
    
    .box .col-lg-4 p,
    .box .col-lg-6 p {
        padding: 0 3px;
        margin-bottom: 12px;
    }
}

/* Responsive para tablets */
@media screen and (min-width:768px) and (max-width:991px) {
    .box {
        flex-direction: column;
        gap: 18px;
        padding: 25px 20px;
    }
    
    .box .col-lg-4,
    .box .col-lg-6 {
        flex: none;
        width: 100%;
        margin: 0;
        padding: 20px 18px;
    }
    
    .box .col-lg-4:nth-child(3) {
        border-bottom: none;
        padding-bottom: 20px;
        margin-bottom: 0;
    }
}

/* Animación de entrada para las tarjetas */
.box .col-lg-4,
.box .col-lg-6 {
    animation: fadeInUp 0.6s ease;
}

.box .col-lg-4:nth-child(2) {
    animation-delay: 0.1s;
}

.box .col-lg-4:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejora del contraste y legibilidad */
.box p b,
.box p strong {
    color: #2c3e50;
    font-weight: 700;
}
