:root {
    --primary-color: #0056A4;
    --secondary-color: #e54b1b;
    --text-color: #d8d8d8;
    --hover-claro: #a5a5a5;
    --text-oscuro: #2a2c2e;
    --background-hero: linear-gradient(135deg, #0033A4 0%, #6A8DFF 100%);
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    height: 100%;
    overflow-x: hidden;
}

.hero-section {
    position: relative;
    height: 82vh;
    background: var(--background-hero);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5% 10%;
    overflow: hidden;
    z-index: 1;
    animation: gradientShift 10s ease infinite;
}


@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

.hero-section:hover video {
    opacity: 1;
}

.hero-section h3 {
    display: flex;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 0.8s forwards 0.5s;
    color: var(--text-color);
}

.hero-section h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    max-width: 60%;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 0.8s forwards 0.8s;
}

.buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-red, .btn-white {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-align: center;
    opacity: 1; /* Si no quieres animación de aparición, mantén la opacidad en 1 */
    transform: translateY(0); /* Ajuste inicial */
    text-decoration: none; /* Para eliminar subrayado en enlaces */
}

/* Estilo del botón rojo */
.btn-red {
    background-color: var(--secondary-color, #0033A4); /* Fallback si no se define */
    color: var(--text-color, #FFFFFF); /* Fallback */
    animation: fadeInUp 0.8s forwards 1.1s;
}

/* Estilo del botón blanco */
.btn-white {
    background-color: #FFFFFF;
    color: var(--primary-color, #0033A4); /* Fallback */
    animation: fadeInUp 0.8s forwards 1.3s;
}

/* Hover en ambos botones */
.btn-red:hover, .btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section h1 {
    color: rgba(216, 216, 216, 0.1);
    font-size: 12vw;
    margin: 0;
    position: absolute;
    bottom: 5%;
    left: 1%;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 0.8;
    z-index: -1;
    transition: all 0.5s ease;
}

.hero-section:hover h1 {
    color: var(--text-color);
    transform: scale(1.05);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Estilos en menú de navegación ***/
nav {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.95);
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 60px;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
    height: 100%;
}

nav ul li {
    padding: 0 20px;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);/* cambiar para que la sombra sea solo en las letras*/
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    display: flex;
    position: absolute;
    width: 0;
    height: 2px;
    bottom: auto;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

.logo img {
    max-height: 50px;
    width: auto;
}

#menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 15px;
    z-index: 1100;
    transition: transform 0.3s ease;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 4px;
    background-color: var(--primary-color);
    margin-bottom: 6px;
    transition: all 0.3s ease;
}


@media (max-width: 768px) {
    nav {
        background-color: #d8d8d8;
    }
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(255,255,255,0.95);
        padding: 20px 0;
        height: 290px;
    }

    nav ul li {
        margin: 10px 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        padding: 15px;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    #menu-toggle:checked ~ ul {
        display: flex;
    }

    #menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}


@media (max-width: 768px) {
    .hero-section {
        padding: 5%;
    }

    .hero-section h2 {
        font-size: 2.5rem;
        max-width: 100%;
    }

    .buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-section h1 {
        font-size: 10vw;
        line-height: 0.1;
    }
    
}

/*** Estilo seccion parte 1***/
.parte-1 {
    display:flex;
    justify-content: center;
    align-items: baseline;
    height: 30vh;
    margin: 0;
    background-color: #f0f0f0;
}

.parrafo p {
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    max-width: 800px;
    width: 90%;
    padding: 20px;
}
.parrafo p::first-letter {
    font-size: 2em;
    font-weight: bold;
    color: #4a4a4a;
}

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    .parte-1 {
        padding: 30px 15px;
    }

    .parrafo p {
        font-size: 1rem;
    }
}

/* Mobile Styles */
@media screen and (max-width: 600px) {
    .parte-1 {
        padding: 20px 10px;
    }

    .parrafo {
        max-width: 100%;
        padding: 0 15px;
    }

    .parrafo p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/***Sección de servicios***/
.services-section {
    text-align: center;
    margin: 2rem 0;
}

.services-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

/* Contenedor de servicios */
.services-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan si no caben en una fila */
    gap: 2rem; /* Espacio entre los elementos */
    width: 100%; /* Usar el ancho completo del contenedor */
    max-width: 1200px; /* Limitar el ancho máximo */
    margin: 0 auto; /* Centrar el contenedor */
    padding: 20px;
}

/* Elemento de cada servicio */
.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(20% - 2rem); /* Ajustar el ancho (%), menos el espacio entre columnas */
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.services-section h2 {
    font-weight: 700;
    font-size: 56px;
    line-height: 1.2em;
    text-align: center;
    color: var(--primary-color);
}

.image-container {
    width: 100%;
    height: 300px; /* Altura fija */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Oculta el desbordamiento */
}

.service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen se adapte sin perder proporción */
    border-radius: 5px;
}

