/** hero section */
.hero {
    position: relative !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    padding-top: 80px !important;
}

.hero-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

.hero-background img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg,
            rgba(34, 197, 94, 0.4) 0%,
            rgba(22, 163, 74, 0.3) 50%,
            rgba(21, 128, 61, 0.2) 100%) !important;
}

.container {
    position: relative !important;
    z-index: 2 !important;
}

.hero-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4rem !important;
    align-items: center !important;
    min-height: 70vh !important;
}

.hero-text {
    color: white !important;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
    color: white !important;
}

.highlight {
    display: block !important;
    color: #fbbf24 !important;
    font-weight: 900 !important;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem) !important;
    line-height: 1.6 !important;
    margin-bottom: 2.5rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.hero-buttons {
    display: flex !important;
    gap: 1.5rem !important;
    flex-wrap: wrap !important;
}

.hero-video {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.video-container {
    position: relative !important;
    width: 100% !important;
    max-width: 500px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

.video-placeholder {
    position: relative !important;
    width: 100% !important;
    height: 350px !important;
    cursor: pointer !important;
    transition: transform 0.3s ease !important;
}

.video-placeholder:hover {
    transform: scale(1.05) !important;
}

.video-placeholder img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.play-button {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 80px !important;
    height: 80px !important;
    background: rgba(34, 197, 94, 0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
}

.play-button:hover {
    background: rgba(34, 197, 94, 1) !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
}
/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 2rem;
    /* nuevo: espacio interno */
    box-sizing: border-box;
}

.video-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    width: 100%;
    height: auto;
}

.video-modal video {
    width: 100%;
    max-height: 80vh;
    /* nuevo: no desborda verticalmente */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    display: block;
}

.video-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    color: black;
    border: none;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: background 0.3s ease;
}

.video-close:hover {
    background: #eee;
}
/* Responsive tweaks */
@media (max-width: 768px) {
    .video-modal-content {
        max-width: 100vw;
        max-height: 60vh;
    }

    .video-modal video {
        max-height: 60vh;
    }

    .video-close {
        top: 0;
        right: 0;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

/** Species Section */
 .species-section {
     background: linear-gradient(180deg, #f0fdf4 0%, white 50%, #f0fdf4 100%);
     padding: 5rem 0;
 }

 .section-header {
     text-align: center;
     margin-bottom: 4rem;
 }

 .section-header h2 {
     font-size: clamp(2.5rem, 5vw, 3.5rem);
     font-weight: 800;
     color: var(--nature-green);
     margin-bottom: 1.5rem;
     letter-spacing: 2px;
     text-transform: uppercase;
 }

 .section-header p {
     font-size: 1.25rem;
     color: var(--gray-600);
     max-width: 600px;
     margin: 0 auto;
 }

 .species-grid {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     grid-template-rows: repeat(2, 1fr);
     gap: 2rem;
     margin-bottom: 4rem;
     max-width: 1400px;
     margin-left: auto;
     margin-right: auto;
 }

 .species-card {
     position: relative;
     border-radius: 24px;
     overflow: hidden;
     box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1)!important;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1)!important;
     background: white;
     
 }

 .species-card:hover {
     transform: translateY(-12px) scale(1.02);
     box-shadow: 0 25px 60px rgba(34, 197, 94, 0.2);
 }

 .species-image {
     position: relative;
     width: 100%;
     height: 100%;
     overflow: hidden;
 }

 .species-image img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
 }

 .species-card:hover .species-image img {
     transform: scale(1.1);
 }

 .species-overlay {
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: linear-gradient(135deg,
             rgba(34, 197, 94, 0.9) 0%,
             rgba(22, 163, 74, 0.95) 50%,
             rgba(21, 128, 61, 0.9) 100%);
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     text-align: center;
     padding: 2rem;
     opacity: 0;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     transform: translateY(20px);
 }

 .species-card:hover .species-overlay {
     opacity: 1;
     transform: translateY(0);
 }

 .species-overlay h3 {
     color: white;
     font-size: 1.1rem;
     font-weight: 700;
     margin-bottom: 0.75rem;
     line-height: 1.2;
     text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
 }

 .species-overlay p {
     color: rgba(255, 255, 255, 0.9)!important;
     font-size: 0.85rem!important;
     margin-bottom: 1.5rem!important;
     line-height: 1.5!important;
     text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3)!important;
 }

 .species-link {
     display: inline-flex;
     align-items: center;
     gap: 0.75rem;
     padding: 0.75rem 1.5rem;
     background: rgba(255, 255, 255, 0.2);
     color: white!important;
     border: 2px solid rgba(255, 255, 255, 0.3);
     border-radius: 50px;
     text-decoration: none!important;
     font-weight: 600;
     font-size: 0.8rem;
     transition: all 0.3s ease!important;
     backdrop-filter: blur(10px);
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }

 .species-link:hover {
     background: white;
     color: var(--primary);
     border-color: white;
     transform: translateY(-2px);
     box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
 }

 .species-link svg {
     transition: transform 0.3s ease;
 }

 .species-link:hover svg {
     transform: translateX(5px);
 }

 .species-download {
     display: inline-flex;
     align-items: center;
     gap: 0.75rem;
     padding: 0.75rem 1.5rem;
     background: rgba(255, 255, 255, 0.9);
     color: var(--primary);
     border: 2px solid rgba(255, 255, 255, 0.3);
     border-radius: 50px;
     text-decoration: none;
     font-weight: 600;
     font-size: 0.8rem;
     transition: all 0.3s ease;
     backdrop-filter: blur(10px);
     text-transform: uppercase;
     letter-spacing: 0.5px;
     margin-top: 0.75rem;
 }

 .species-download:hover {
     background: white;
     color: var(--primary-dark);
     border-color: white;
     transform: translateY(-2px);
     box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
 }

 .species-download svg {
     transition: transform 0.3s ease;
 }

 .species-download:hover svg {
     transform: translateY(2px);
 }

 .section-cta {
     text-align: center;
     padding: 3rem 2rem;
     background: white;
     border-radius: 24px;
     box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
     border: 1px solid var(--gray-100);
 }

 .section-cta p {
     font-size: 1.25rem;
     color: var(--gray-700);
     margin-bottom: 2rem;
     font-weight: 500;
 }

 /* Responsive Design */
 @media (max-width: 1200px) {
     .species-grid {
         grid-template-columns: repeat(3, 1fr);
         grid-template-rows: auto;
         gap: 1.5rem;
     }
 }

 @media (max-width: 900px) {
     .species-grid {
         grid-template-columns: repeat(2, 1fr);
         grid-template-rows: auto;
     }
 }

 @media (max-width: 768px) {
     .species-section {
         padding: 3rem 0;
     }

     .section-header {
         margin-bottom: 3rem;
     }

     .section-header h2 {
         font-size: 2.5rem;
         letter-spacing: 1px;
     }

     .species-grid {
         grid-template-columns: 1fr;
         grid-template-rows: auto;
         gap: 1.5rem;
     }

     .species-card {
         height: 280px;
     }

     .species-overlay {
         padding: 1.5rem;
     }

     .species-overlay h3 {
         font-size: 1rem;
     }

     .species-overlay p {
         font-size: 0.8rem;
         margin-bottom: 1.5rem;
     }

     .species-link {
         padding: 0.75rem 1.25rem;
         font-size: 0.75rem;
     }

     .section-cta {
         padding: 2rem 1.5rem;
     }

     .section-cta p {
         font-size: 1.125rem;
     }
 }

 @media (max-width: 480px) {
     .species-card {
         height: 250px;
     }

     .species-overlay h3 {
         font-size: 0.9rem;
     }

     .species-overlay p {
         font-size: 0.75rem;
     }
 }
