/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #292828;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

p{
    text-align: justify;
}
.heading h4{
    color:  rgba(224, 224, 224, 0.781);
}
/* Parallax background */
#parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(40, 45, 48, 0.425), rgba(138, 24, 26, 0.363)), url(/static/PNG2/grupo1.png);
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Header styles */
header {
    background: rgb(138, 24, 26);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.7rem 1rem;
    width: 100%;
    transition: all 0.3s ease;
}
.navegador {
    width: 100%;
    height: 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}
.brand-logo {
    width: 150px; 
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

/* Navigation Links Styles */
.links {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.links li {
    list-style: none;
}

.links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.links a .icon {
    margin-left: 5px;
    margin-top: 5px;
}

.links a .link-text {
    display: inline;
}

.links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.links a:hover::after {
    width: 100%;
}
.navegador .links {
    display: flex;
    gap: 2rem;
}

header .brand {
    color: rgb(255, 255, 255);
    font-size: 1.5em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
}

header .navegador .navegador-items a {
    position: relative;
    color: rgb(255, 255, 255);
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    margin-left: 30px;
    transition: 0.3s ease;
}

header .navegador .navegador-items a:before {
    content: "";
    position: absolute;
    background-color: rgb(255, 255, 255);
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    transition: 0.3s ease;
}

header .navegador.active .navegador-items {
    background: rgb(255, 255, 255);
    width: 100%;
    max-width: 600px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgb(255, 255, 255);
}

header .navegador .navegador-items a:hover:before {
    width: 100%;
}
/* Container styles */
.container {
    max-width: 1200px;
    padding: 0 15px;
    width: 100%;
    background-color: rgba(39, 36, 36, 0.5);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.295);
    animation: fadeIn 1s ease-out;
    margin: 80px auto 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Section styles */
section {
    margin: 50px 0;
}

.heading {
    padding-bottom: 30px;
    text-align: center;
}

.heading h2 {
    position: relative;
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    color: #e4e4e4e7;
    display: inline-block;
}

.heading h2::before,
.heading h2::after {
    content: "";
    background: #8A181A;
    display: inline-block;
    width: 50px;
    height: 2px;
    vertical-align: middle;
    margin: 0 15px;
}

.heading p {
    font-size: 15px;
    margin-top: 15px;
    color: rgba(224, 224, 224, 0.781);
}

/* Service boxes grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
    background-color: rgba(255, 255, 255, 0.384);
}

.icon_box {
    flex: 1 1 calc(33.333% - 30px);
    margin: 15px;
    padding: 30px;
    background: #A7A8A9;
    border-radius: 8px;
    box-shadow: 0 0 30px 0 rgba(68, 68, 68, 0.8);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.icon_box.show {
    opacity: 1;
    transform: translateY(0);
}

.icon_box::before {
    content: "";
    position: absolute;
    right: 60px;
    top: -40px;
    width: 100px;
    height: 100px;
    border-radius: 50px;
    transition: all 0.3s;
    background: #8A181A;
    z-index: -1;
}

.icon_box:hover::before {
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.icon_box .icon {
    margin: 0 auto 20px auto;
    padding-top: 10px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    background: #000;
    width: 60px;
    height: 60px;
    transition: all 0.3s ease-in-out;
}

.icon_box .icon i {
    font-size: 38px;
    line-height: 1.1;
    color: #fff;
}

.icon_box:hover .icon {
    background: #fff;
    transform: rotateY(360deg);
}

.icon_box:hover .icon i {
    color: #000;
}

.title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    transition: 0.5s ease-in-out;
}

.description {
    font-size: 15px;
    line-height: 28px;
    margin-bottom: 15px;
    transition: 0.5s ease-in-out;
    flex-grow: 1;
}

.icon_box:hover .title,
.icon_box:hover .description {
    color: #fff;
}

.read-more {
    background-color: #8A181A;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    background-color: #6d1315;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.icon_box:hover .read-more {
    background-color: #fff;
    color: #8A181A;
}

/* New Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 1000px;
    width: 90%;
    position: relative;
}

.close-button {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    color: #8A181A;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-title {
    color: #8A181A;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.modal-image-container {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
}

.modal-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease-out;
}

.modal-image.horizontal {
    object-fit: cover;
    height: 100%;
    width: auto;
    max-width: none;
}

@keyframes panImage {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% + 100vw));
    }
}
.modal-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a4a4a;
}

.characteristics-title {
    color: #8A181A;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.characteristics-list {
    display: grid;
    gap: 1rem;
}

.characteristic-item {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 0.5rem;
}

.characteristic-item h4 {
    color: #8A181A;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.characteristic-item p {
    color: #666;
    font-size: 0.95rem;
}

@media (max-width: 991px) {
    .icon_box {
        flex: 0 1 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .icon_box {
        flex: 0 1 calc(100% - 30px);
        max-width: 100%;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }
}
@media (max-width: 480px) {
    .brand-logo {
        width: 100px;
    }

    .links li a {
        padding: 3px;
    }

    .links li a .icon {
        font-size: 1rem;
    }
    .links {
        display: flex;
        gap: 5px;
        margin: 0;
        padding: 0;
    }
    .links a .icon {
        font-size: 1rem;
    }

    .links a .link-text {
        font-size: 0.6rem;
    }
}
@media (max-width: 600px) {
    .brand-logo {
        width: 100px;
    }

    .links {
        gap: 5px;
    }

    .links li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.7rem;
        padding: 5px;
    }

    .links li a .icon {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }

    .links li a .link-text {
        display: block;
    }

    .h1 {
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .brand-logo {
        width: 100px;
    }

    .links li a {
        padding: 3px;
    }

    .links li a .icon {
        font-size: 1rem;
    }
    .links {
        display: flex;
        gap: 5px;
        margin: 0;
        padding: 0;
    }
    .links a .icon {
        font-size: 1rem;
    }

    .links a .link-text {
        font-size: 0.6rem;
    }
    .navegador .links {
        gap: 20px; /* Reduce el espacio entre los elementos */
    }
}
@media (max-width: 380px) {
    .navegador .links {
        gap: 5px; /* Reduce el espacio entre los elementos */
    }
}