@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    --primary-color: #ff0303;
    --primary-color2: #4d4c4cda;
    --secondary-color: #ffffff;
    --text-color: #333333;
    --background-color: #f5f5f5;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

h1, h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #c80f0f;
    color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo img {
    max-height: 60px;
    max-width: 100%;
}

.cruc img {
    max-height: 65px;
    max-width: 100%;
}

.products-image img {
    max-height: 90px;
    max-width: 100%;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 1rem;
}

header nav ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    font-weight: bold;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a:focus {
    color: var(--primary-color2);
}

header nav ul li a:hover::after,
header nav ul li a:focus::after,
header nav ul li a.active::after {
    transform: scaleX(1);
}

/* Main content styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Slider styles */
.slider {
    position: relative;
    height: 400px;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
}

.arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.arrow {
    cursor: pointer;
    font-size: 2rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--secondary-color);
    user-select: none;
    transition: background-color 0.3s ease;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Init styles */
.init {
    color: #373636f0;
    text-align: center;
    font-size: 0.6rem;
    background-size: cover;
    background-position: center;
    min-height: 40px;
}

.lista {
    color: #373636f0;
    font-size: 1.5rem;
}

.underline-dotted::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 80px;
    height: 5px;
    background-color: #da1010;
}

.section2 {
    margin-bottom: 2rem;
    text-align: left;
    font-size: 1.1rem;
}

/* Section styles */
.section {
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    color: #fefdfdf0;
    text-align: right;
    background-size: cover;
    background-position: center;
    min-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.texto_justificado {
    text-align: justify;
    margin-bottom: 4rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer styles */
footer {
    background-color: #333;
    color: var(--secondary-color);
    padding: 2rem;
    font-family: 'Roboto', Arial, sans-serif;
}

.social {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

footer .social a {
    color: var(--secondary-color);
    margin: 0 1rem;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social a:hover {
    color: var(--primary-color);
}

footer .contact-info {
    text-align: center;
    margin-bottom: 1rem;
}

footer .copyright {
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.8;
}


.map-container {
    position: relative;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    height: auto;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}



/* Responsive design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        margin-top: 1rem;
    }

    header nav ul li {
        margin: 0.5rem 0;
    }

    .init {
        padding: 2rem 1rem;
    }

    .section {
        padding: 2rem 1rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .slider {
        height: 300px;
    }

    .slide {
        height: 300px;
    }

    .arrow {
        font-size: 1.5rem;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1, h2 {
        font-size: 1.5rem;
    }

    .section {
        padding: 1rem;
    }

    .slider {
        height: 200px;
    }

    .slide {
        height: 200px;
    }
}
