body {
    background-color: #F0F4F8; 
    padding-top: 56px; 
    font-family: 'Poppins', sans-serif; 
}

.btn-primary {
    background-color: #7c1e1e;  
    border-color: #7c1e1e;
}

.btn-primary:hover {
    background-color: #530707;  
    border-color: #530707;
}

.logo-ong {
    width: 67px; 
    height: 67px; 
}

.logo-inicio{
    display: block;
    max-width: 100%;
    max-height: 270px;
    height: 270px;
    width: 500px;
}

.navbar-brand {
    display: flex; 
    align-items: center; 
    padding: 0; 
}

.navbar-font-color {
    color: #ffffff; 
}

.navbar-nav .nav-item .nav-link.active {
    color: #ff0000 !important; 
    font-weight: 700 !important; 
    border-bottom: 2px solid #ff0000 !important; 
}

.navbar-nav .nav-item .nav-link {
    color: #c4c4c4 !important; 
    font-weight: 500; 
    border-bottom: 2px solid transparent; 
    padding-bottom: 5px; 
    transition: all 0.3s ease; 
}

.navbar-nav .nav-item .nav-link:hover {
    color: #b30000 !important; 
    border-bottom-color: #b30000; 
}

/* Estilos para el botón del menú hamburguesa */
.navbar-toggler {
    border-color: #660b0b !important; 
    background-color: #660b0b !important; 
    padding: 0.25rem 0.75rem; 
}

/* Estilos para el ícono de las tres líneas (hamburguesa) dentro del botón */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Estilo para el botón cuando está enfocado o activo (se usa para accesibilidad) */
.navbar-toggler:focus,
.navbar-toggler:active {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.5) !important; 
    border-color: #660b0b !important; 
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; 
    color: #2c3e50; 
    margin-bottom: 1.5rem; 
    margin-top: 2rem; 
    line-height: 1.2; 
}

h1 {
    font-weight: 700; 
    font-size: 2.8rem; 
    text-align: center; 
    color: #007bff; 
}

h2 {
    font-weight: 600; 
    font-size: 2.2rem;
    border-bottom: 2px solid #e0e0e0; 
    padding-bottom: 0.5rem; 
}

h3 {
    font-weight: 500; 
    font-size: 1.8rem;
    color: #34495e; 
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif; 
}

/* Título principal */
#inicio h1 {
    font-size: 3.5rem; 
    color: #1a5276; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2); 
    margin-bottom: 2rem;
    text-transform: uppercase; 
}

/* Títulos de sección como "Quiénes Somos", "Contacto", "Nuestra Ubicación" */
section h2 {
    font-size: 2.5rem;
    color: #2c3e50; 
    text-align: center; 
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    position: relative; 
}

/* Línea decorativa debajo de los títulos h2 */
section h2::after {
    content: ''; 
    display: block;
    width: 100px; 
    height: 4px; 
    background-color: #f39c12; 
    margin: 0.5rem auto 0 auto; 
    border-radius: 2px; 
}

section[id] {
    scroll-margin-top: 100px; /* Espacio para el navbar fijo al hacer scroll */
}
/* Título del formulario "Envíanos un mensaje" */
#contacto h3 {
    font-size: 1.8rem;
    color: #34495e;
    text-align: center; 
    margin-bottom: 1.5rem;
    font-weight: 500;
}
/* Estilos para la sección de contacto */
.contact-info {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f8f9fa; 
    height: 100%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h4 {
    margin-top: 10px;
    margin-bottom: 5px;
    color: #343a40;
}

.contact-info p {
    margin-bottom: 0;
    color: #6c757d;
}

.contact-info a {
    color: #007bff; 
    font-weight: bold;
}

.contact-info a:hover {
    color: #0056b3;
}

.social-icons-contact a {
    color: #6c757d; 
    transition: color 0.3s ease;
}

.social-icons-contact a:hover .fa-instagram {
    color: #E1306C; 
}
.social-icons-contact a:hover .fa-facebook-f {
    color: #3b5998;
}
.social-icons-contact a:hover .fa-x-twitter {
    color: #000000;
}
.social-icons-contact a:hover .fa-youtube {
    color: #FF0000; /* Rojo para YouTube */
}

.email-ong {
    word-break: break-word; 
}

.card-text { 
    word-break: break-word;
}

.footer-logo img {
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8; 
    transition : opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 1; 
}

/* Estilos para la sección de inicio (home-hero) */
.home-hero {
    background-color: #F0F4F8; 
    background-repeat: no-repeat;
    background-position: center center; 
    background-size: cover; 
    min-height: 500px; 
    position: relative; 
}

/* Opcional: Overlay oscuro para mejorar la legibilidad del texto blanco sobre el logo */
.home-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Asegura que el contenido principal esté por encima del overlay */
.hero-content {
    position: relative;
    z-index: 1;
}

/* Contenedor principal para las etiquetas flotantes */
.form-floating {
    position: relative;
}

.form-floating > .form-control,
.form-floating > .form-control-plaintext,
.form-floating > .form-select,
.form-floating > textarea {
    padding: 1rem 0.75rem; 
    height: auto; 
    min-height: 3.5rem; 
}

/* Dando un efecto floating labels para los campos del formulario */
.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem; 
    pointer-events: none; 
    border: 1px solid transparent; 
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out; 
    opacity: .65; 
    color: #726c7d; 
}

/* Efecto al enfocar el campo o cuando ya tiene contenido (placeholder ya no visible) */
.form-control:focus ~ label,
.form-control:not(:placeholder-shown) ~ label,
.form-select:focus ~ label,
.form-select:not([value=""]):not(:first-child) ~ label, /* Para selects con valor */
textarea:focus ~ label,
textarea:not(:placeholder-shown) ~ label {
    opacity: .85; /* Aumenta la opacidad */
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem); /* Escala y mueve hacia arriba */
    color: #ff0000 !important; /* Cambia el color al enfocar o tener valor */
}

.form-control:focus,
textarea:focus {
    border-color: #ff0000 !important; 
    box-shadow: 0 0 0 0.25rem #ff0000; 
}

.form-control,
textarea {
    border-color: #dacece; 
}

/* Estilos opcionales para validación (si Bootstrap las usa con is-valid/is-invalid) */
/* Etiqueta para campo inválido */
.was-validated .form-floating > .form-control:invalid ~ label,
.form-floating > .form-control.is-invalid ~ label,
.was-validated .form-floating > .form-select:invalid ~ label,
.form-floating > .form-select.is-invalid ~ label,
.was-validated .form-floating > textarea:invalid ~ label,
.form-floating > textarea.is-invalid ~ label {
    color: #dc3545; /* Rojo para error */
}

/* Etiqueta para campo válido */
.was-validated .form-floating > .form-control:valid ~ label,
.form-floating > .form-control.is-valid ~ label,
.was-validated .form-floating > .form-select:valid ~ label,
.form-floating > .form-select.is-valid ~ label,
.was-validated .form-floating > textarea:valid ~ label,
.form-floating > textarea.is-valid ~ label {
    color: #198754; /* Verde para éxito */
}

footer {
    color: #f8f9fa;
    padding: 20px 0;
}
