:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f4c75;
    --accent-light: #3282b8;
    --accent-bright: #4fc3f7;
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --text-light: #8b95a1;
    --background-primary: #ffffff;
    --background-secondary: #f8fafc;
    --background-accent: #eef7ff;
    --border-color: #e1e8ed;
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f4c75 100%);
    --gradient-accent: linear-gradient(135deg, #3282b8 0%, #4fc3f7 100%);
    --border-radius: 12px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-primary);
    overflow-x: hidden;
}

.contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navegación */
.navegacion {
    background: var(--gradient-primary);
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
    transition: var(--transition-medium);
}

.navegacion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.95);
    z-index: -1;
}

.contenedor-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.logotipo {
    height: 60px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logotipo:hover {
    transform: scale(1.05);
}

.menu-principal {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.menu-principal a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-medium);
    padding: 10px 18px;
    border-radius: 8px;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.menu-principal a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--transition-medium);
    z-index: -1;
}

.menu-principal a:hover::before,
.enlace-activo::before {
    transform: scaleX(1);
}

.menu-principal a:hover,
.enlace-activo {
    color: #ffffff;
}

.menu-principal a:hover {
    box-shadow: 0 2px 8px rgba(79, 195, 247, 0.2);
}

.enlace-activo {
    background: rgba(79, 195, 247, 0.2);
}

/* Evitar desplazamiento visual en hover */
.menu-principal li {
    display: flex;
    align-items: center;
}

.marca {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* Estilos para el lema de la iglesia */
.lema-iglesia {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0.5rem;
}

.texto-lema {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Pacifico', 'Dancing Script', cursive;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.8px;
    line-height: 1.3;
    text-transform: lowercase;
}

.referencia-biblica {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.65rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    margin-top: -1px;
    letter-spacing: 1.5px;
    opacity: 0.95;
    text-transform: uppercase;
}

/* Mejor alineación vertical */
.contenedor-nav > * {
    display: flex;
    align-items: center;
}

.menu-movil {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-movil span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-principal {
    background: var(--gradient-primary);
    color: white;
    padding: 150px 0 120px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-principal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.6;
}

.hero-secundario {
    background: var(--gradient-primary);
    color: white;
    padding: 140px 0 100px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-secundario::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
}

.hero-secundario h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contenido-hero {
    position: relative;
    z-index: 2;
}

.contenido-hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.contenido-hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.boton-principal {
    background: var(--gradient-accent);
    color: white;
    padding: 16px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.boton-principal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    transition: var(--transition-medium);
}

.boton-principal:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.boton-principal:hover::before {
    left: 0;
}

.boton-principal span {
    position: relative;
    z-index: 2;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sección Bienvenida */
.seccion-bienvenida {
    padding: 100px 0;
    background: var(--background-accent);
    text-align: center;
    position: relative;
}

.seccion-bienvenida::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.seccion-bienvenida h2 {
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
    color: var(--accent-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.seccion-bienvenida h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-bright);
    border-radius: 2px;
}

.seccion-bienvenida p {
    font-size: 1.3rem;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
}

/* Últimas Publicaciones */
.ultimas-publicaciones {
    padding: 120px 0;
    background: var(--background-primary);
    position: relative;
}

.ultimas-publicaciones::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.ultimas-publicaciones h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: var(--accent-color);
    font-weight: 700;
    position: relative;
}

.ultimas-publicaciones h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.grid-publicaciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.tarjeta-articulo {
    background: var(--background-primary);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-medium);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.tarjeta-articulo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
}

.tarjeta-articulo:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-light);
}

.tarjeta-articulo h3 {
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.tarjeta-articulo p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1rem;
}

.leer-mas {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.leer-mas::after {
    content: '→';
    transition: var(--transition-fast);
}

.leer-mas:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.leer-mas:hover::after {
    transform: translateX(3px);
}

/* Sección Eventos */
.seccion-eventos {
    padding: 120px 0;
    background: var(--background-accent);
    position: relative;
}

.seccion-eventos h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: var(--accent-color);
    font-weight: 700;
    position: relative;
}

