/* Contact Page Specific Styles */

/* Hero Contact Section */
.hero-contact {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-image: url('../images/gallery/2017_0929_16163400-1024x576.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-contact .hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    max-width: 800px;
}

.hero-contact h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-contact p {
    font-size: 1.75rem;
    margin-bottom:1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
    position: absolute; 
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-indicator p {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.arrow-down {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Contact Info Styles */
.contact-info {
    padding: 60px 40px;
    background-color: var(--light-color);
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
}

.info-block {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-icon {
    margin-right: 20px;
    flex-shrink: 0;
}

.green-box {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.green-box i {
    font-size: 1.8rem;
}

.info-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-content p {
    margin-bottom: 0;
    font-size: 1.2rem;
    color: #666;
}

.agency-logo {
    margin-top: 50px;
    text-align: center;
}

.agency-logo img {
    max-width: 120px;
    margin: 0 auto 15px;
}

.agency-logo p {
    margin-bottom: 5px;
    color: #666;
}

.agency-logo a {
    color: var(--primary-color);
    font-weight: 600;
}

.agency-logo a:hover {
    text-decoration: underline;
}

/* Form Styles */
.contact-form-container {
    padding: 60px 40px;
    background-color: var(--white);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.form-header p {
    font-size:1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #666;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.2);
}

.captcha-group {
    margin-bottom: 30px;
}

.captcha-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    margin-top: 10px;
}
/* Animaciones para formularios de contacto */
.form-group input, 
.form-group textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    transform: translateY(-2px);
}

.submit-btn {
    position: relative;
    overflow: hidden;
}

.submit-btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.submit-btn:hover:after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(30, 30);
        opacity: 0;
    }
}
.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Map Section */
.map-section {
    width: 100%;
    height: 450px;
}

.map-container {
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Footer Modifications for Contact Page */
footer .apartment-btn {
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
    transition: var(--transition);
}

footer .apartment-btn:hover {
    background-color: #008c43;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding: 40px 30px;
    }
    
    .contact-form-container {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .hero-contact h1 {
        font-size: 2.5rem;
    }
    
    .hero-contact p {
        font-size: 1.2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-info h2 {
        font-size: 2rem;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .green-box {
        width: 50px;
        height: 50px;
    }
    
    .green-box i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .hero-contact h1 {
        font-size: 2rem;
    }
    
    .hero-contact p {
        font-size: 1rem;
    }
    
    .info-block {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .green-box {
        width: 40px;
        height: 40px;
    }
    
    .green-box i {
        font-size: 1.2rem;
    }
}