* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; 
}

html, body{
    margin: 0;
    overflow-x: hidden;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#f4f6f9;
}

.section-title {
    position: relative;
    display: block;  
    text-align: left; 
    font-weight: 600;
    margin-bottom: 40px;
    padding-top: 15px;
}

.section-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #38dae2; 
    border-radius: 4px;
}

.container{
    width: 95%;
    margin:10px auto;
    padding:10px;
}

.hero-slider {
    width: 100%;
    height: 350px;
    background: #0f172a;
    overflow: hidden;
    position: relative;
}

.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.65), rgba(0,0,0,0.3));
    z-index: 1;
}

.tittle-slider {
    height: 500px;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #0f172a;
    color: white;
    border: none;
    font-size: 25px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
    background: #0f172a;
}

.hero-slider {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.3)
    );
    z-index: 1;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%; 
    transition: transform 0.6s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero-content h1 {
    font-size: clamp(20px, 6vw, 28px);
    font-weight: 700;
    width: 100%;
    margin: 0;
    text-align: left;
}

.hero-content p {
    margin: 10px 0 15px;
    font-size: 16px;
    opacity: 0.9;
}

.hero-btn {
    background:transparent;
    color: white;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid #ffffff;   /* 👈 borde blanco completo */
    font-weight: 600;
    transition: 0.3s ease;
}

.hero-btn:hover {
     background: #ffffff;         /* efecto invertido elegante */
    color: #0f172a;              /* color oscuro del hero */
}


.map-container {
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
}

.info-details p {
    margin: 8px 0;
    font-size: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: 0.3s;
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 0 2px #0f172a;
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-row .value,
.contact-row .emails {
    flex: 1;
}

.contact-row .emails {
    display: flex;
    flex-direction: column;
}

.contact-row .emails a {
    color: #007BFF;
    text-decoration: none;
}

.contact-row .emails a:hover {
    text-decoration: underline;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    align-items: stretch;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
    padding: 30px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

.contact-form {
    flex: 1;
    padding: 30px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

.contact-info h2,
.contact-form h2 {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 2px solid #007BFF;
    display: inline-block;
    padding-bottom: 5px;
}

.map-container iframe {
    border-radius: 4px;
    box-shadow: 0 6px 15px #0f172a;
}

.contact-row .label {
    width: 100%;
    font-weight: 600;
    color: #333;
    min-width: 110px; 
    flex-shrink: 0;
}

.contact-row .value,
.contact-row .emails {
    flex: 1;
    color: #555;
}

.contact-row .emails {
    display: flex;
    flex-direction: column;
}

.contact-row .emails a {
    color: #007BFF;
    text-decoration: none;
    transition: 0.2s ease;
}

.contact-row .emails a:hover {
    text-decoration: underline;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: #fff;
    border-color: #007BFF;
    box-shadow: 0 0 0 3px #0f172a;
    outline: none;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

#btnEnviar {
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#btnEnviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px #0f172a;
}

#btnEnviar:active {
    transform: translateY(0);
}

.company-stats {
    background-color: #0f172a; 
    margin-top: 40px;
    padding: 10px 0;
    text-align: center;
    color:white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    color:white;
}

.stat-item img {
    margin-top: 10px;
    width: 50%;
    height: 50%;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.stat-item h3 {
    color: white;
    font-size: clamp(24px, 5vw, 48px);
    margin-bottom: 5px;
}

.stat-item p {
     color: white;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}

.block-section {
    padding: 40px 20px;
    background-color: #f5f7f9;
}

.block-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
    flex-direction: row;
}

.block-container2 {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    flex-direction: row;
}

.block-left {
    position: relative;
    background-color: #162d44; 
    color: #fff;
    padding: 40px 60px;
    overflow: hidden;
    border-radius: 4px;
    text-align: justify;
}

.block-left2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    height: 380px;   

}

.block-left::before,
.block-left::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    background: #f5f7f9; 
    border-radius: 50%;
}

.block-left::before {
    top: -40px;
    left: -40px;
}

.block-left::after {
    bottom: -40px;
    right: -40px;
}

.block-left h2 {
    letter-spacing: 4px;
    margin-bottom: 25px;
}


.block-left p {
    line-height: 1.8;
    font-size: 15px;
}

.block-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    height: 380px;   
}

.block-right2 {
    position: relative;
    background-color: #162d44; 
    color: #fff;
    padding: 40px 60px;
    overflow: hidden;
    border-radius: 4px;
    text-align: justify;
}

