/*!
 *  Valle Iztapopo - Desarrollo Rural Sostenible
 *  Paleta de colores suave y amigable con la vista
 *  Inspirada en la naturaleza, la tierra y la agricultura sostenible
 */

@import url('https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800');

/* VARIABLES DE COLOR - COMBINACIÓN VERDE + LILA TENUE */
:root {
    /* COLORES PRIMARIOS - VERDES NATURALES */
    --verde-primario: #4eae3a;          /* Verde original de la página */
    --verde-secundario: #5ec549;        /* Verde hover original */
    --verde-tierra: #4A9F5E;            /* Verde tierra - para botones y acentos */
    --verde-hoja: #6BBF7B;              /* Verde hoja - más claro */
    --verde-claro: #E8F5E9;             /* Verde muy claro para fondos */
    --verde-oscuro: #2E7D32;            /* Verde oscuro */
    --verde-medio: #4CAF50;             /* Verde medio */
    --verde-palido: #C8E6C9;            /* Verde pálido */
    
    /* COLORES TIERRA - CAFÉS NATURALES */
    --tierra-cafe: #8D6E63;             /* Café tierra medio */
    --tierra-oscura: #5D4037;           /* Café tierra oscuro */
    --tierra-clara: #D7CCC8;            /* Café tierra claro */
    
    /* COLORES COMPLEMENTARIOS - LILA TENUE */
    --lila-tenue: #9C89B8;              /* Lila suave y tenue */
    --lila-claro: #B8A9C9;              /* Lila más claro */
    --lila-suave: #EFE7F6;              /* Lila muy claro para fondos */
    
    /* NEUTROS NATURALES */
    --blanco-crema: #FFFBF7;            /* Blanco cálido crema */
    --gris-natural: #F5F1EB;            /* Gris natural para fondos */
    --gris-calido: #F5F3EF;             /* Gris cálido */
    --gris-medio: #E8E6E1;              /* Gris medio cálido */
    --gris-oscuro: #5D5A54;             /* Gris oscuro cálido */
    
    /* COLORES DE TEXTO */
    --texto-oscuro: #2E4637;            /* Verde oscuro para títulos */
    --texto-medio: #556B5D;             /* Verde grisáceo para textos */
    --texto-claro: #8A9A8F;             /* Verde claro para textos secundarios */
    
    /* COLORES DE ÉNFASIS */
    --acento-dorado: #D4AF37;           /* Dorado suave */
    --acento-naranja: #FF9800;          /* Naranja suave para alertas */
}

body {
    padding-top: 54px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: var(--texto-oscuro);
    background-color: var(--blanco-crema);
    line-height: 1.6;
}

@media (min-width: 992px) {
    body {
        padding-top: 80px;
    }
}

/* Botones suaves y amigables */
a.btn-primary, button.btn-primary {
    background-color: var(--verde-tierra);
    border-color: var(--verde-tierra);
    color: var(--blanco-crema);
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 4px rgba(74, 159, 94, 0.2);
}

a.btn-primary:hover, button.btn-primary:hover {
    background-color: var(--verde-hoja);
    border-color: var(--verde-hoja);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 159, 94, 0.3);
}

a.btn-primary:active, button.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(74, 159, 94, 0.2);
}

a.btn-secondary, button.btn-secondary {
    background-color: var(--tierra-cafe);
    border-color: var(--tierra-cafe);
    color: var(--blanco-crema);
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a.btn-secondary:hover, button.btn-secondary:hover {
    background-color: var(--tierra-oscura);
    border-color: var(--tierra-oscura);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(93, 64, 55, 0.2);
}

/* Navbar suave y natural */
.top-nav {
    background-color: var(--blanco-crema) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--gris-medio);
}

.navbar-brand {
    padding-top: 5px;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    max-height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-expand-lg.top-nav .navbar-nav .nav-link {
    padding: 12px 18px;
    color: var(--tierra-oscura);
    font-size: 15px;
    font-weight: 400;
    margin: 0 4px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-expand-lg.top-nav .navbar-nav .nav-link:hover {
    color: var(--verde-tierra);
    background-color: var(--verde-claro);
}

.navbar-expand-lg.top-nav .navbar-nav .nav-link.active {
    color: var(--verde-tierra);
    font-weight: 500;
    background-color: var(--verde-claro);
}

.navbar-expand-lg.top-nav .navbar-nav .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--verde-tierra);
    border-radius: 3px;
}

