/* Import main styles variables */
@import 'styles.css';

/* Container and Overlay Styling */
.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-image: url('/fotos/fondo_pc.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Map container styling */
.map-container {
    width: 60vh; /* Adjust based on your layout */
    margin: 1rem auto; /* Center map with spacing */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Address styling */
.address {
    width: 80%;
    margin: 1rem auto; /* Center address with spacing */
    font-family: 'Inknut Antiqua', serif; /* Same font as the title */
    font-weight: 400; /* Regular weight */
    font-size: 1.2rem;
    color: #D9D9D9;
    text-align: center;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8); /* Add subtle shadow */
}

/* Background image for small screens */
@media (max-width: 800px) {
    .container {
        background-image: url('/fotos/fondo_mobile.jpg');
    }
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 1;
    pointer-events: none;
}

/* Custom overlay2 for contacto page */
.overlay2 {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem 4rem 2rem;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.75) 0%,
        rgba(255, 255, 255, 0.6) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Header (Title Only) Styling */
.header {
    text-align: center;
    margin-bottom: 1rem;
    width: 100%;
}

.header a.title {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 300;
    font-size: 3.5rem;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    display: block;
}

.header a.title:hover {
    color: var(--primary-blue);
}

/* Introduction Section */
.intro-section {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    padding: 0 1rem;
}

.intro-section h2 {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 300;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.intro-section .divider {
    width: 60px;
    height: 1px;
    background-color: var(--text-secondary);
    margin: 0.75rem auto 1.5rem;
    opacity: 0.5;
}

.intro-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Map Container */
.map-container {
    width: 100%;
    max-width: 1000px;
    height: 400px;
    margin: 0 auto 3rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Contact Info Card */
.contact-info-card {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.9) 100%
    );
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-title {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 300;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
    text-align: center;
}

.contact-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
    text-align: center;
}

/* Contact Methods */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-method-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.contact-method-details {
    flex-grow: 1;
}

.contact-method-details h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-method-details p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
}


/* Side Elements */
.side-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.side-element {
    position: absolute;
    background-color: var(--primary-blue);
    opacity: 0.05;
}

.side-element.left {
    top: 20%;
    left: 0;
    width: 200px;
    height: 400px;
}

.side-element.right {
    bottom: 15%;
    right: 0;
    width: 180px;
    height: 280px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .overlay2 {
        padding: 3rem 1.5rem;
    }
    
    .side-element.left, .side-element.right {
        width: 120px;
    }
}

@media (max-width: 800px) {
    .header a.title {
        font-size: 2.5rem;
    }
    
    .overlay2 {
        padding: 2rem 1rem;
    }
    
    .intro-section h2 {
        font-size: 1.5rem;
    }
    
    .contacto-container {
        padding: 0;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    /* Contact card mobile adjustments */
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .contact-method {
        padding: 1rem;
        flex-direction: row;
        text-align: left;
    }
    
    .contact-method-icon {
        margin-right: 0.75rem;
        margin-bottom: 0;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-method-details h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .contact-method-details p {
        font-size: 0.85rem;
    }
    
    .contact-title {
        font-size: 1.3rem;
    }
    
    .contact-description {
        font-size: 0.85rem;
    }
    
    .contact-info p {
        font-size: 1rem;
    }
    
    .map-container {
        height: 300px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .side-element {
        display: none;
    }
    
    .contact-method-icon {
        width: 30px;
        height: 30px;
        margin-right: 1rem;
    }
}
