/* =========================================
   CONTACTO - AGRODISER
========================================= */


/* =========================================
   HERO CONTACTO
========================================= */

.contacto-hero {

    position: relative;

    min-height: 75vh;

    display: flex;

    align-items: center;

    background-image: url("../../assets/img/empresa/generales/agrodiser6.jpg");

    background-size: cover;

    background-position: 75% 25%;

    overflow: hidden;

}


.hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(90deg,
            rgba(0, 60, 35, .88) 0%,
            rgba(0, 60, 35, .75) 35%,
            rgba(0, 60, 35, .25) 65%,
            rgba(0, 60, 35, .1) 100%);

}


.hero-content {

    position: relative;

    z-index: 2;

    max-width: 700px;

    color: white;

}


.hero-content h1 {

    font-family: "Baloo 2", sans-serif;

    font-size: clamp(3rem, 6vw, 4.8rem);

    font-weight: 800;

    margin: 20px 0;

}


.hero-content p {

    font-size: 1.15rem;

    line-height: 1.8;

    max-width: 600px;

    margin-bottom: 35px;

}



.btn-contacto-principal {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 14px 30px;

    border-radius: 50px;

    background: white;

    color: var(--primary-color);

    text-decoration: none;

    font-weight: 600;

    transition: .3s;

}


.btn-contacto-principal:hover {

    transform: translateY(-4px);

}


/* =========================================
   CONTENEDOR CONTACTO
========================================= */


.contacto-grid {

    display: grid;

    grid-template-columns: .9fr 1.1fr;

    gap: 60px;

    align-items: start;

}



/* =========================================
   INFORMACION
========================================= */


.contacto-info h2,
.contacto-formulario h2 {

    font-family: "Baloo 2", sans-serif;

    font-size: 2.2rem;

    font-weight: 700;

    margin-bottom: 20px;

}



.contacto-info>p {

    color: #666;

    margin-bottom: 35px;

    line-height: 1.7;

}



.info-card {

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 22px;

    margin-bottom: 20px;

    background: white;

    border-radius: 18px;

    border-left: 4px solid var(--accent-green, #3c8d2f);

    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);

    transition: .35s;

}



.info-card:hover {

    transform: translateY(-8px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, .15);

}