.block-right2::before,
.block-right2::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    background: #f5f7f9; 
    border-radius: 50%;
}

.block-right2::before {
    top: -40px;
    left: -40px;
}

.block-right2::after {
    bottom: -40px;
    right: -40px;
}

.block-right2 h2 {
    letter-spacing: 4px;
    margin-bottom: 25px;
}

.block-right2 p {
    line-height: 1.8;
    font-size: 15px;
}

.block-image img {
    width: 100%;
    border-radius: 4px;
    display: block;
}

.block-images-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.block-img {
    position: absolute;
    width: 55%;           
    height: auto;
    max-height: 250px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: transform 0.4s ease, 
}

.block-img:hover {
    transform: scale(1.15);   
    z-index: 5;               
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

.block-img-top {
    top: 20px;
    right: 0;
    z-index: 2;
}

.block-img-bottom {
     bottom: 0;
    left: 60px;   
    z-index: 1;
}

.corner {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #f5f7f9;
    border-radius: 50%;
}

.corner-top-right {
    top: -40px;
    right: -40px;
}

.corner-bottom-left {
    bottom: -40px;
    left: -40px;
}

.block-section-process {
    padding: 10px 20px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.process-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1.5;   
}

.process-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    z-index: 1;
}

.process-item h3 {
    background: rgba(0, 0, 0, 0.2); 
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    
    padding: 10px 28px;
    border: 2px solid white;
    color: white;
    
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;

    border-radius: 4px;
    cursor: pointer;
    backdrop-filter: blur(4px);

    transition: all 0.3s ease;
}

.process-item:hover img {
    transform: scale(1.1);
}

.process-item h3:hover {
    background: #ffffff;
    color: #162d44;
}

.products-grid {
    display: grid;
    gap: 30px;
    padding: 50px 0;
    grid-template-columns: repeat(2, 1fr);
}

.product-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(56, 218, 226, 0.25);
}

.product-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #f2f2f2;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.35),
        transparent
    );
    pointer-events: none;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #777;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    background: #0f172a;
    color: #ffffff;
    border-top: 4px solid #38dae2; 
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

.scientific-name {
    font-size: 13px;
    font-style: italic;
    color: #cbd5e1;
    margin-bottom: auto;
}

.product-btn {
    margin-top: 15px;
    align-self: flex-start;
    padding: 8px 18px;

    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);

    border-radius: 4px;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

.product-detail-container {
    padding: 60px 20px;
}

.product-detail-grid {
    display: grid;
    height: min-content;
    grid-template-columns: 1fr 1fr; /* Dos columnas en PC */
    gap: 50px;
    align-items: center;
}

.product-detail-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-detail-image img:hover {
    transform: scale(1.02);
}

.scientific-name {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.specs p {
    background: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #007bff; /* Color de tu marca */
    margin-bottom: 10px;
    border-radius: 0 8px 8px 0;
}

.btn-action-detail {
    background: #ffffff;
    color: #007BFF !important;
    padding: 12px 28px;
    border: 2px solid #007BFF;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-action-detail:hover {
    background: #007BFF;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

.btn-action-detail:active {
    transform: translateY(0);
}

.detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}


@media (min-width: 1200px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
}

@media(max-width: 992px){
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-info, .contact-form { width: 100%; }
    .block-left { padding: 40px; }
    .block-container { grid-template-columns: 0.9fr 1.1fr; }
    .block-container2 { grid-template-columns: 1.1fr 0.9fr; }
    .contact-info, .contact-form { width: 50%; }
    .contact-wrapper { flex-direction: column; }
    .contact-info, .contact-form { width: 100%; }
}

@media(max-width: 768px){
    .contact-wrapper { flex-direction: column; }
    .block-right, .block-left2 { height: 380px; }
    .hero-slider { height: 500px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail-grid { grid-template-columns: 1fr; }
    .block-left2 { order: 2; }
    .block-right2 { order: 1; }

    .block-images-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        height: auto; /* quitar altura fija */
        overflow: hidden;
    }

    .block-img {
        position: relative;     /* 👈 quitar absolute */
        width: 70%;             /* 👈 ocupar 90% */
        max-height: none;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
    }

    .block-img:hover {
        transform: none; /* opcional: quitar zoom en móvil */
    }
}

@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item h3 { font-size: 36px; }
    .block-container, .block-container2 { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr !important; }
    .products-grid { grid-template-columns: repeat(1, 1fr); }
}

@media (min-width: 480px) {
    .contact-row .label { width: 130px; }
}
