/* ===============================================
   Contacto - Estilos Casa Morêt
   =============================================== */

.contact-header {
    margin-top: 70px;
    position: relative;
    height: 500px;
    overflow: hidden;
}

.contact-header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.85);
}

.contact-header-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 61, 47, 0.88) 0%, rgba(196, 107, 59, 0.75) 100%);
}

.contact-header-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-header .page-title {
    color: var(--beige-claro);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.contact-header .page-subtitle {
    color: var(--dorado);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 500;
    text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.4);
    margin-top: 1rem;
}

.contact-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, #FAFAF8 0%, var(--beige-claro) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    padding-right: var(--spacing-md);
}

.contact-info .section-title {
    color: var(--verde-profundo);
    margin-bottom: 1.5rem;
    position: relative;
}

.contact-info .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--terracota), var(--dorado));
    border-radius: 2px;
}

.contact-info > p {
    color: var(--gris-oscuro);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--blanco);
    border-radius: 12px;
    border: 1px solid rgba(30, 61, 47, 0.08);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 61, 47, 0.05);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 61, 47, 0.12);
    border-color: var(--dorado);
}

.contact-icon {
    font-size: 2.5rem;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--verde-profundo) 0%, #2A5240 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 61, 47, 0.2);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.contact-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.contact-item h3 {
    font-size: 1.25rem;
    color: var(--verde-profundo);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--gris-oscuro);
    margin: 0;
    line-height: 1.6;
}

.contact-item a {
    color: var(--terracota);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--dorado);
    text-decoration: underline;
}

.social-section {
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--verde-profundo) 0%, #2A5240 100%);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(30, 61, 47, 0.2);
}

.social-section h3 {
    color: var(--beige-claro);
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.social-links-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(247, 243, 238, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    text-decoration: none;
    color: var(--beige-claro);
    font-weight: 600;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.social-btn img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.social-btn:hover {
    background: var(--dorado);
    border-color: var(--dorado);
    color: var(--verde-profundo);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.social-btn:hover img {
    filter: none;
}

/* Reviews */
.reviews-section {
    margin-top: 2.5rem;
}

.reviews-section h3 {
    color: var(--verde-profundo);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.review-card {
    background: var(--blanco);
    padding: 1.75rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(30, 61, 47, 0.08);
    box-shadow: 0 4px 15px rgba(30, 61, 47, 0.05);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 61, 47, 0.12);
}

.review-stars {
    color: var(--dorado);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.review-text {
    font-style: italic;
    color: var(--gris-oscuro);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.review-author {
    font-weight: 600;
    color: var(--terracota);
    margin: 0;
    font-size: 0.95rem;
}

/* Formulario */
.contact-form-wrapper {
    background: var(--blanco);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(30, 61, 47, 0.1);
    border: 1px solid rgba(30, 61, 47, 0.08);
}

.contact-form-wrapper .section-title {
    color: var(--verde-profundo);
    margin-bottom: 1.5rem;
    position: relative;
}

.contact-form-wrapper .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--terracota), var(--dorado));
    border-radius: 2px;
}

.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--verde-profundo);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E8D7B9;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--beige-claro);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--terracota);
    background: var(--blanco);
    box-shadow: 0 0 0 3px rgba(196, 107, 59, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--terracota) 0%, #A85430 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(196, 107, 59, 0.3);
}

.contact-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(196, 107, 59, 0.5);
    background: linear-gradient(135deg, #A85430 0%, var(--terracota) 100%);
}

.contact-form .btn:active {
    transform: translateY(-1px);
}

.form-message {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    display: block;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    display: block;
    border: 1px solid #f5c6cb;
}

/* Map Section */
.map-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--verde-profundo) 0%, #1a2d23 100%);
    position: relative;
    overflow: hidden;
}

.map-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.map-section .section-title {
    color: var(--beige-claro);
    position: relative;
    z-index: 1;
}

.map-description {
    text-align: center;
    max-width: 600px;
    margin: 1.25rem auto 2.5rem;
    color: #E8D7B9;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.map-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 1;
}

.map-wrapper iframe {
    display: block;
}

/* Responsive */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        padding-right: 0;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-header {
        height: 400px;
    }

    .contact-item {
        padding: 1rem;
    }

    .contact-icon {
        font-size: 2rem;
        min-width: 45px;
        height: 45px;
    }

    .social-section {
        padding: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.85rem;
    }
}

@media (max-width: 480px) {
    .contact-header {
        height: 350px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin: 0 auto;
    }

    .contact-form-wrapper {
        padding: 1.25rem;
    }
}
