/* Variables de color para mantener consistencia */
:root {
    --color-principal: #0274BE;
    --verde: #499A77;
    --plomo: #A8A8A8;
    --azul-contact: #0E1F60;
    --plomo-claro: #F1F1F1;
    --azul-claro: #0274BE;
    --negro:#000000;
    --vinoz: #8b2332;
}

/* Estilos generales */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--plomo-claro);
    margin: 0;
    padding: 0;
    color: #333;
}

/* Estilos del Header */
header.main-header {
    background-color: white;
    padding: 1.5rem 2rem;
    border-bottom: 4px solid var(--color-principal);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#header {
    display: block;
}

.logo {
    max-width: 150px;
    display: block;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav .nav-menu {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    font-weight: bold;
    color: var(--azul-contact);
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-principal);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-principal);
}

.contact-btn {
    background: linear-gradient(to left, var(--color-principal) 50%, white 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    color: white;
    padding: 0.7rem 1.5rem;
    border: 1px solid var(--color-principal);
    border-radius: 0;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-position 0.5s ease, color 0.5s ease;
    text-transform: uppercase;
}

.contact-btn:hover {
    background-position: 0% 0;
    color: var(--azul-contact);
}

/* Estilos del Main */
main {
    padding: 4rem 3rem;
    background: linear-gradient(to bottom, #f9f9f9, #ffffff);
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-title i {
    color: var(--color-principal);
}

.main-content h1 {
    font-size: 2.5rem;
    color: var(--azul-contact);
    margin-bottom: 2rem;
    text-align: center;
}

.main-content p {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 3rem;
    line-height: 1.8;
    text-align: center;
}

/* Estilos del Banner */
.banner {
    position: relative;
    background-image: url('/images/banner-image.webp');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
}

.banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.banner p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.banner-btn {
    display: inline-block;
    background-color: white;
    color: var(--azul-contact);
    padding: 0.8rem 2rem;
    border: 1px solid var(--azul-contact);
    border-radius: 0;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}
.banner-btn:hover {
    background-color: var(--vinoz);
    color: #ffffff;
    border-color: var(--vinoz);
}

/* Estilos de las Secciones (Solutions) */
.solutions {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.solution {
    background: linear-gradient(to left, white 50%, var(--verde) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    width: 350px;
    height: 300px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: calc(var(--delay) * 0.2s);
    transition: background-position 0.5s ease;
}

.solution:hover {
    background-position: 0% 0;
}

.solution:nth-child(1) { --delay: 1; }
.solution:nth-child(2) { --delay: 2; }
.solution:nth-child(3) { --delay: 3; }
.solution:nth-child(4) { --delay: 4; }
.solution:nth-child(5) { --delay: 5; }

.solution i {
    color: var(--color-principal);
    margin-bottom: 0.5rem;
}

.solution h3 {
    font-size: 1.4rem;
    color: var(--azul-contact);
    transition: color 0.5s ease;
    text-align: center;
}

.solution:hover h3 {
    color: #ffffff;
}

.solution p {
    font-size: 1.2rem; /* Aumentado de 0.9rem a 1.2rem */
    color: var(--negro);
    flex-grow: 1;
    transition: color 0.5s ease;
}

.solution:hover p {
    color: #ffffff;
}

.solution .learn-more {
    display: inline-block;
    background-color: white;
    color: var(--azul-contact);
    padding: 0.4rem 1.2rem;
    border: 1px solid var(--azul-contact);
    border-radius: 0;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

.solution:hover .learn-more {
    background-color: var(--azul-contact);
    color: #ffffff;
    border-color: var(--azul-contact);
}

/* Estilos del Botón de WhatsApp */
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    background-color: #25D366;
    color: white;
    padding: 0.8rem 1.5rem;
    border: 1px solid #25D366;
    border-radius: 0;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #1DA851;
}

/* Estilos del Footer */
#footer {
    display: block;
}

.modern-footer {
    background-color: var(--azul-contact);
    color: white;
    padding: 4rem 1.5rem;
    text-align: center;
    overflow-x: hidden;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col i {
    color: var(--color-principal);
    margin-bottom: 0.8rem;
}

.footer-col h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #ffffff;
}

.footer-col p,
.footer-col a,
.footer-col li {
    color: var(--plomo);
    font-size: 0.9rem;
    margin: 0.2rem 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.footer-col a {
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.3rem;
}

.footer-bottom {
    margin-top: 3rem;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.footer-logo-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.footer-logo-col a {
    text-decoration: none;
}

.footer-logo-col img {
    max-width: 100px;
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.footer-logo-col img:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Animaciones */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Media Queries para Diseño Responsive */
@media (max-width: 768px) {
    header.main-header {
        flex-direction: column;
        align-items: center;
    }
    .main-content {
        max-width: 100%;
        padding: 0;
    }
    .logo {
        margin-bottom: 1rem;
    }
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    nav .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .contact-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .solutions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
    }
    .solution {
        width: 90%;
        max-width: 300px;
        height: auto;
        min-height: 200px;
        padding: 1.5rem;
        margin: 0 auto;
    }
    .solution h3 {
        font-size: 1.2rem;
    }
    .solution p {
        font-size: 0.9rem; /* Aumentado de 0.8rem a 0.9rem */
    }
    .solution .learn-more {
        font-size: 0.8rem;
        padding: 0.3rem 1rem;
    }
    main {
        padding: 2rem 1rem;
    }
    .banner {
        height: 400px;
    }
    .banner h1 {
        font-size: 2.2rem;
    }
    .banner p {
        font-size: 1.2rem;
    }
    .banner-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    .footer-columns {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    .footer-logo-col img {
        max-width: 80px;
    }
}

@media (max-width: 450px) {
    .modern-footer {
        padding: 2rem 0.5rem;
    }
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .footer-col h4,
    .footer-col p,
    .footer-col a,
    .footer-col li {
        font-size: 0.8rem;
    }
}

@media (max-width: 420px) {
    .solution {
        width: 90%;
        max-width: 280px;
        padding: 1rem;
    }
    .solution h3 {
        font-size: 1.1rem;
    }
    .solution p {
        font-size: 0.85rem; /* Aumentado de 0.75rem a 0.85rem */
    }
}