:root {
    --primary-color: #000000;
    --secondary-dark: #006400;
    --secondary-light: #32CD32;
}

body {
    padding-top: 180px; /* Ajustado para navbar fijo con logo grande */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar fija con efecto al hacer scroll */
.navbar {
    background-color: black;
    transition: background-color 0.4s ease;
    padding: 10px 0;
}

.navbar.scrolled {
    background-color: black;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 130px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
    color: white !important;
}

.nav-link:hover {
    transform: scale(1.05);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #32CD32;
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

/* Botón de hamburguesa con color verde */
.navbar-toggler {
    border-color: #32CD32 !important;
}

.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='%2332CD32' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(50, 205, 50, 0.25) !important;
}

/* formulario */
.formulario-contacto {
    padding: 60px 0;
    background-color: #fff;
}

.titulo-seccion {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-weight: 700;
    position: relative;
}

.titulo-seccion::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #32CD32;
    margin: 15px auto;
    border-radius: 2px;
}

.form-contacto {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    border: 1px solid #e1e5eb;
    border-radius: 5px;
    padding: 12px 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #333;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.requerido {
    color: #dc3545;
}

.btn-enviar {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-enviar:hover {
    background-color: #32CD32;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mensaje-exito {
    display: none;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}

.mensaje-error {
    display: none;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .form-contacto {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}

/* Sección del Mapa */
.contacto-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 200px);
    padding-top: 20px; /* Reducido porque body ya tiene padding-top */
    padding-bottom: 60px;
}

.mapa-container h2,
.contacto-info h2 {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.mapa-container h2:after,
.contacto-info h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-dark), var(--secondary-light));
    border-radius: 2px;
}

.mapa-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--secondary-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mapa-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 100, 0, 0.2);
}

/* Información de Contacto */
.contacto-info {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--secondary-light);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(50, 205, 50, 0.05);
}

.info-item:hover {
    background: rgba(50, 205, 50, 0.1);
    transform: translateX(10px);
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.info-content p {
    color: #555;
    margin-bottom: 2px;
}

/* Botones (si se usan) */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-light));
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    color: white !important;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 100, 0, 0.3);
}

.btn-outline-primary-custom {
    background: transparent;
    border: 2px solid var(--secondary-light);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    color: var(--secondary-dark) !important;
}

.btn-outline-primary-custom:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-light));
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 100, 0, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .contacto-section {
        padding-top: 20px;
    }
    
    .mapa-wrapper {
        height: 350px;
    }
    
    .contacto-info {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .form-contacto {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .icon-wrapper {
        margin: 0 auto;
    }
    
    .info-content {
        text-align: center;
        width: 100%;
    }
    
    .info-content h5,
    .info-content p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .btn-primary-custom,
    .btn-outline-primary-custom {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .btn-primary-custom.me-3 {
        margin-right: 0 !important;
    }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-title {
    color: var(--secondary-light);
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.footer-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-dark), var(--secondary-light));
}

.footer-links a {
    display: block;
    color: #ddd;
    margin-bottom: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-light);
    padding-left: 5px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}
/*
.social-icons a:hover {
    background-color: var(--secondary-light);
    transform: translateY(-5px);
}
*/
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px 0;
    margin-top: 40px;
}

.highlight {
    color: var(--secondary-light);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Botón de WhatsApp flotante */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* Animación de latido */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.6s ease-in-out;
}