/* ====================================
   Welcome Section Styles
==================================== */
.right-image {
    flex: 1;
    background: url('../media/images/contacto-welcome-img.jpg') no-repeat top center/cover; /* Center the background image */
    border-radius: 15px; /* More rounded corners */
    height: 450px; /* Slightly increased height */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Increased shadow */
}

/* ====================================
   Ubicación y Contacto Section Styles
==================================== */
#ubicacion-contacto {
    display: flex;
    flex-direction: row;
    padding: 3rem 1rem;
    justify-content: center;
    background: linear-gradient(to bottom,#AFD7FF,#60AFFF); /* Match your website's colors */
}

.ubicacion-content, .contact-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to top, #ffffff20,#00000020); /* Semi-transparent background */
    position: relative;
}

.ubicacion-content p, .contact-content p {
    font-size: 1.25rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.ubicacion-content a {
    color: #B2DBBF;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.ubicacion-content a:hover {
    color:#FE5F55;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.contact-link {
    color: #ffffff; /* White text for contrast */
    background-color: #495867; /* Darker blue for better contrast */
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center; /* Center the content */
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin: 10px 0; /* Added spacing between links */
    width: 80%; /* Make the links full width */
    box-sizing: border-box; /* Ensure padding is included in the width */
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-link i {
    margin-right: 8px;
}

.contact-link:hover {
    background-color: #fe5f55; /* Red background on hover */
    color: #ffffff; /* Maintain high contrast on hover */
}

.ubicacion-content iframe {
    margin-top: 1rem;
    border-radius: 8px;
}

/* ====================================
   Social Media Section Styles
==================================== */
#redes-sociales {
    background: url('../media/images/contacto-images/redes_sociales.webp') no-repeat center center fixed;
    background-size: cover;
    padding: 3rem 1rem;
    color: #FFFFFF;
    min-height: 100vh; /* Make sections full height */
    position: relative; /* Position relative */
    display: flex; /* Added to enable flex properties */
    flex-direction: column; /* Align content in a column */
    align-items: center; /* Center align content */
    justify-content: center;
}

.social-media-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem; /* Adjust padding as needed */
    border-radius: 10px; /* Rounded corners */
    z-index: 1;
}

#redes-sociales .overlay {
    position: absolute; /* Position absolute */
    top: 0; /* Start at top */
    left: 0; /* Start at left */
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background: linear-gradient(to top, #60afffb3, #8F95D3);
    z-index: 0; /* Place below content */
}

.social-media-content p {
    font-size: 1.5rem; /* Increase font size for readability */
    line-height: 1.5; /* Improve line spacing */
    margin-bottom: 1.5rem; /* Adjust margin for better spacing */
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Increase gap for better spacing */
    margin-top: 1rem;
}

.social-icon {
    font-size: 2.5rem;
    color: #FFFFFF;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: #fe5f55;
    transform: scale(1.1);
    text-shadow: none;
}


/* ====================================
   Pastor's Calendar Section Styles
==================================== */
#calendario {
    padding: 3rem 1rem;
    min-height: 100vh; /* Make sections full height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #60AFFF, #778DA9);
}

#calendario .calendar-content {
    display: flex;
    flex-direction: row; /* Ensure items are in a row */
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    background: linear-gradient(to top, #ffffff20,#00000020); /* Semi-transparent background */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Box shadow for depth */
    width: 100%;
    max-width: 1200px; /* Maximum width for the calendar content */
    margin: 0 auto; /* Center the content */
}

#calendario .left-content {
    flex: 1;
    padding: 1rem;
    text-align: center; /* Center-align text */
}

#calendario .right-content {
    flex: 1;
    display: flex;
    justify-content: center;
}

#calendario p {
    font-size: 1.25rem;
    color: #FFFFFF;
    text-align: center; /* Center-align description text */
}

#calendario iframe {
    width: 100%;
    height: 600px;
    border-radius: 10px; /* Rounded corners for iframe */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Box shadow for iframe */
    background-color: #ffffff; /* White background inside iframe */
}

/* Subscribe Section Styles */
#suscribete {
    background: linear-gradient(to bottom,#778DA9,#8F95D3);
    padding: 3rem 1rem;
    min-height: 100vh; /* Make sections full height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscribe-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem; /* Add some space between the form and the info */
    background: linear-gradient(to top, #ffffff20,#00000020); /* Semi-transparent background */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 2s ease-in-out;
}

.subscribe-info,
.subscribe-form {
    flex: 1;
}

.subscribe-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.subscribe-info h2 {
    font-size: 2.5rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.subscribe-info p {
    font-size: 1.25rem;
    color: #FFFFFF;
}

.subscribe-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

.subscribe-form label {
    font-weight: 700;
    color: #FFFFFF;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-align: left; /* Align labels to the left */
}

.subscribe-form label .required {
    color: #F71735;
    margin-left: 0.25rem;
}

.subscribe-form input {
    padding: 0.5rem;
    border: 1px solid #FFFFFF;
    background: #495867ca;
    color: #FFFFFF;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    text-align: left; /* Align input text to the left */
}

.subscribe-form input:focus {
    border-color: #F7B801;
    outline: none;
}

.subscribe-form button {
    padding: 0.5rem;
    background-color: #495867; /* Use dark blue for high contrast */
    color: #ffffff; /* White text for contrast */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.subscribe-form button:hover {
    background-color: #fe5f55; /* Red on hover for contrast */
}

#subscribe-message,
#success-message {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

/* Tooltip container */
.contact-link, .subscribe-content input, a[data-tooltip] {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Custom tooltip styles */
.contact-link::before, .subscribe-content input::before, a[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 150px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 4px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 1;
}

.contact-link:hover::before, 
.subscribe-content input:focus::before, 
a[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Tooltip arrow */
.contact-link::after, .subscribe-content input::after, a[data-tooltip]::after {
    content: "";
    position: absolute;
    bottom: 115%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.contact-link:hover::after, 
.subscribe-content input:focus::after, 
a[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Placeholder text color */
.subscribe-content input::placeholder {
    color: #FFFFFF;
    opacity: 0.4;
}

/* ====================================
   Animations
==================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ====================================
   Responsive Styles
==================================== */
@media (max-width: 768px) {
    #ubicacion-contacto {
        flex-direction: column;
    }

    .ubicacion-content, .contact-content {
        margin: 1rem 0;
        width: 100%;
    }

    .ubicacion-content iframe {
        max-width: 100%;
    }

    #calendario .calendar-content {
        flex-direction: column-reverse; /* Stack items vertically on mobile */
    }

    #calendario .left-content, 
    #calendario .right-content {
        width: 100%;
    }

    #calendario iframe {
        height: 400px; /* Adjust height for mobile */
    }

    .subscribe-content {
        flex-direction: column;
        padding: 1.5rem;
    }

    .subscribe-content form {
        padding: 1.5rem;
    }

    .custom-tooltip {
        width: 150px;
    }
}

@media (max-width: 540px) {
    #redes-sociales {
        flex-direction: column;
        background-attachment: scroll; /* Changed from fixed to scroll */
        background-size: cover; /* Cover the container */
        background-position: 50%;
    }
}