/* VARIABLES LOCALES Y MANTENIMIENTO DEL ESTILO ANTERIOR */
:root {
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.15);
    --dorado: #d4af37;
    --text-muted: rgba(255, 255, 255, 0.7);
}

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

/* === SECCIÓN 1: HERO (BLINDADO) === */
.hero-editorial {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    min-height: 75vh; 
    margin-bottom: 60px; 
    gap: 20px;
}
.texto-hero { 
    flex: 1.2; /* Le damos un poco más de espacio al texto */
    min-width: 300px; /* Evita que el texto se aplaste */
    z-index: 10; 
}
.badge {
    display: inline-block; padding: 6px 15px; background: rgba(212, 175, 55, 0.15);
    color: var(--dorado); border: 1px solid var(--dorado); border-radius: 30px;
    font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 25px; text-transform: uppercase;
}
/* Forzamos el tamaño gigante del texto */
.texto-hero h1 { 
    font-size: clamp(3.5rem, 8vw, 8rem) !important; 
    line-height: 0.9; 
    margin: 0 0 20px 0; 
    font-weight: 900; 
    letter-spacing: -3px; 
}
.texto-hero p { font-size: 1.2rem; line-height: 1.6; color: var(--text-muted); margin-bottom: 40px; max-width: 480px; }

.hero-botones { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-primario, .btn-secundario { padding: 15px 30px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: all 0.3s ease; }
.btn-primario { background: #fff; color: #000; box-shadow: 0 4px 15px rgba(255,255,255,0.2); }
.btn-primario:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255,255,255,0.3); }
.btn-secundario { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid var(--glass-border); backdrop-filter: blur(10px); }
.btn-secundario:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

.imagen-hero { 
    flex: 1; 
    display: flex; 
    justify-content: flex-end; /* Pega la foto a la derecha */
    align-items: flex-end; 
    height: 75vh; 
    position: relative; 
}
.foto-hector { 
    width: 100%; 
    max-width: 600px; /* Límite para que no se desborde */
    height: auto; 
    object-fit: contain; 
    /* Forzamos el difuminado inferior para que se integre al fondo */
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%); 
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%); 
}
/* === SECCIÓN 2: BENTO GRID === */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-bottom: 100px; }
.bento-box { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 28px; padding: 35px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); text-decoration: none; color: #fff; display: flex; flex-direction: column; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3); }
.bento-box:hover { transform: translateY(-8px) scale(1.02); background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }

.stats { justify-content: center; text-align: left; }
.stats h3 { font-size: 3rem; margin: 0; color: var(--dorado); font-weight: 800; }
.stats p { font-size: 1.1rem; margin: 5px 0 0 0; color: var(--text-muted); font-weight: 500; }

.servicio { justify-content: space-between; min-height: 220px; }
.servicio-header .icono { font-size: 2.5rem; display: block; margin-bottom: 15px; }
.servicio h2 { font-size: 1.6rem; margin: 0 0 15px 0; font-weight: 700; }
.servicio p { font-size: 1rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

.box-4 { grid-column: span 2; background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, var(--glass-bg) 100%); border-color: rgba(212, 175, 55, 0.25); }
.box-5 { grid-column: span 1; }
.box-6 { grid-column: span 3; flex-direction: row; align-items: center; justify-content: space-between; padding: 30px 40px; }
.box-6 .servicio-content { display: flex; align-items: center; gap: 25px; }
.box-6 .icono { font-size: 3rem; margin-bottom: 0; }
.box-6 h2 { margin-bottom: 5px; }
.flecha-link { font-size: 2rem; color: var(--dorado); transition: transform 0.3s; }
.box-6:hover .flecha-link { transform: translateX(10px); }

/* === SECCIÓN 3: LOS 4 PILARES (CON BOTONES NUEVOS) === */
.seccion-pilares { margin-bottom: 100px; }
.cabecera-seccion { text-align: center; margin-bottom: 50px; }
.cabecera-seccion h2 { font-size: 2.5rem; margin-bottom: 10px; }
.cabecera-seccion p { color: var(--text-muted); font-size: 1.1rem; }