.info-card i {

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    font-size: 25px;

    color: white;

    background: var(--accent-green, #3c8d2f);

    transition: .3s ease;

}

/* Rotación de color: verde / dorado / turquesa / tierra */

.info-card:nth-child(4n+2) {
    border-left-color: var(--accent-gold, #F9A825);
}

.info-card:nth-child(4n+2) i {
    background: var(--accent-gold, #F9A825);
}

.info-card:nth-child(4n+3) {
    border-left-color: var(--accent-teal, #0f8b8d);
}

.info-card:nth-child(4n+3) i {
    background: var(--accent-teal, #0f8b8d);
}

.info-card:nth-child(4n+4) {
    border-left-color: var(--accent-earth, #8a5a2f);
}

.info-card:nth-child(4n+4) i {
    background: var(--accent-earth, #8a5a2f);
}



.info-card h4 {

    font-size: 1rem;

    margin: 0 0 5px;

    font-weight: 700;

}



.info-card p {

    margin: 0;

    color: #666;

}



/* =========================================
   FORMULARIO
========================================= */


.contacto-formulario {

    padding: 45px;

    background: linear-gradient(165deg, #ffffff 0%, #eef7ea 100%);

    border-radius: 25px;

    border-top: 5px solid var(--accent-green, #3c8d2f);

    box-shadow: 0 20px 50px rgba(46, 125, 50, .12);

    position: relative;

    overflow: hidden;

}

.contacto-formulario::before {

    content: "";

    position: absolute;

    width: 220px;

    height: 220px;

    background: radial-gradient(circle, rgba(249, 168, 37, .14) 0%, transparent 70%);

    border-radius: 50%;

    top: -90px;

    right: -90px;

    pointer-events: none;

}



.contacto-formulario .form-floating {

    margin-bottom: 20px;

    position: relative;

    z-index: 1;

}



.contacto-formulario .form-control {

    height: 58px;

    border-radius: 14px;

    border: 1.5px solid #d5e8d0;

    background: #fff;

    padding-left: 20px;

    transition: .25s ease;

}



.contacto-formulario textarea.form-control {

    height: 170px;

}



.contacto-formulario .form-control:focus {

    border-color: var(--accent-green, #3c8d2f);

    box-shadow: 0 0 0 .2rem rgba(60, 141, 47, .18);

}



.contacto-formulario label {

    padding-left: 20px;

}



.btn-enviar {

    width: 100%;

    padding: 16px;

    border: none;

    border-radius: 50px;

    background: linear-gradient(120deg, var(--accent-green, #3c8d2f) 0%, var(--accent-green-dark, #2a6a22) 100%);

    color: white;

    font-size: 1rem;

    font-weight: 600;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    position: relative;

    z-index: 1;

    box-shadow: 0 10px 25px rgba(60, 141, 47, .35);

    transition: .3s;

}



.btn-enviar:hover {

    transform: translateY(-4px);

    box-shadow: 0 16px 32px rgba(60, 141, 47, .45);

    filter: brightness(1.06);

}

/* Nota que reemplaza al botón: el formulario se envía solo al completarse */

.form-auto-nota {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 6px;

    padding: 14px 18px;

    border-radius: 14px;

    background: rgba(60, 141, 47, .08);

    border: 1px dashed rgba(60, 141, 47, .35);

    color: var(--accent-green-dark, #2a6a22);

    font-size: .9rem;

    font-weight: 500;

    text-align: center;

    justify-content: center;

    transition: .3s;

}

.form-auto-nota.enviando {

    background: rgba(60, 141, 47, .14);

}

.form-auto-nota.enviado {

    background: rgba(60, 141, 47, .18);

    border-style: solid;

    color: var(--accent-green-dark, #2a6a22);

}






/* =========================================
   CTA WHATSAPP
========================================= */


.contacto-cta {

    padding: 80px 20px;

    text-align: center;

    background:

        linear-gradient(135deg,
            var(--primary-color),
            #0b8f45);

    color: white;

}



.contacto-cta h2 {

    font-family: "Baloo 2", sans-serif;

    font-size: 2.5rem;

    font-weight: 800;

}



.contacto-cta p {

    max-width: 650px;

    margin: 20px auto 35px;

    font-size: 1.1rem;

}



.btn-whatsapp {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    padding: 15px 35px;

    background: white;

    color: #159447;

    border-radius: 50px;

    font-weight: 700;

    text-decoration: none;

    transition: .3s;

}



.btn-whatsapp:hover {

    transform: translateY(-5px);

}



/* =========================================
   TOAST
========================================= */


.toast {

    border-radius: 15px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);

}


/* =========================================
   UN VISTAZO A AGRODISER (reemplaza al mapa)
   Franja de fotos: al pasar el mouse la foto
   se expande y aparece su etiqueta.
========================================= */

.vistazo {
    width: 100%;
    padding: 60px 0;
}

.vistazo-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.vistazo-head h2 {
    margin: 6px 0 0;
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--dark, #1F2937);
}

.vistazo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    border: 2px solid rgba(60, 141, 47, .35);
    color: var(--accent-green-dark, #2a6a22);
    font-weight: 600;
    text-decoration: none;
    transition: .3s ease;
}

.vistazo-link:hover {
    background: var(--accent-green, #3c8d2f);
    border-color: var(--accent-green, #3c8d2f);
    color: #fff;
    transform: translateY(-2px);
}

.vistazo-strip {
    display: flex;
    gap: 14px;
    height: 400px;
}

.vistazo-item {
    position: relative;
    flex: 1 1 0;
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #dfeadb;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .10);
    transition: flex-grow .6s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease;
}

.vistazo-item:hover {
    flex-grow: 2.6;
    box-shadow: 0 20px 44px rgba(31, 92, 36, .25);
}

.vistazo-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

.vistazo-item:hover img {
    transform: scale(1.06);
}

.vistazo-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 60px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #fff;
    background: linear-gradient(to top, rgba(8, 28, 12, .82), rgba(8, 28, 12, 0));
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s ease, transform .4s ease;
}

.vistazo-item figcaption strong {
    font-family: var(--font-title);
    font-size: 1.25rem;
    white-space: nowrap;
}

.vistazo-item figcaption span {
    font-size: .9rem;
    opacity: .85;
    white-space: nowrap;
}

.vistazo-item:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {

    .vistazo {
        padding: 40px 0;
    }

    .vistazo-strip {
        flex-direction: column;
        height: auto;
    }

    .vistazo-item,
    .vistazo-item:hover {
        flex: none;
        height: 190px;
    }

    .vistazo-item figcaption {
        opacity: 1;
        transform: none;
        padding: 40px 18px 14px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .vistazo-item,
    .vistazo-item img,
    .visit-photo img {
        transition: none;
    }

}
