/*
Theme Name: Instituto San Andrés
Theme URI: https://sanandres.edu.py/
Author: Gemini
Description: Tema profesional y responsivo para el Instituto Técnico Superior San Andrés. Incluye soporte para Tailwind CSS y fuentes modernas.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: san-andres
*/

/* --- Importación de Fuentes --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Variables de Marca --- */
:root {
    --brand-blue: #0f172a;
    --brand-accent: #3b82f6;
    --brand-green: #22c55e;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.9);
}

/* --- Estilos Base --- */
html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    color: var(--text-main);
    line-height: 1.6;
}

/* --- Clases Personalizadas del Tema --- */

/* Navegación con efecto de cristal */
.nav-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Overlay del Hero Section */
.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.85),
        rgba(15, 23, 42, 0.65)
    );
}

/* Ajuste de scroll para anclas (evita que el menú tape el título) */
.scroll-mt-20 {
    scroll-margin-top: 5rem;
}

/* Animaciones suaves */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- Compatibilidad con WordPress Core --- */

/* Alineación de imágenes y bloques */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }

/* Ajuste para la barra de administración de WP */
body.admin-bar .fixed {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .fixed {
        top: 46px;
    }
}

/* Captions */
.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 5px 0 0;
}

/* Estilos para formularios (buscado por WP) */
input[type="text"], 
input[type="email"], 
textarea {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem;
    width: 100%;
    transition: border-color 0.2s;
}

input[type="text"]:focus, 
input[type="email"]:focus {
    outline: none;
    border-color: var(--brand-accent);
}