/* Open Sans — local (latin subset, weights 300–700) */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/open-sans-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/open-sans-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/open-sans-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/open-sans-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/open-sans-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --brand-green: #5da62d;
    --brand-green-light: #7bc248;
    --white: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --link-color: var(--brand-green);
    --link-hover-color: #4c8a25;
    --footer-bg-dark-gray: #2c2c2c;
    --footer-text: var(--white);
    --footer-link: var(--brand-green-light);
    --footer-link-hover: var(--white);
    --menu-border-color: #d1d1d1;
    --light-gray: #d3d3d3;
    --navbar-border-color: #e0e0e0;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 15px;
    color: var(--text-primary);
    background-color: #ffffff;
}

strong, b {
    font-weight: 600;
    color: var(--text-primary);
}

em, i {
    font-weight: 300;
    font-style: italic;
    color: var(--text-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    color: var(--text-primary);
}

h1 { font-size: 48px; }
h2 { font-size: 40px; }
h3 { font-size: 32px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 16px; }

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

a:hover {
    color: var(--link-hover-color);
}

header .social-icons a,
header .social-icons a i {
    color: var(--brand-green) !important;
    margin-left: 10px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

header .social-icons a:hover,
header .social-icons a:hover i {
    color: var(--link-hover-color) !important;
}

header .social-icons a:not(:hover),
header .social-icons a:not(:hover) i {
    color: var(--brand-green) !important;
}

.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--navbar-border-color);
    padding: 0.5rem 1rem;
    box-shadow: none;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    color: var(--text-primary);
    font-weight: 400;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--brand-green);
}

/* Dropdown styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: var(--text-primary);
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
}

.dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: var(--text-primary);
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    color: var(--brand-green);
    text-decoration: none;
    background-color: #f8f9fa;
}

/* Show dropdown on hover — solo en desktop */
@media (min-width: 992px) {
    .navbar-nav .nav-item:hover > .dropdown-menu {
        display: block;
    }
}

.btn-primary {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--white);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--link-hover-color);
    border-color: var(--link-hover-color);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-text {
    flex-grow: 1;
}

.card .btn {
    align-self: flex-start;
    margin-top: auto;
}

footer {
    background-color: var(--footer-bg-dark-gray);
    color: var(--footer-text);
    padding: 2rem 0;
}

footer h5 {
    color: var(--white);
    font-weight: 500;
}

footer p {
    color: var(--footer-text);
}

footer a {
    color: var(--footer-link);
    font-weight: 400;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--footer-link-hover);
    text-decoration: underline;
}

footer .social-icons a {
    color: var(--footer-link);
    margin-left: 10px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

footer .social-icons a:hover {
    color: var(--light-gray);
}

footer .social-icons a:hover i {
    color: var(--light-gray);
}

footer .text-muted {
    color: #b0b0b0 !important;
}

@media (max-width: 767px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    h3 { font-size: 24px; }
    h4 { font-size: 20px; }
    h5 { font-size: 18px; }
    h6 { font-size: 16px; }
}

/* Hero Section Styles */
.hero-container {
    background-color: #f8f9fa;
    border-bottom: 3px solid var(--brand-green);
    padding: 6rem 0;
}

.hero-container h1.hero-title {
    font-size: 2.5rem;
    color: var(--brand-green);
    margin-bottom: 1rem;
}

.hero-container .hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
}

@media (max-width: 768px) {
    .hero-container {
        padding: 4rem 0;
    }

    .hero-container h1.hero-title {
        font-size: 2rem;
    }

    .hero-container .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Welcome Section */
.welcome-section {
    position: relative;
    padding: 4rem 0;
    min-height: 300px;
    z-index: 1;
}

.welcome-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/panorama-centroamerica.png');
    background-size: clamp(300px, 40vw, 600px) auto;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

/* Ensure text is readable */
.welcome-section h2,
.welcome-section p {
    position: relative;
    z-index: 2;
    color: var(--text-primary);
}

/* Services Section Styles */
.services-section {
    background-color: #f5f5f5;
    padding: 4rem 0;
}

.services-section .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
    text-align: center;
}

.services-section .card-title {
    font-weight: 400;
    margin-bottom: 1rem;
}

.services-section .card-text {
    flex-grow: 1;
}

.services-section .far {
    color: var(--brand-green);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.services-section .button-wrapper {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

.btn-brand {
    background-color: var(--brand-green);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn-brand:hover {
    background-color: var(--brand-green-light);
    color: white;
}

.impact-list {
    text-align: left;
    display: inline-block;
    margin: 0 auto;
}

.brand-green-icon {
    color: var(--brand-green);
}

.text-justify {
    text-align: left;
}

.text-aligned {
    text-align: justify;
}

/* Back to Top Button */
#btn-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--brand-green);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#btn-top.visible {
    opacity: 1;
    visibility: visible;
}

#btn-top:hover {
    background-color: var(--link-hover-color);
}

/* ── Contact Form ── */
#contact-form .form-control {
    border-color: var(--light-gray);
    font-size: 14px;
    font-weight: 300;
}

#contact-form .form-control:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 0.2rem rgba(93, 166, 45, 0.2);
}

#contact-form .form-label {
    font-weight: 400;
    font-size: 14px;
    margin-bottom: 0.3rem;
}

.btn.btn-contact-submit {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--white);
    font-weight: 400;
    padding: 0.55rem 1.5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn.btn-contact-submit:hover,
.btn.btn-contact-submit:focus {
    background-color: #4c8a25;
    border-color: #4c8a25;
    color: var(--white);
}

.btn.btn-contact-submit:disabled {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--white);
    opacity: 0.75;
}

.btn.btn-contact-submit i {
    color: inherit;
}

.alert-contact-success,
.alert-contact-error {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 0.375rem;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 1.25rem;
}

.alert-contact-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-contact-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
