/* Variables globales */
:root {
    --primary-color: #007bff;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --navbar-height: 76px;
}

/* Estilos base */
body {
    padding-top: var(--navbar-height);
}

footer p {
    color: white;
}

h2 {
    color: grey;
}

h5 {
    color: white;
}

p {
    color: grey;
}

/* Navbar */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px grey;
}

.logo {
    height: 50px;
    width: auto;
}

.nav-link {
    color: grey;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: lightgray;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
}

/* Secciones */
section {
    padding: 40px 0;
}

/* Formulario de contacto */
.form-control {
    border-radius: 0;
    border: 1px solid #ddd;
    padding: 0.8rem;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    border-color: #86b7fe;
}

.suscripcion-form .btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.8;
}

.suscripcion-form .btn:disabled {
    animation: buttonLoading 1.5s infinite;
}

/* Botones */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: grey;
    border: none;
}

.btn-primary:hover {
    background-color: grey;
}

/* Footer */
.footer {
    background-color: grey;
    color: white;
    padding: 2rem 0;
}

.social-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer .col-md-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer .col-md-4 .social-links {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    padding: 10px 0;
}

.footer .col-md-4 .social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer .col-md-4 .social-links img {
    width: 30px;
    height: 30px;
}

.footer a:hover {
    color: var(--primary-color);
}

.social-links a {
    margin-right: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.social-links img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.1);
}

/* Animación de carga */
@keyframes buttonLoading {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Responsive */
@media (max-width: 1200px) {
    section {
        padding: 40px 0;
    }
}

@media (max-width: 992px) {
    section {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }

    .footer h5 {
        margin-bottom: 15px;
    }

    .footer .list-unstyled {
        padding-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer .social-links {
        flex-direction: column;
        text-align: center;
    }

    .footer p {
        margin-bottom: 8px;
    }

    .footer .col-md-4 {
        margin-bottom: 30px;
    }

    .footer .col-md-4 .social-links {
        gap: 25px;
        justify-content: center;
        width: 100%;
    }

    .footer .col-md-4 .social-links a {
        flex: 0 0 auto;
    }

    .footer .col-md-4:last-child {
        margin-bottom: 0;
    }

    .navbar-nav {
        text-align: center;
    }
    
    .hero {
        text-align: center;
    }

    .suscripcion, #contacto {
        padding: 5rem 1.5rem;
    }
    
    .suscripcion {
        padding-top: 80px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }

    .footer {
        padding: 30px 0;
    }
    
    .footer .col-md-4 {
        margin-bottom: 25px;
        width: 100%;
    }

    .footer .col-md-4 .social-links {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        gap: 25px;
        padding: 10px 0;
        width: 100%;
    }

    .footer .col-md-4 .social-links a {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .footer .col-md-4 .social-links img {
        width: 30px;
        height: 30px;
    }

    .suscripcion, #contacto {
        padding: 6rem 1rem;
    }
    
    .suscripcion {
        padding-top: 70px;
    }
}

/* Estilos para los formularios */
.suscripcion-form .input-group {
    border: 1px solid #dee2e6;
    background: white;
}

.suscripcion-form .form-control {
    border: none;
}

.suscripcion-form .btn {
    border: none;
}

#contactForm {
    background: white;
    border: 1px solid #dee2e6;
}

#contactForm .form-control:focus,
.suscripcion-form .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    border-color: #86b7fe;
}

/* Ajuste para el botón dentro del input group */
.input-group .btn {
    z-index: 0;
}

/* Ajustes de padding para las secciones */
.suscripcion {
    padding-top: 100px;
    padding-bottom: 4rem;
}

#contacto {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
