/* Variables de Color (Basadas en el Logo de Teenek) */
:root {
    --primary-color: #00608A; /* Azul estrella */
    --primary-dark: #004a6b;
    --text-dark: #333333; /* Color texto logo */
    --text-light: #666666;
    --bg-light: #F4F7F6;
    --white: #FFFFFF;
    --whatsapp: #25D366;
    --whatsapp-dark: #1EBE5A;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.w-100 { width: 100%; display: block; text-align: center; margin-top: 10px;}

/* Utilidades Botones */
.btn-primary, .btn-whatsapp, .btn-email {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); color: var(--white);}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); color: var(--white);}

.btn-email {
    background: var(--text-dark);
    color: var(--white);
}
.btn-email:hover { background: #000; color: var(--white); }

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.logo img {
    height: 50px;
    object-fit: contain;
}
.nav-links a {
    margin-left: 20px;
    color: var(--text-dark);
    font-weight: 500;
}
.nav-links a:hover { color: var(--primary-color); }
.mobile-menu { display: none; font-size: 1.5rem; cursor: pointer; }

/* Secciones Generales */
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    padding: 100px 0;
    text-align: center;
}
.hero h1 {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 30px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Servicios Grid */
.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
    border-bottom: 4px solid var(--primary-color);
}
.card:hover { transform: translateY(-10px); }
.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.card h3 { margin-bottom: 10px; color: var(--text-dark); }

/* Galería */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    background: var(--text-dark);
}
.img-placeholder {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
}
.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 96, 138, 0.9);
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: .5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-item:hover .overlay { height: 100%; }
.overlay span { color: white; font-weight: bold; text-align: center; padding: 20px;}

/* Recursos */
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 40px auto 0;
}
.resource-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 5px;
    color: var(--text-dark);
    font-weight: 500;
}
.resource-link i { margin-right: 15px; color: var(--primary-color); font-size: 1.2rem;}
.resource-link:hover { border-color: var(--primary-color); background: var(--bg-light);}

/* Contacto */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 40px;
}
.contact-info, .contact-form { flex: 1; min-width: 300px; }
.contact-info ul { list-style: none; margin: 20px 0; }
.contact-info li { margin-bottom: 15px; font-size: 1.1rem; }
.contact-info i { color: var(--primary-color); margin-right: 10px; width: 20px;}
.contact-info a { color: var(--text-dark); }
.contact-info a:hover { color: var(--primary-color); }
.direct-contact-btns { margin-top: 30px; }

/* Formulario */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 0 20px;
}
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;}
.footer-logo img { height: 40px; filter: brightness(0) invert(1); /* Pone el logo blanco si tiene fondo transparente */ margin-bottom: 10px; }
.footer-copy { margin-top: 20px; border-top: 1px solid #555; padding-top: 20px; width: 100%; text-align: center; font-size: 0.9rem;}

/* Botón Flotante Compartir */
.btn-share {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s, background 0.3s;
}
.btn-share:hover { transform: scale(1.1); background: var(--primary-dark); }

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Idealmente se cambia a un menú de hamburguesa con JS */
    }
    .mobile-menu { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .footer-content { flex-direction: column; text-align: center; }
}
