/* css/escolar.css */

/* --- Variables y Reset --- */
:root {
    --color-primary: #003366;
    /* Azul Marino */
    --color-accent: #FFCC00;
    /* Amarillo Escolar */
    --color-bg: #F5F5F5;
    /* Blanco Humo */
    --color-text: #333333;
    --color-white: #FFFFFF;
    --font-main: 'Poppins', sans-serif;
    --spacing-unit: 1rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Utilidades --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-primary:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* --- Hero Section --- */
.hero {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- How it Works --- */
.how-it-works {
    padding: 60px 0;
    background-color: var(--color-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
    padding: 20px;
}

.step-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.step-card h3 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

/* --- Form Section --- */
.upload-section {
    padding: 60px 0;
    background-color: var(--color-bg);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* --- Trust Section --- */
.trust-section {
    padding: 40px 0;
    background-color: var(--color-primary);
    color: var(--color-white);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.trust-item {
    padding: 10px;
}

.trust-item i {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 10px;
}

/* --- Footer --- */
footer {
    background-color: #1a1a1a;
    color: #888;
    padding: 20px 0;
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .form-container {
        padding: 20px;
    }
}

/* --- Estilos para Index (Home) --- */

/* Navbar */
.navbar {
    background-color: var(--color-white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -1px;
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Home Hero */
.home-hero {
    background-image: linear-gradient(135deg, var(--color-primary) 0%, #001f3f 100%);
    color: var(--color-white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.home-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.home-hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Brands Section */
.brands-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.brand-card {
    background: var(--color-bg);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.brand-logo-img {
    max-width: 150px;
    max-height: 80px;
    margin-bottom: 15px;
    object-fit: contain;
}

.brand-name {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #555;
    /* Styles simulating logos */
}

/* Brand Specific Colors (Simulation) */
.brand-card.bic .brand-name {
    color: #FFCC00;
    background: #000;
    padding: 5px 15px;
    border-radius: 5px;
}

/* BIC style */
.brand-card.artesco .brand-name {
    color: #E30613;
}

.brand-card.pelikan .brand-name {
    color: #00643A;
}

.brand-card.pasola .brand-name {
    color: #009FE3;
}

.brand-card.propel .brand-name {
    color: #FF6600;
}

.brand-card.norma .brand-name {
    color: #E30613;
    font-style: italic;
}

.brand-card p {
    font-size: 0.9rem;
    color: #888;
    margin-top: 10px;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    margin-top: 30px;
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.mt-3 {
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .home-hero h1 {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}