/* 1. Reset y Configuración Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(to bottom, #f0f0f0 0%, #bdc3c7 20%, #2c3e50 60%, #1a1a2e 100%);
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 2. Header */
.main-header {
    position: relative;
    padding: 20px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 150px;
}

.main-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: blur(2px);
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.5) 100%), 
        url('/recursos/fondo.jpeg');
    opacity: 0.7;
}

.rif {
    text-align: right;
    font-size: 0.85rem;
    color: #1a1a2e;
    font-weight: bold;
    margin-bottom: 10px;
    width: 100%;
}

.main-logo {
    max-width: 90%;
    height: auto;
    max-height: 180px;
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.6)) 
            drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* 3. Navegación */
.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    background: #2a2a72;
    border-top: 2px solid #1a1a2e;
    padding: 5px;
}

.main-nav li {
    flex: 1;
    min-width: 120px;
}

.main-nav a {
    display: block;
    padding: 15px;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.4s ease;
}

.main-nav a:hover, .main-nav a.active {
    background: #4a69bd; 
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* 8. PÁGINA DE CONTACTO - ESTRUCTURA GENERAL */
.contact-page-container {
    padding: 50px 10%;
    min-height: calc(100vh - 250px);
}

.contact-grid {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.171); /* Fondo sutil para el contenedor */
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-info-column {
    flex: 1;
    min-width: 300px;
}

.section-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 5px;
    border-left: 6px solid #2a2a72;
    padding-left: 15px;
    line-height: 1;
}

.company-basic h3 {
    font-size: 1.4rem;
    margin-top: 10px;
    color: #fff;
}

.rif-text {
    font-size: 0.9rem;
    color: #bdc3c7;
    margin-bottom: 30px;
}

.info-block {
    margin-bottom: 25px;
}

.info-block strong {
    display: block;
    color: #ffffff;
    font-size: 1.45rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-block p {
    font-size: 1.35rem;
    color: #f0f0f0;
}

/* 9. GLOBOS DE REDES SOCIALES */
.social-media-container {
    display: flex;
    gap: 55px;
    margin-top: 0px;
    padding-top: 30px;
    justify-content: center;
    border-top: 5px solid #2a2a72;
}

.social-globe {
    width: 70px;
    height: 70px;
    background: #2a2a72;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.social-globe img {
    width: 55px;
    height: 55px;
    filter: brightness(0) invert(1); /* Hace que los iconos sean blancos */
}

.social-globe:hover {
    background: #4a69bd;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(74, 105, 189, 0.4);
    border-color: #fff;
}

/* 10. COLUMNA DE UBICACIÓN Y MAPA */
.contact-map-column {
    flex: 1.2; /* Le damos un poco más de ancho a la columna del mapa */
    min-width: 300px;
}

.map-wrapper {
    position: relative;
    width: 100%;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #4a69bd;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.map-wrapper:hover {
    transform: scale(1.02);
}

.map-link {
    display: block;
    text-decoration: none;
    position: relative;
}

.map-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.map-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(42, 42, 114, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.map-overlay span {
    color: #fff;
    background: #2a2a72;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.map-link:hover .map-overlay {
    opacity: 1;
}

.map-link:hover .map-image {
    filter: grayscale(0%) brightness(0.8);
}

.schedule-info {
    margin-top: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.schedule-info h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 5px;
    text-decoration: underline;
}

.schedule-info p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.main-footer {
    background-color: #333333;
    color: #ffffff;
    padding: 10px 20px;
    text-align: center;
    border-top: 3px solid #4a69bd;
    margin-top: 10px;
}

.footer-content p {
    margin: 5px 0;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-grid {
        flex-direction: column;
        padding: 20px;
    }
    .main-nav ul {
        flex-direction: column;
    }
}