/* Botón de cada servicio */
.service-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: fit-content;
    margin-top: 1rem;
}

.service-btn:hover {
    background-color: #002EB8;
}

/* Responsivo */
@media (max-width: 768px) {
    
    .services-container {
        flex-direction: column;
    }
    
    .service-item {
        width: 80%; /* Se ajusta para móviles */
        margin-bottom: 2rem;
    }
}

/***Seccion azul***/
.blue-section {
    background-color: #0000FF;
    padding: 6rem 2rem;
    height: 400px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.section-title {
    color: white;
    font-size: 3.5rem;
    font-weight: bold;
    width: 60%;
}

.info-button {
    position: absolute;
    right: 0;
    top: 50%;
    background-color: var(--text-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 9999px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
    text-decoration: none;
}

.info-button:hover {
    background-color: var(--hover-claro);
}

@media (max-width: 768px) {
    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .section-title {
        font-size: 2.5rem;
        width: 100%;
    }

    .info-button {
        position: static;
        transform: none;
    }

    
}

/***estilos de secction slider****/
.slider-section {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.slider-section .container {
    position: relative;
    width: 100%;
    height: 600px;
    background: transparent;
    margin: 0 auto;
}

.slider-section .titulo-slider h2 {
    font-weight: 500;
    font-size: 56px;
    line-height: 0.5em;
    text-align: center;
    font-weight: bold;
    margin-bottom: 2rem;
    margin-top: 0.5rem;
    color: var(--primary-color);
}

.container .slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.container .slide .item {
    width: 200px;
    height: 300px;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: 0.3s;
}

.slide .item:nth-child(1),
.slide .item:nth-child(2) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.slide .item:nth-child(3) {
    left: 50%;
}

.slide .item:nth-child(4) {
    left: calc(50% + 220px);
}

.slide .item:nth-child(5) {
    left: calc(50% + 440px);
}

.slide .item:nth-child(n + 6) {
    left: calc(50% + 660px);
    opacity: 0;
}

.item .content {
    position: relative;
    top: 50%;
    left: 100px;
    width: 300px;
    text-align: left;
    color: #fff;
    transform: translate(0, -50%);
    font-family: system-ui;
    display: none;
    z-index: 1;
}

.slide .item:nth-child(2) .content {
    display: block;
}

.content .name {
    font-size: 40px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: bolder;
    opacity: 0;
    animation: animate 1s ease-in-out 1 forwards;
}

.content .des {
    margin: 20px 0;
    color: var(--secondary-color);
    font-weight: bold;
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
}

/* flechas de slide*/
.button {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 20px;
    z-index: 2;
}

.button button {
    width: 40px;
    height: 35px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.5);
    color: #000;
    transition: 0.3s;
}

.button button:hover {
    background: #fff;
}

@keyframes animate {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }
    to {
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

/* Media queries para responsividad */
@keyframes animate {
    from {
        opacity: 0;
        transform: translate(0, 30px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

/* Media queries para responsividad */
@media (max-width: 1200px) {
    .slider-section {
        padding: 1rem;
        min-height: 500px;
    }

    .container {
        height: 500px;
    }
}

@media (max-width: 992px) {
    .container {
        height: 450px;
    }
    
    .slide .item:nth-child(n + 4) {
        display: none;
    }
}

@media (max-width: 768px) {
    .slider-section {
        min-height: 400px;
    }

    .container {
        height: 400px;
    }

    .item .content {
        width: 85%;
        padding: 1rem;
    }

    .content .des {
        margin: 0.75rem 0;
    }

    .slide .item:nth-child(n + 3) {
        display: none;
    }

    .slider-section .titulo-slider h2 {
        font-size: 40px;
        text-align: center;
        line-height: 2.5;
    }
}

@media (max-width: 480px) {
    .slider-section {
        min-height: 300px;
    }

    .container {
        height: 300px;
    }

    .button button {
        width: 2.5rem;
        height: 2.5rem;
    }

    .slider-section .titulo-slider h2 {
        font-size: 40px;
        text-align: center;
        line-height: 2.5;
    }
}

/**Estilos de iconos flotantes**/

.iconosFlotantes {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#btn-mas{
    display: none;
}

.floating-icons {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.redes a, .btn-mas label{
    display: block;
    text-decoration: none;
    background: var(--primary-color);
    color: #fff;
    width: 55px;
    height: 55px;
    line-height: 55px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0px 1px 10px rgba(0,0,0,0.4);
    transition: all 500ms ease;
}
.redes a:hover{
    background: #fff;
    color: var(--hover-claro);
}
.redes a{
    margin-bottom: -15px;
    opacity: 0;
    visibility: hidden;
}
#btn-mas:checked~ .redes a{
    margin-bottom: 10px;
    opacity: 1;
    visibility: visible;
}
.btn-mas label{
    cursor: pointer;
    background: var(--primary-color);
    font-size: 23px;
}
#btn-mas:checked ~ .btn-mas label{
    transform: rotate(135deg);
    font-size: 25px;
}

/***Estilo de footer***/
footer {
    background-color: var(--primary-color);
    padding: 40px 0;
    color: var(--text-color);
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content:space-between; /* Distribuye los elementos */
}


/* Logo del footer */
.footer-logo {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 200px; /* Ajuste de ancho */
    margin-bottom: 20px;
}

.footer-logo img {
    width: 180px; /* Ajuste de tamaño de imagen */
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 16px;
    color: var(--text-color);
    text-align: center;
    line-height: 1;
    margin-left: 20px;
}

/* Enlaces en el footer */
.footer-links {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 40px;
    gap: 60px; /* Espacio entre las columnas */
}

.footer-links div {
    flex: 1;
    min-width: 50px; /* Ancho mínimo de columnas */
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px; /* Más espacio entre los elementos */
}

.footer-links ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

/* Sección de Contactanos y Sobre Nosotros */
.footer-section h2, .footer-section h3 {
    color: var(--secondary-color); /* Color de los títulos */
    margin-bottom: 12px;
    font-size: 22px; /* Tamaño consistente */
    line-height: 1;
}

.footer-section p {
    color: var(--text-color);
    margin: 8px 0; /* Espacio entre líneas */
    font-size: 16px;
    line-height: 2; /* Altura de línea para mejor legibilidad */
}

/* Redes sociales */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 20px;
}

.footer-social a {
    font-size: 14px;
    text-decoration: none;
}

.footer-social a:hover {
    color: var(--secondary-color);
}

.social-icon {
    width: 30px;
    height: 30px;
}

/* Copyright y línea divisoria */
.footer-copyright {
    font-size: 14px; /* Ajuste del tamaño de fuente */
    color: var(--text-color);
    margin-top: 20px;
    border-top: 2px solid #fff; /* Línea más delgada */
    padding-top: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 0 auto;
    text-align: center;
}

.footer-copyright p {
    font-size: 16px;
    color: #d8d8d8;
    margin: 0;
}

/* Responsividad */
@media (max-width: 768px) {
    footer {
        padding: auto;
        width: 100%;
    }

    .footer-container {
        padding: auto;
        width: 100%;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .footer-links div {
        width: 100%;
        text-align: center;
        flex-direction: column;
    }

    .footer-logo {
        flex-direction: column;
        align-items: center;
    }
}