/** Index Section */

/* Services Section */
.about-section {
    background: var(--gray-50);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 2rem;
}

.about-features {
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-content h4 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.feature-content p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.95rem;
}

.about-images {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1rem;
    max-width: 500px;
    width: 100%;
}

.image-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    
}

.image-item.large {
    grid-column: 1 / -1;
    aspect-ratio: 16/9!important;
}

.image-item.wide {
    grid-column: 1 / -1;
    aspect-ratio: 16/9!important;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-item:hover img {
    transform: scale(1.1);
}

/* Quality Section */
.quality-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    min-height: 600px;
}

.quality-image-container {
    display: flex;
    align-items: stretch;
    height: 100%;
    min-height: 600px;
}

.quality-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.quality-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

.quality-text h2 {
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.quality-text p {
    margin-bottom: 2rem;
}

.quality-stats {
    margin-bottom: 2.5rem;
}

.quality-stat {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quality-stat .stat-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quality-stat .stat-content h4 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.quality-stat .stat-content p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.95rem;
}


/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 4rem 0;
}

.stats-grid-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
}

/* Video Section */
.video-section {
    background: white;
}

.video-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.video-text h2 {
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.video-text p {
    margin-bottom: 2rem;
}

.video-player {
    position: relative;
}

.video-thumbnail {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-thumbnail img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(34, 197, 94, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}



/* Blog Section */

.blog-section {
    background: white;
}
/* Keep full width but add comfortable side padding */
.blog-edges {
    /* fluid edge: min 16px, grows with viewport, caps at 64px */
    --edge: clamp(16px, 5vw, 64px);
    padding-left: var(--edge);
    padding-right: var(--edge);
}

/* If you pushed the grid to 100vw with a full-bleed trick, keep this too */
.blog-section .full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    /* prevent horizontal scrollbars */
    overflow-x: clip;
    /* Safari-friendly alternative to hidden */
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr)!important;   /* 👈 ahora 4 columnas */
    gap: 2rem;
}

.blog-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-content {
    padding: 2rem;
}

.blog-content h3 {
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.blog-content p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.blog-content h3,
.blog-content h2 {
    word-wrap: break-word!important; /* soporte viejo */
    overflow-wrap: break-word!important;  /* estándar moderno */
    hyphens: auto!important; /* si el idioma lo permite, agrega guiones */
    display: -webkit-box!important;
    -webkit-line-clamp: 4!important; /* máximo 4 líneas */
    -webkit-box-orient: vertical!important;
    overflow: hidden!important;
    text-overflow: ellipsis!important;
}
.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-date {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.blog-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {

    .about-content,
    .quality-content,
    .video-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }


    .stats-grid-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .stats-grid-main,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        padding: 2rem 1.5rem;
    }

    .image-grid {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 2.5rem;
    }
}