/* ==========================================================
   CONTACT.CSS  – Estilos exclusivos de contacto.php
   ========================================================== */

.section-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    overflow: hidden;
    width: 100%;
}
.card-header,
.section-content {
    padding-left: 2rem;
    padding-right: 2rem;
}
.section-card h2 {
    border-bottom: 3px solid var(--theme-color, var(--accent-orange));
    padding-bottom: .4rem;
    margin-bottom: 1.2rem;
    display: inline-block;
}

/* Grid de contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    max-width: 1200px;
    margin: 1.5rem auto;
    text-align: left;
}

.contact-box {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    transition: transform .3s ease, box-shadow .3s ease;
}
.contact-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.contact-box h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Formulario */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: .4rem;
    color: var(--text-dark);
    font-size: .95rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: .85rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(100,178,50,0.20);
}

/* Honeypot antispam */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    visibility: hidden;
}

.btn-submit {
    background: var(--accent-green);
    color: #fff;
    border: none;
    padding: .95rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: background .3s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-submit:hover {
    background: #4e9024;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}
.btn-submit:disabled { opacity: .6; cursor: wait; }

/* Info */
.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.info-item > i {
    font-size: 1.35rem;
    color: var(--accent-orange);
    background: rgba(229,75,36,0.10);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.info-item-text strong {
    display: block;
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 3px;
}
.info-item-text p { color: #64748b; font-size: .95rem; margin: 0; }

.map-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.map-link:hover { color: #c43b19; text-decoration: underline; }

/* Google Maps embed */
.map-embed-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}
.map-embed {
    position: relative;
    padding-bottom: 45%;
    height: 0;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.map-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* Galería inferior */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    padding: 1.5rem 0;
    max-width: 1200px;
    margin: 0 auto;
}
.card-frame {
    border-radius: 24px;
    padding: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    transition: transform .3s ease, box-shadow .3s ease;
}
.card-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.card-frame.has-border { border: 3px solid var(--theme-color, #E54B24); }
.card-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    position: relative;
}
.card-frame-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease-in-out;
    animation: kenburns-zoom 12s infinite alternate ease-in-out;
}
.card-frame:hover .card-frame-img {
    transform: scale(1.15) !important;
    animation-play-state: paused;
}
@keyframes kenburns-zoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.12); }
}

@media (max-width: 850px) {
    .contact-grid  { grid-template-columns: 1fr; }
    .image-gallery { grid-template-columns: 1fr; }
    .map-embed-wrapper { padding: 0 1rem; }
    .map-embed { padding-bottom: 65%; }
}