.seccion-eventos h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.grid-eventos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.tarjeta-evento {
    background: var(--background-primary);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-medium);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.tarjeta-evento::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.tarjeta-evento:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-light);
}

.tarjeta-evento h3 {
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.tarjeta-evento p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.fecha {
    background: var(--gradient-accent);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
}

.tarjeta-evento:hover .fecha {
    transform: scale(1.05);
}

/* Página Nosotros - Diseño con Tarjetas */
.contenido-nosotros {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Introducción principal */
.intro-nosotros {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-nosotros h2 {
    color: #4f46e5;
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.descripcion-principal {
    color: #475569;
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.descripcion-secundaria {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Grid principal de tarjetas */
.grid-nosotros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Estilos de tarjetas principales */
.tarjeta-nosotros {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.tarjeta-nosotros::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
}

.tarjeta-nosotros:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.icono-tarjeta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.emoji-icono {
    font-size: 2.5rem;
}

.contenido-tarjeta h3 {
    color: #1e293b;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contenido-tarjeta p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* Sección de valores */
.seccion-valores {
    margin-top: 4rem;
}

.titulo-valores {
    text-align: center;
    color: #4f46e5;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.grid-valores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Tarjetas de valores */
.tarjeta-valor {
    background: white;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.tarjeta-valor:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.icono-valor {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.tarjeta-valor h4 {
    color: #1e293b;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.tarjeta-valor p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Sección Cómo lo hacemos */
.seccion-como-hacemos {
    margin: 4rem 0;
}

.titulo-como-hacemos {
    text-align: center;
    color: #4f46e5;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.grid-como-hacemos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Tarjetas de cómo lo hacemos */
.tarjeta-como-hacemos {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
}

.tarjeta-como-hacemos:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.icono-como-hacemos {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.tarjeta-como-hacemos h4 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tarjeta-como-hacemos p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Página Artículos */
.contenido-articulos {
    padding: 80px 0;
}

.articulo-completo {
    background: white;
    padding: 3rem;
    margin-bottom: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.articulo-completo h2 {
    color: #4f46e5;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.meta-articulo {
    color: #64748b;
    margin-bottom: 2rem;
    font-style: italic;
}

.articulo-completo p {
    color: #374151;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Página Multimedia */
.contenido-multimedia {
    padding: 80px 0;
}

.grid-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.video-container {
    position: relative;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.video-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-placeholder h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.play-button {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.play-button:hover {
    background: white;
    color: #4f46e5;
}

/* Mensajes de Django */
.mensajes-django {
    margin-bottom: 2rem;
}

.mensaje-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #28a745;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
    font-weight: 500;
    animation: slideInDown 0.5s ease-out;
}

.mensaje-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    color: #721c24;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #dc3545;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
    font-weight: 500;
    animation: slideInDown 0.5s ease-out;
}

.mensaje-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #17a2b8;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
    font-weight: 500;
    animation: slideInDown 0.5s ease-out;
}

.mensaje-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #ffc107;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
    font-weight: 500;
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Página Contacto */
.contenido-contacto {
    padding: 120px 0;
    background: var(--background-secondary);
}

.grid-contacto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.formulario-contacto {
    background: var(--background-primary);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.formulario-contacto h2 {
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

.grupo-campo {
    margin-bottom: 2rem;
    position: relative;
}

.grupo-campo label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.grupo-campo input,
.grupo-campo textarea,
.grupo-campo select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--background-primary);
    color: var(--text-primary);
}

.grupo-campo input:focus,
.grupo-campo textarea:focus,
.grupo-campo select:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(50, 130, 184, 0.1);
    transform: translateY(-1px);
}

.grupo-campo textarea {
    height: 130px;
    resize: vertical;
}

.boton-enviar {
    background: var(--gradient-accent);
    color: white;
    padding: 16px 35px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.boton-enviar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #29b6f6 0%, #1976d2 100%);
    transition: var(--transition-medium);
}

.boton-enviar:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.boton-enviar:hover::before {
    left: 0;
}

.boton-enviar span {
    position: relative;
    z-index: 2;
}

.info-contacto-lateral {
    background: var(--background-primary);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.info-contacto-lateral h3 {
    color: var(--accent-color);
    margin-bottom: 2.5rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.detalle-contacto {
    margin-bottom: 2.5rem;
    padding: 1.8rem;
    background: var(--background-accent);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-light);
    transition: var(--transition-fast);
}

.detalle-contacto:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-light);
}

.detalle-contacto h4 {
    color: var(--accent-light);
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.detalle-contacto p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Validación visual de formularios */
.grupo-campo.error input,
.grupo-campo.error textarea,
.grupo-campo.error select {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.grupo-campo.success input,
.grupo-campo.success textarea,
.grupo-campo.success select {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.mensaje-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.mensaje-exito {
    color: #16a34a;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

/* Footer */
.pie-pagina {
    background: var(--primary-color);
    color: #ffffff;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.pie-pagina::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.contenido-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.contenido-footer > div {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contenido-footer h3, .contenido-footer h4 {
    margin-top: 0 !important;
}

.info-iglesia h3 {
    color: var(--accent-bright);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    margin-top: 0;
}

.info-iglesia p {
    color: #b8c5d1;
    line-height: 1.6;
    font-size: 1rem;
    text-align: center;
    margin-top: 0;
}

.contacto-footer h4 {
    color: var(--accent-bright);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    margin-top: 0;
}

.contacto-footer p {
    margin-bottom: 0.8rem;
    color: #b8c5d1;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.redes-footer {
    text-align: center;
}

.redes-footer h4 {
    color: var(--accent-bright);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    margin-top: 0;
}

.botones-redes {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Botones circulares minimalistas para redes sociales */
.btn-red-circular {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-red-circular .social-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    /* Removido el filtro que hacía invisibles los iconos */
}

.btn-red-circular.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.25);
}

.btn-red-circular.facebook:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
    border-color: rgba(24, 119, 242, 0.3);
}

.btn-red-circular.youtube {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.25);
}

.btn-red-circular.youtube:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
    border-color: rgba(220, 38, 38, 0.3);
}

.btn-red-circular.tiktok {
    background: linear-gradient(135deg, #fe2c55 0%, #ff0050 100%);
    box-shadow: 0 4px 15px rgba(254, 44, 85, 0.25);
}

.btn-red-circular.tiktok:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(254, 44, 85, 0.4);
    border-color: rgba(254, 44, 85, 0.3);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #8b95a1;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contenedor-nav {
        position: relative;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .marca {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
        width: 100%;
        justify-content: center;
    }
    
    /* Estilos responsivos para el lema - ahora siempre visible */
    .lema-iglesia {
        display: flex;
        text-align: center;
        margin-left: 0;
    }
    
    .texto-lema {
        font-size: 1rem;
        letter-spacing: 0.5px;
        font-weight: 600;
    }
    
    .referencia-biblica {
        font-size: 0.6rem;
        letter-spacing: 1.2px;
        font-weight: 500;
    }
    
    .logotipo {
        height: 45px;
    }
    
    .menu-principal {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-heavy);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        transform: translateY(-20px);
        opacity: 0;
        transition: all var(--transition-medium);
        z-index: 1000;
    }
    
    .menu-principal.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }
    
    .menu-principal li {
        margin: 8px 0;
    }
    
    .menu-principal a {
        padding: 15px 20px;
        border-radius: 8px;
        text-align: center;
        display: block;
        width: 100%;
    }
    
    .menu-movil {
        display: flex;
        z-index: 1001;
        position: absolute;
        top: 10px;
        right: 20px;
    }
    
    .logotipo {
        height: 50px; /* Ligeramente más pequeño en móviles */
    }
    
    .contenedor-nav {
        min-height: 70px; /* Altura reducida en móviles */
    }
    
    .contenido-hero h1 {
        font-size: 2.5rem;
    }
    
    .contenido-hero p {
        font-size: 1.1rem;
    }
    
    .grid-publicaciones,
    .grid-eventos,
    .grid-videos {
        grid-template-columns: 1fr;
    }
    
    /* Estilos responsivos para la sección Nosotros */
    .intro-nosotros h2 {
        font-size: 2.2rem;
    }
    
    .descripcion-principal {
        font-size: 1.2rem;
    }
    
    .grid-nosotros {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tarjeta-nosotros {
        padding: 2rem 1.5rem;
    }
    
    .contenido-tarjeta h3 {
        font-size: 1.6rem;
    }
    
    .titulo-valores {
        font-size: 2rem;
    }
    
    .grid-valores {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
    }
    
    .tarjeta-valor {
        padding: 1.5rem 1rem;
    }

    /* Estilos responsivos para Cómo lo hacemos */
    .titulo-como-hacemos {
        font-size: 2rem;
    }
    
    .grid-como-hacemos {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tarjeta-como-hacemos {
        padding: 2rem 1.5rem;
    }

    .grid-contacto {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Corrección del footer en responsive */
    .contenido-footer {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .info-iglesia,
    .contacto-footer,
    .redes-footer {
        text-align: center;
        width: 100%;
    }
    
    .info-iglesia h3,
    .contacto-footer h4,
    .redes-footer h4 {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .info-iglesia p,
    .contacto-footer p {
        text-align: center;
        justify-content: center;
    }
    
    .botones-redes {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .btn-red-circular {
        width: 45px;
        height: 45px;
    }
    
    .btn-red-circular .social-icon {
        width: 22px;
        height: 22px;
    }
    
    .hero-secundario h1 {
        font-size: 2rem;
    }
    
    .articulo-completo {
        padding: 2rem 1.5rem;
    }
    
    /* Correcciones específicas para el formulario de contacto */
    .formulario-contacto,
    .info-contacto-lateral {
        padding: 2rem 1.5rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .grupo-campo input,
    .grupo-campo textarea,
    .grupo-campo select {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 16px;
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .grupo-campo textarea {
        height: 120px;
        resize: vertical;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .grupo-campo label {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .boton-enviar {
        padding: 14px 25px;
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .detalle-contacto {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .detalle-contacto h4 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .detalle-contacto p {
        font-size: 0.9rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .contenedor {
        padding: 0 15px;
    }
    
    .formulario-contacto,
    .info-contacto-lateral {
        padding: 1.5rem 1rem;
        margin: 0;
    }
    
    .tarjeta-articulo,
    .tarjeta-evento {
        padding: 1.5rem;
    }
    
    /* Estilos para la sección Nosotros en pantallas muy pequeñas */
    .intro-nosotros h2 {
        font-size: 1.8rem;
    }
    
    .descripcion-principal {
        font-size: 1.1rem;
    }
    
    .tarjeta-nosotros {
        padding: 1.5rem 1rem;
    }
    
    .icono-tarjeta {
        width: 60px;
        height: 60px;
    }
    
    .emoji-icono {
        font-size: 2rem;
    }
    
    .contenido-tarjeta h3 {
        font-size: 1.4rem;
    }
    
    .titulo-valores {
        font-size: 1.8rem;
    }
    
    .grid-valores {
        grid-template-columns: 1fr;
    }
    
    .icono-valor {
        font-size: 2.5rem;
    }
    
    /* Ajustes adicionales para pantallas muy pequeñas */
    .grupo-campo input,
    .grupo-campo textarea,
    .grupo-campo select {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .grupo-campo textarea {
        height: 100px;
    }
    
    .detalle-contacto {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .detalle-contacto h4 {
        font-size: 0.95rem;
    }
    
    .detalle-contacto p {
        font-size: 0.85rem;
    }
    
    .btn-red-circular {
        width: 40px;
        height: 40px;
    }
    
    .btn-red-circular .social-icon {
        width: 20px;
        height: 20px;
    }
    
    .botones-redes {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-secundario {
        padding: 120px 0 80px;
    }
    
    .hero-secundario h1 {
        font-size: 1.8rem;
    }
    
    .hero-secundario p {
        font-size: 1rem;
    }
}