.grid-pilares { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.pilar-card {
    background: linear-gradient(to bottom right, rgba(255,255,255,0.03), transparent);
    border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 40px; position: relative; overflow: hidden;
    display: flex; flex-direction: column; /* Para empujar el botón abajo */
}
.prioridad-1 { border-color: rgba(212, 175, 55, 0.4); background: linear-gradient(to bottom right, rgba(212, 175, 55, 0.05), transparent); }
.pilar-numero { position: absolute; top: -10px; right: 10px; font-size: 6rem; font-weight: 900; color: rgba(255,255,255,0.03); z-index: 0; }
.pilar-card h3 { font-size: 1.8rem; margin: 0 0 15px 0; color: var(--dorado); position: relative; z-index: 1; }
.pilar-card p { color: var(--text-muted); line-height: 1.6; margin: 0 0 25px 0; position: relative; z-index: 1; font-size: 1.05rem; flex-grow: 1; }

/* NUEVO ESTILO: Botón de los pilares */
.btn-pilar {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, color 0.3s ease;
    align-self: flex-start;
    border-bottom: 1px solid transparent;
}
.btn-pilar:hover {
    transform: translateX(5px);
    color: var(--dorado);
    border-bottom: 1px solid var(--dorado);
}

/* === SECCIÓN 4: LOGOS === */
.seccion-logos { text-align: center; padding: 40px; background: rgba(0,0,0,0.3); border-radius: 24px; border: 1px solid var(--glass-border); margin-bottom: 100px; }
.titulo-logos { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.5; margin-bottom: 30px; }

.grid-logos { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 40px; align-items: center; }

/* Nuevas reglas para IMÁGENES de logos */
.logo-item { 
    max-height: 50px; /* Alto uniforme para todos los logos */
    max-width: 180px; /* Para que los logos muy horizontales no se desfasen */
    width: auto;
    object-fit: contain; /* Evita que la imagen se estire o deforme */
    opacity: 0.5; 
    filter: grayscale(100%); 
    transition: all 0.4s ease; 
}
.logo-item:hover { 
    opacity: 1; 
    filter: grayscale(0%); 
    transform: scale(1.05); /* Pequeño efecto de acercamiento 3D */
}

/* === SECCIÓN 5: BLOG TEASE === */
.seccion-blog-tease { margin-bottom: 40px; }
.cabecera-blog-tease { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; border-bottom: 1px solid var(--glass-border); padding-bottom: 20px; }
.cabecera-blog-tease h2 { font-size: 2rem; margin: 0; }
.btn-outline { color: #fff; text-decoration: none; border: 1px solid var(--glass-border); padding: 8px 20px; border-radius: 30px; transition: all 0.3s; font-size: 0.9rem; }
.btn-outline:hover { background: #fff; color: #000; }

.grid-tease { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.tease-card { background: rgba(0,0,0,0.2); border-radius: 16px; padding: 30px; border: 1px solid transparent; transition: all 0.3s; }
.tease-card:hover { border-color: var(--glass-border); background: var(--glass-bg); }
.tease-categoria { font-size: 0.8rem; color: var(--dorado); font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.tease-card h4 { font-size: 1.3rem; margin: 10px 0; }
.tease-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-editorial { flex-direction: column-reverse; text-align: center; height: auto; min-height: auto; padding-top: 40px; }
    .texto-hero { margin-top: -100px; z-index: 20; }
    .hero-botones { justify-content: center; }
    .imagen-hero { width: 100%; height: 500px; align-items: flex-start; justify-content: center; opacity: 0.6; }
    .foto-hector { max-height: 100%; }
    
    .bento-grid { grid-template-columns: 1fr; margin-bottom: 60px; }
    .box-1, .box-2, .box-3, .box-4, .box-5, .box-6 { grid-column: span 1; }
    .stats { text-align: center; padding: 30px; }
    .box-6 { flex-direction: column; text-align: center; gap: 20px; }
    .box-6 .servicio-content { flex-direction: column; gap: 15px; }
    .flecha-link { transform: rotate(90deg); }
    .box-6:hover .flecha-link { transform: rotate(90deg) translateY(5px); }

    .grid-pilares { grid-template-columns: 1fr; }
    .cabecera-blog-tease { flex-direction: column; align-items: flex-start; gap: 15px; }
    .grid-tease { grid-template-columns: 1fr; }
}