.navbar-expand-lg.top-nav .navbar-nav .dropdown-menu {
    margin: 10px 0 0 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gris-medio);
    padding: 12px;
    border-radius: 10px;
    background-color: var(--blanco-crema);
    min-width: 220px;
}

.navbar-expand-lg.top-nav .navbar-nav .dropdown-menu .dropdown-item {
    font-size: 14px;
    padding: 10px 15px;
    font-weight: 400;
    color: var(--texto-oscuro);
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.navbar-expand-lg.top-nav .navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: var(--verde-claro);
    color: var(--verde-tierra);
    padding-left: 20px;
}

.navbar-expand-lg.top-nav .navbar-nav .dropdown-menu .dropdown-item:last-child {
    margin-bottom: 0;
}

.top-nav .navbar-toggler {
    color: var(--tierra-cafe);
    border-color: var(--tierra-clara);
    padding: 6px 10px;
    border-radius: 6px;
}

.top-nav .navbar-toggler:hover {
    color: var(--verde-tierra);
    border-color: var(--verde-tierra);
    background-color: var(--verde-claro);
}

/* Carrusel con overlay natural */
.slider-main .carousel .carousel-inner .carousel-item:before {
    content: "";
    position: absolute;
    background: linear-gradient(45deg, rgba(74, 159, 94, 0.2), rgba(141, 110, 99, 0.1));
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-item {
    height: 85vh;
    min-height: 400px;
    background: no-repeat center center scroll;
    background-size: cover;
}

.carousel-caption {
    z-index: 2;
    background: rgba(255, 251, 247, 0.9);
    padding: 30px;
    border-radius: 15px;
    color: var(--texto-oscuro);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
}

.carousel-caption h3 {
    color: var(--verde-tierra);
    font-weight: 600;
    margin-bottom: 15px;
}

.carousel-caption p {
    color: var(--texto-medio);
    font-size: 16px;
}

/* Tarjetas de servicios - Diseño suave */
.services-bar {
    padding: 60px 0 40px;
}

.services-bar h1 {
    font-weight: 600;
    font-size: 32px;
    color: var(--tierra-oscura);
    margin-bottom: 10px;
    text-align: center;
}

.services-bar > p {
    color: var(--texto-medio);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 16px;
}

.services-bar .card {
    border: 1px solid var(--gris-medio);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: var(--blanco-crema);
    height: 100%;
}

.services-bar .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--verde-tierra);
}

.services-bar .card h4.card-header {
    background: linear-gradient(135deg, var(--verde-tierra), var(--verde-hoja));
    color: var(--blanco-crema);
    font-size: 20px;
    font-weight: 500;
    border-bottom: none;
    padding: 20px;
    text-align: center;
}

.services-bar .card-img {
    height: 200px;
    overflow: hidden;
}

.services-bar .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.services-bar .card:hover .card-img img {
    transform: scale(1.05);
}

.services-bar .card-body {
    padding: 20px;
}

.services-bar .card-text {
    color: var(--texto-oscuro);
    line-height: 1.7;
    margin-bottom: 20px;
}

.services-bar .card-footer {
    background-color: transparent;
    border-top: 1px solid var(--gris-medio);
    padding: 15px 20px;
}

/* Sección Acerca de - Diseño amigable */
.about-main {
    padding: 60px 0;
    background-color: var(--gris-natural);
    position: relative;
    overflow: hidden;
}

.about-main:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="%23E8F5E9" opacity="0.3"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.about-main h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--tierra-oscura);
    position: relative;
    display: inline-block;
}

.about-main h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--verde-tierra), var(--acento-dorado));
    border-radius: 2px;
}

.about-main h5 {
    font-size: 20px;
    color: var(--verde-tierra);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 500;
}

.about-main p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--texto-oscuro);
    margin-bottom: 20px;
}

.about-main ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 25px;
}

.about-main ul li {
    position: relative;
    font-weight: 400;
    line-height: 1.8;
    color: var(--texto-oscuro);
    padding-left: 30px;
    margin-bottom: 10px;
}

