:root {
    --main-sg-color: #c14d4d;
}

body {
	padding: 0;
	margin: 0;
	font-family: "Poppins", sans-serif;
	box-sizing: border-box;
    outline: none;
}

button { font-family: "Poppins", sans-serif; cursor:pointer; outline:none; }
a { text-decoration:none; }

header {
    width: 90%;
    padding: 1.6rem 0;
    display: grid;
    grid-template-columns: 70% 30%;
    margin: auto;
}

.menu {
    display: flex;
    margin: auto 0;
}

.img-logo img {
    width: 80px;
}

.menu ul li a {
    text-decoration: none;
    color: #000;
    font-size: 1.1em;
    margin: 10px;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: auto 0;
}

.btn-intranet {
    margin: auto;
}

.btn-intranet button {
/*    background: #0aa6d7;*/
    background: #c14d4d;
    color: #fff;
    font-size: 0.9rem;
    border: none;
    padding: 12px;
    border-radius: 4px;
}

.btn-intranet button a {
    text-decoration: none;
    color: #fff;
}

.clred {
    color: #c14d4d;
}

/* SLIDER */

.slider {
    position: relative;
    width: 100%;
    height: 88vh;
    overflow: hidden;
}

/* Contenedor de las imágenes */
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

/* Cada slide */
.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

/* Imagen de cada slide */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen al tamaño sin deformarla */
}

.content-sub {
    display: grid;
    grid-template-columns: 45% 55%;
    height: 100%;
}

.slide-content.title {
    position: unset;
}

/* Títulos y descripciones */
.slide-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); */
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.content-sub-home {
    width: 100%;
    height: 100%;
    background: linear-gradient(rgb(0 0 0 / 25%), rgb(0 0 0 / 25%)), url(../images/slider-home.png);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
}

.slide-content.home {
    bottom: auto;
    left: 7%;
}

.description-content.home {
    width: 80%;
    margin: 16% 0 0 0;
    position: relative;
    z-index: 2;
}

.slide-content.title {
    position: unset;
    background: #feeded;
}

.slide-content.title .wave-positive::before {
    background: url(../images/wave.png);
    display: block;
    content: '';
    width: 70%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(270deg);
    position: absolute;
    top: 0;
    right: 0;
}


.slide-content.title .wave-negative::before {
    background: url(../images/wave.png);
    display: block;
    content: '';
    width: 70%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(-270deg);
    position: absolute;
    top: 0;
    left: -10%;
}

.arrow-home::before {
    background: url(../images/arrow-long.png);
    display: block;
    content: '';
    width: 100px;
    height: 100px;
    background-repeat: no-repeat;
    position: absolute;
    bottom: 140px;
    left: 150px;
}

.slide-content.title::after {
    background: url(../images/maiz.png);
    display: block;
    content: '';
    width: 70%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    right: 0;
    margin-top: -5em;
}

.slide-content.title h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
    text-shadow: none;
    color: #000;
    text-transform: uppercase;
    width: 90%;
}

.slide-content.title p {
    color: #000;
    text-shadow: none;
    width: 80%;
    font-family: 'Outfit';
    line-height: 1.5;
}

.description-content {
    width: 90%;
    margin: auto;
    margin-top: 20%;
    position: relative;
    z-index: 2;
}


.slide-content p {
    font-size: 1.5rem;
}

.btn {
    background: #c14d4d;
    color: #fff;
    font-family: 'Poppins';
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 0 12px 3px rgb(209 27 27 / 24%);
}

.btn.btn-home {
    padding: 12px 14px;
    font-size: 17px;
    
}

.buttom-home {
  margin-top: 3rem;  
}

/* Botones de navegación */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: inline-flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 2;
}

button.control.prev { margin-left:2rem; }
button.control.next { margin-right: 2rem; }

.control {
    color: #fff;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 50%;
    background: none;
    border: 1px solid #fff;
    font-size: 1.2rem;
}

.control:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Indicadores (puntos) */
.indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.indicator.active {
    background: white;
}

/* CONTROL ACCESO */

.control-access {
    text-align: center;
    padding: 2rem 0;
}

.control-access .content {
    display: flex;
    justify-content: space-evenly;
}

.control-access .bx-cacc {
    text-align: center;
    /* background: #f4f5f5; */
    padding: 2rem 5rem;
    border-radius: 8px;
    border: 1px solid #e9e9e9;
    box-shadow: 0px 0px 43px 0px rgb(0, 0, 0, .15);
    transition: 1s ease-out;
    cursor: pointer;
}

.control-access .bx-cacc i {
    font-size: 2.2rem;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #c14d4d;
    color: #fff;
    line-height: 1.7;
}

.bx-cacc:hover {
    transform: scale(1.1);
    /* transition: 5s ease-out; */
}

.bx-cacc h3:hover { color: var(--main-sg-color); }
.bx-cacc h3 { color: #000; }


/* FOOTER */

footer .content {
    background: #f6f7fb;
    display: grid;
    grid-template-columns: repeat(3, 33.33%);
    padding: 2rem;
}

.bx-footer img {
    width: 120px;
}

footer .bx-footer h3 {
    font-size: 14px;
    margin: 0;
}

footer .bx-footer {
    text-align: center;
}

footer .bx-footer ul {
    list-style: none;
    padding: 0;
}

footer .bx-footer ul li a {
    display: block;
    color: #000;
}

footer .bx-footer ul li a i {
    color: var(--main-sg-color);
}

footer .red-social ul li a {
    display: inline-block;
    margin: 0px 1rem;
    font-size: 1.6rem;
}

footer .creditos {
    width: 95%;
    margin: auto;
    font-size: 12px;
}

footer .creditos ul {
    list-style: none;
    padding: 0;
}

footer .creditos ul li {
    display: flex;
    justify-content: space-between;
}


 /* Estilos del Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-in;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 80%;
    max-width: 700px;
    text-align: center;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    animation: zoomIn 0.4s ease-in;
}

/* Botones de navegación */
.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.modal-btn:hover {
    background-color: #0056b3;
}

.modal-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.close-btn {
    background-color: #dc3545;
}

.close-btn:hover {
    background-color: #c82333;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Contenido normal de la página */
.page-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}