:root {
    --brand-primary: #0e5b38;
    --brand-yellow: #f8c12c;
    --brand-light-green: #e6f2ec;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Utilidades */
.text-brand-primary { color: var(--brand-primary) !important; }
.text-brand-yellow { color: var(--brand-yellow) !important; }
.bg-brand-primary { background-color: var(--brand-primary) !important; }
.bg-brand-yellow { background-color: var(--brand-yellow) !important; }
.bg-brand-light-green { background-color: var(--brand-light-green) !important; }
.border-brand-primary { border-color: var(--brand-primary) !important; }
.border-brand-yellow { border-color: var(--brand-yellow) !important; }

.btn-brand-primary {
    background-color: var(--brand-primary);
    color: white;
    border: none;
    transition: 0.3s;
}
.btn-brand-primary:hover {
    background-color: #0b472c;
    color: white;
}

.btn-outline-brand-primary {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    background: transparent;
    transition: 0.3s;
}
.btn-outline-brand-primary:hover {
    background-color: var(--brand-primary);
    color: white;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Navbar */
.brand-logo {
    height: 55px;
    transition: 0.3s;
}

#main-navbar {
    transition: all 0.3s ease;
}

#main-navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}
#main-navbar.scrolled .brand-logo {
    height: 45px;
}
.nav-link {
    color: #444 !important;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
}
.nav-link:hover, .nav-link.active {
    color: var(--brand-primary) !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--brand-yellow);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--brand-primary);
    overflow: hidden;
}
.hero-background-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}
.hero-background-container video, 
.hero-background-container .carousel, 
.hero-background-container .carousel-inner, 
.hero-background-container .carousel-item {
    width: 100%;
    height: 100%;
}
.hero-background-container video {
    object-fit: cover;
}
.hero-background-container .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(14, 91, 56, 0.9) 0%, rgb(14 91 56 / 12%) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

/* Sección Nosotros */
.icon-box {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background-color: var(--brand-light-green);
    color: var(--brand-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Directorio Cards */
.dir-card {
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.05);
}
.dir-header {
    background: linear-gradient(135deg, var(--brand-primary), #116e43);
    border-radius: 15px 15px 0 0;
}
.dir-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    background-color: white;
}

/* Operaciones Cards */
.op-card {
    transition: 0.3s;
}
.op-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

/* Footer */
footer a:hover {
    color: var(--brand-yellow) !important;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@media (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
}

/* Ocultar barra superior y tooltips de Google Translate */
iframe.goog-te-banner-frame, 
.goog-te-banner-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe,
#goog-gt-tt {
    display: none !important;
    visibility: hidden !important;
}
body {
    top: 0px !important;
    position: static !important;
}
.goog-tooltip {
    display: none !important;
}
.goog-tooltip:hover {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    border: none !important; 
    box-shadow: none !important;
}

/* Fix para el problema de encogimiento/salto de fondo con modales en móviles */
@media (max-width: 991px) {
    body.modal-open {
        padding-right: 0 !important;
    }
    .modal-open .sticky-top {
        padding-right: 0 !important;
    }
}