.about-main ul li:before {
    content: "🌱";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 18px;
}

.about-main .img-fluid.rounded {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 8px solid var(--blanco-crema);
    transition: transform 0.3s ease;
}

.about-main .img-fluid.rounded:hover {
    transform: scale(1.02);
}

/* Portfolio - Diseño suave */
.portfolio-main {
    padding: 60px 0;
}

.portfolio-main h2 {
    font-weight: 600;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--tierra-oscura);
    text-align: center;
    position: relative;
}

.portfolio-main h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--verde-tierra), var(--acento-dorado));
    border-radius: 2px;
}

.portfolio-main .card {
    border: 1px solid var(--gris-medio);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: var(--blanco-crema);
    height: 100%;
}

.portfolio-main .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--verde-tierra);
}

.portfolio-main .card .card-body {
    padding: 20px;
    background: linear-gradient(135deg, var(--verde-oscuro), var(--verde-tierra));
}

.portfolio-main .card .card-title a {
    font-size: 20px;
    font-weight: 500;
    color: var(--blanco-crema);
    transition: color 0.3s ease;
    text-decoration: none;
}

.portfolio-main .card .card-title a:hover {
    color: var(--acento-dorado);
}

.portfolio-main .card-img {
    overflow: hidden;
    position: relative;
    height: 250px;
}

.portfolio-main .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-main .card:hover .card-img img {
    transform: scale(1.05);
}

.overlay {
    background: linear-gradient(135deg, rgba(74, 159, 94, 0.85), rgba(107, 191, 123, 0.9));
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay i {
    font-size: 40px;
    color: var(--blanco-crema);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.portfolio-main .card:hover .overlay {
    opacity: 1;
}

.portfolio-main .card:hover .overlay i {
    transform: scale(1);
}

/* Footer - Diseño natural */
.footer { 
    width: 100%; 
    background: linear-gradient(135deg, var(--verde-oscuro), var(--verde-tierra));
    min-height: 250px; 
    padding: 50px 0 30px;
    color: var(--blanco-crema);
    position: relative;
    overflow: hidden;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,100 L100,0 L100,100 Z" fill="%234A9F5E" opacity="0.1"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.pt2 { 
    padding-top: 0;
    margin-bottom: 25px;
    color: var(--blanco-crema);
    font-weight: 600;
    font-size: 20px;
    position: relative;
    display: inline-block;
}

.pt2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--verde-hoja);
    border-radius: 2px;
}

footer p { 
    font-size: 15px; 
    color: rgba(255, 251, 247, 0.8); 
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer_ul_amrc { 
    margin: 0; 
    list-style-type: none; 
    font-size: 15px; 
    padding: 0; 
}

.footer_ul_amrc li {
    padding: 5px 0;
}

.footer_ul_amrc li a { 
    color: rgba(255, 251, 247, 0.8);
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.footer_ul_amrc li a:hover { 
    color: var(--verde-hoja);
    transform: translateX(5px);
}

.bottom_border { 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    padding: 20px 0;
    text-align: center;
}

.footer-logo img {
    max-height: 50px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

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

.copyright {
    color: rgba(255, 251, 247, 0.6);
    font-size: 14px;
    text-align: center;
    margin-top: 20px;
}

.copyright a {
    color: var(--verde-hoja);
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: var(--acento-dorado);
    text-decoration: underline;
}

.social_footer_ul { 
    display: flex;
    justify-content: center;
    margin: 25px auto 0;
    list-style-type: none;
    padding: 0;	
    gap: 15px;
}

.social_footer_ul li { 
    display: inline-block;
}

.social_footer_ul li a { 
    color: var(--verde-oscuro);
    background-color: rgba(255, 251, 247, 0.9);
    border: none;
    padding: 12px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
}

.social_footer_ul li a:hover {
    background-color: var(--verde-hoja);
    color: var(--blanco-crema);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 8px 15px rgba(74, 159, 94, 0.3);
}

/* ---- All Pages CSS - Diseño amigable ---- */

.full-title {
    padding: 100px 0;
    background: no-repeat center center;
    background-size: cover;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.full-title:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.full-title.personales {
    background-image: url(../images/agricul.png);
}

.full-title.linea {
    background-image: url(../images/linea.jpg);
}

.full-title h1 {
    position: relative;
    color: var(--blanco-crema);
    font-size: 42px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 10px;
}

.full-title h1 small {
    display: block;
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
    margin-top: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Breadcrumb mejorado */
.breadcrumb-main {
    padding: 20px 0;
}

.breadcrumb-main .breadcrumb {
    background-color: var(--verde-claro);
    border-radius: 10px;
    padding: 15px 20px;
    border: 1px solid var(--gris-medio);
    margin-bottom: 0;
}

.breadcrumb-main .breadcrumb-item {
    font-size: 15px;
}

.breadcrumb-main .breadcrumb-item a {
    color: var(--verde-tierra);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-main .breadcrumb-item a:hover {
    color: var(--tierra-oscura);
    text-decoration: underline;
}

.breadcrumb-main .breadcrumb-item.active {
    color: var(--texto-medio);
}

.breadcrumb-main .breadcrumb-item + .breadcrumb-item::before {
    color: var(--texto-claro);
    content: "›";
    font-size: 18px;
    padding: 0 10px;
}

/* Team Members - Diseño amigable */
.team-members-box {
    padding: 60px 0 40px;
}

.team-members-box h2 {
    font-weight: 600;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--tierra-oscura);
    text-align: center;
    position: relative;
}

.team-members-box h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--verde-tierra), var(--acento-dorado));
    border-radius: 2px;
}

.team-members-box .card {
    border: 1px solid var(--gris-medio);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: var(--blanco-crema);
}

.team-members-box .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--verde-tierra);
}

