* {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    margin: 0;
    padding: 0;
    font-size: 22px;
    
}

body {
    background-size: cover;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    color: white;
}

.header {
    width: 100%;
    height: 100px;
    background-color: #8B0000;
    overflow: hidden;
    position: relative;
}

.header-layer {
    position: absolute;
    width: 100%;
    left: 0;
    height: 50px;
    transform: skewY(-5deg);
}

.header .layer1 {
    background: linear-gradient(to right, #5C0000, #8B0000);
    top: 0;
    left: 0;
}

.header .layer2 {
    background: linear-gradient(to right, #A00000, #C00000);
    top: 20px;
    left: -20px;
    transform: skewY(-5deg);
}

.header .layer3 {
    background: linear-gradient(to right, #D02020, #FF3030);
    top: 40px;
    left: -20px;
    transform: skewY(-5deg);
}

.navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px;
}

.logo img {
    height: 70px;
    border-radius: 50%;
    margin-left: -50px;
    margin-right: 300px;
    transition: transform 0.3s ease-in-out;
    background: white;
}

.logo img:hover {
    transform: scale(1.1);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-grow: 1;
    justify-content: center;
    gap: 40px;
    padding: 0;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    font-size: 16px;
    transition: background 0.3s ease-in-out;
}

.nav-links li:last-child {
    margin-left: auto;
    margin-right: 40px;
}

.nav-links a:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Hover casi transparente (10% de opacidad) */
    border-radius: 10px;
}

main {
    flex: 1;
}

.footer {
    position: relative;
    width: 100%;
    height: 100px;
    background-color: #1b3d0f;
    overflow: hidden;
    margin-top: auto;
}

.footer-layer {
    position: absolute;
    width: 120%;
    height: 60px;
    transform: skewY(-5deg);
}

.footer .layer1 {
    background: linear-gradient(to right, #0d330d, #136c13);
    bottom: 0;
    left: 0;
}

.footer .layer2 {
    background: linear-gradient(to right, #1f7a1f, #3ea93e);
    bottom: 20px;
    left: -10px;
    transform: skewY(-5deg);
}

.footer .layer3 {
    background: linear-gradient(to right, #3ca73c, #5cc75c);
    bottom: 40px;
    left: -20px;
    transform: skewY(-5deg);
}

.infofooter {
    font-size: 15px;
    font-weight: bold;
    color: white;
    text-align: center;
    display: block;
    width: 100%;
    position: relative;
    z-index: 10;
    line-height: 15px;
}

/* NUEVO DISEÑO DE SECCIÓN DE CONTACTO */

.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 30% 30%, red 30%, green 70%);
    padding: 100px 20px;
    flex: 1;
}


.contact-card {
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    text-align: center;
    color: #333;
}

.contact-card h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #136c13;
}

.contact-card p {
    font-size: 18px;
    margin-bottom: 20px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: center;  /* ← Aquí el cambio */
    font-size: 18px;
}


.contact-list li {
    margin-bottom: 10px;
    display: inline-block; /* ← Hace que se vean mejor centrados */
}


.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.social-links img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.2);
}

.contact-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #136c13;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.contact-button:hover {
    background-color: #0b500b;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    * {
        font-size: 16px;
    }

    body {
        font-size: 16px;
    }

    .header {
        height: auto; /* Permite que la altura se ajuste al contenido */
        padding-bottom: 3px; /* Reducimos el padding inferior del header */
        position: relative;
    }

    .header-layer {
        height: 15px; /* Reducimos la altura de las capas */
        position: absolute;
        width: 100%;
        left: 0;
        transform: skewY(-5deg);
    }

    .header .layer1 {
        background: linear-gradient(to right, #5C0000, #8B0000);
        top: 0;
    }

    .header .layer2 {
        background: linear-gradient(to right, #A00000, #C00000);
        top: 3px; /* Ajustamos la posición de la capa */
        left: -2px; /* Ajustamos la posición de la capa */
    }

    .header .layer3 {
        background: linear-gradient(to right, #D02020, #FF3030);
        top: 6px; /* Ajustamos la posición de la capa */
        left: -2px; /* Ajustamos la posición de la capa */
    }

    .logo img {
        height: 35px; /* Reducimos la altura del logo */
        margin-left: 0;
        margin-right: 0;
        display: block;
        margin: 3px auto; /* Reducimos los márgenes */
    }

    .navbar {
        flex-direction: column;
        align-items: stretch;
        padding: 3px; /* Reducimos el padding del navbar */
        position: relative;
        z-index: 100;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0;
        gap: 2px; /* Reducimos el espacio entre los enlaces */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 8px 0; /* Reducimos el padding vertical de los enlaces */
        box-sizing: border-box;
        font-size: 14px; /* Reducimos el tamaño de la fuente */
        font-weight: bold;
        text-decoration: none;
        color: white;
        border-radius: 2px;
        transition: background-color 0.3s ease;
    }

    .nav-links a:hover {
        background-color: rgba(0, 0, 0, 0.1); /* Mantenemos el hover */
        border-radius: 5px; /* Reducimos el radio del borde */
    }

    .footer {
        height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .footer-layer {
        height: 20px; /* Reducimos la altura de las capas del footer */
        position: absolute;
        width: 120%;
        transform: skewY(-5deg);
    }

    .footer .layer1 {
        background: linear-gradient(to right, #0d330d, #136c13);
        bottom: 0;
        left: 0;
    }

    .footer .layer2 {
        background: linear-gradient(to right, #1f7a1f, #3ea93e);
        bottom: 3px; /* Ajustamos la posición de la capa */
        left: -2px; /* Ajustamos la posición de la capa */
    }

    .footer .layer3 {
        background: linear-gradient(to right, #3ca73c, #5cc75c);
        bottom: 6px; /* Ajustamos la posición de la capa */
        left: -3px; /* Ajustamos la posición de la capa */
    }

    .infofooter {
        font-size: 10px;
        font-weight: bold;
        color: white;
        text-align: center;
        display: block;
        width: 100%;
        position: relative;
        z-index: 10;
        line-height: 1.1;
        padding: 3px;
    }

    .contact-wrapper {
        padding: 20px 10px; /* Reducimos el padding */
    }

    .contact-card {
        padding: 10px; /* Reducimos el padding */
    }

    .contact-card h2 {
        font-size: 18px; /* Reducimos el tamaño de la fuente */
    }

    .contact-card p {
        font-size: 12px; /* Reducimos el tamaño de la fuente */
        margin-bottom: 8px;
    }

    .contact-list {
        font-size: 12px; /* Reducimos el tamaño de la fuente */
        margin: 5px 0;
    }

    .social-links img {
        width: 16px; /* Reducimos el tamaño de los iconos */
        height: 16px;
    }

    .contact-button {
        font-size: 9px; /* Reducimos el tamaño de la fuente */
        padding: 4px 6px; /* Reducimos el padding */
    }
}