* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #f5f7fa;
}

a {
    text-decoration: none;
}


/* Header profesional: Estilo de la barra de navegación superior */
header {
    background-color: #0b1c3d;
    color: #fff;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav {
  max-width: 1600px; /* Ampliado para dar mÃ¡s espacio a los lados */
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px; /* MÃ¡s espacio a los lados */
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0; /* Evita que el logo y el tÃ­tulo se encojan */
}

.logo {
    height: 150px;
    width: auto;
}

.logo-title h1, .logo-title h2 {
  font-size: 1.8rem;
  font-weight: 700;
  white-space: nowrap; /* Fuerza a que estÃ© en una sola lÃ­nea siempre */
}

.nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav ul li a {
    color: white;
    font-weight: 700;
    padding: 8px 12px;
    transition: 0.3s;
  white-space: nowrap;
}

.nav ul li a:hover {
    background-color: #2563eb;
    border-radius: 6px;
}

.nav .btn-socio {
    background-color: #2563eb;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s;
}

.nav .btn-socio:hover {
    background-color: #1e4db7;
}

/* Hero mejorado: Sección principal con imagen de fondo llamativa */
.social-hero {
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: url('../img/NuestraComunidad.JPG') center/cover no-repeat;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

.social-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 28, 61, 0.6);
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.social-hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.social-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Instagram Section */
.instagram-section {
    max-width: 1200px;
    margin: -50px auto 60px;
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.section-header i {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header h3 {
    font-size: 2rem;
    color: #0b1c3d;
}

.instagram-feed {
    width: 100%;
    min-height: 500px;
}

.cta-social {
    text-align: center;
    margin-top: 40px;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s;
}

.btn-instagram:hover {
    transform: scale(1.05);
}

/* Other Networks */
.other-networks {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 20px;
    text-align: center;
}

.other-networks h3 {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #0b1c3d;
}

.networks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.network-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.network-card i {
    font-size: 2.5rem;
}

.network-card span {
    font-weight: 600;
}

.network-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.fb i {
    color: #1877f2;
}

.x i {
    color: #000;
}

.yt i {
    color: #ff0000;
}

.threads i {
    color: #000;
}

/* Footer */
footer {
    background-color: #0b1c3d;
    color: #cbd5f5;
    padding: 50px 20px;
    text-align: center;
}

footer a {
    color: #2563eb;
    text-decoration: none;
}

.social-links {
    margin-top: 25px;
}

.social-links a { color: #ffffff;
    margin: 0 15px;
    font-size: 30px;
    
    transition: 0.3s;
}

.social-links a:hover {
    color: #ffffff;
}

/* Responsive */
@media(max-width: 1024px) {
    .social-hero h2 {
        font-size: 2.2rem;
    }

    .instagram-section {
        padding: 20px;
        margin-top: -30px;
    }

    .section-header h3 {
        font-size: 1.5rem;
    }

    .logo {
        height: 100px;
    }

    .nav ul {
        flex-direction: column;
        gap: 15px;
        margin-top: 10px;
    }

    .instagram-feed iframe {
        height: 410px !important;
    }

    .instagram-feed {
        min-height: auto;
    }
}

/* Mobile en horizontal (Landscape) */
@media (max-height: 600px) and (orientation: landscape) {
    .logo {
        height: 80px;
    }
}