.team-members-box .card .card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--gris-medio);
    padding: 20px;
    font-size: 22px;
    font-weight: 600;
    color: var(--verde-tierra);
    text-align: center;
}

.team-members-box .card-img {
    padding: 20px;
    text-align: center;
}

.team-members-box .card-img img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--verde-claro);
    transition: all 0.3s ease;
}

.team-members-box .card:hover .card-img img {
    transform: scale(1.05);
    border-color: var(--verde-tierra);
}

.team-members-box .card-body {
    padding: 20px;
}

.team-members-box .card-text {
    color: var(--texto-oscuro);
    line-height: 1.7;
    text-align: center;
    font-size: 15px;
}

.team-members-box .card-footer {
    background: linear-gradient(135deg, var(--verde-tierra), var(--verde-hoja));
    padding: 15px;
    text-align: center;
}

.team-members-box .card-footer a.btn-primary {
    background-color: transparent;
    border-color: var(--blanco-crema);
    color: var(--blanco-crema);
}

.team-members-box .card-footer a.btn-primary:hover {
    background-color: var(--blanco-crema);
    color: var(--verde-tierra);
}

/* Customers box - Diseño suave */
.customers-box {
    padding: 60px 0;
    background-color: var(--gris-natural);
    border-radius: 15px;
    margin: 40px 0;
}

.customers-box h2 {
    font-weight: 600;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--tierra-oscura);
    text-align: center;
    position: relative;
}

.customers-box h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--verde-tierra), var(--acento-dorado));
    border-radius: 2px;
}

.customers-box .img-fluid {
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 3px solid var(--blanco-crema);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.customers-box .img-fluid:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--verde-tierra);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-item {
        height: 60vh;
        min-height: 300px;
    }
    
    .carousel-caption {
        padding: 20px;
        margin: 0 15px;
    }
    
    .carousel-caption h3 {
        font-size: 24px;
    }
    
    .services-bar h1,
    .portfolio-main h2,
    .team-members-box h2,
    .customers-box h2 {
        font-size: 28px;
    }
    
    .about-main h2 {
        font-size: 28px;
    }
    
    .full-title h1 {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    .carousel-item {
        height: 50vh;
        min-height: 250px;
    }
    
    .services-bar h1,
    .portfolio-main h2,
    .team-members-box h2,
    .customers-box h2 {
        font-size: 24px;
    }
    
    .full-title h1 {
        font-size: 28px;
    }
    
    .navbar-expand-lg.top-nav .navbar-nav .nav-link {
        padding: 10px 15px;
        margin: 2px 0;
    }
    
    .social_footer_ul {
        gap: 10px;
    }
    
    .social_footer_ul li a {
        width: 42px;
        height: 42px;
        padding: 10px;
    }
}