/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #4B4B53;
}

/* UTILIDADES */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 60px 0;
    text-align: center;
}

/* BOTONES */
.btn-primary, .btn-secondary, .btn-cta {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #4B4B53; /* Azul de vela */
    color: white;
    border: 2px solid #007bff;
}

.btn-primary:hover {
    background-color: #4B4B53;
}

.btn-secondary {
    background-color: transparent;
    color: #4B4B53;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background-color: #4B4B53;
}

.btn-cta {
    background-color: #4B4B535; /* Verde para la llamada a la acción */
    color: white;
    border: none;
}

.btn-cta:hover {
    background-color: #4B4B53;
}

/* HEADER */
.header {
    background-color: #4B4B53;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
}

/* ESTILOS PARA LA IMAGEN DEL LOGO EN EL HEADER (AJUSTADOS A 25px x 25px) */
.header-logo-img-link {
    display: flex; 
    align-items: center;
    margin-right: 15px; 
    text-decoration: none; 
}

.header-logo-img {
    height: 100px; /* Altura de 25px (aprox. 2cm) */
    width: 100px;  /* Ancho de 25px (aprox. 2cm) */
    max-height: 100px; /* Mantenemos el max-height para consistencia */
    border-radius: 5px; 
    object-fit: cover; /* Asegura que la imagen cubra el área sin deformarse, cortando si es necesario */
}

.logo {
    color: #007bff;
    font-size: 1.8em;
    font-weight: 700;
    margin-right: auto; 
}

.header nav ul {
    list-style: none;
    display: flex;
}

.header nav ul li {
    margin-left: 20px;
}

.header nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    transition: color 0.3s;
}

.header nav ul li a:not(.btn-cta):hover {
    color: #007bff;
}

/* HERO SECTION */
.hero {
    background: url('placeholder_vela.jpg') no-repeat center center/cover;
    color: #4B4B53;
    padding: 150px 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* CURSOS SECTION */
.cursos-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.curso-card {
    background-color: #4B4B53;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.curso-card h4 {
    color: #007bff;
    margin-bottom: 10px;
}

/* NOSOTROS SECTION */
.nosotros-bg {
    background-color: #4B4B53;
}

/* CONTACTO SECTION */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 30px auto 15px;
    text-align: left;
}

.contact-form input, .contact-form textarea, .contact-form select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.whatsapp-info {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

/* FOOTER */
.footer {
    background-color: #4B4B53;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer p {
    margin: 5px 0;
}

/* ESTILOS DE REDES SOCIALES (Instagram y Facebook) */
.social-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.2em; 
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.social-btn:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.instagram-btn {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.facebook-btn {
    background-color: #4B4B53;
}

/* ESTILO DEL BOTÓN FLOTANTE DE WHATSAPP */
.whatsapp-float {
    position: fixed; 
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #4B4B53;
    color: white;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.whatsapp-float:hover {
    background-color: #4B4B53;
    transform: scale(1.05);
}

.whatsapp-icon {
    font-size: 1.5em; 
}


/* Media Queries para Responsividad */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-logo-img-link {
        margin-right: 0; 
        margin-bottom: 10px; 
    }
    
    .header-logo-img {
        height: 25px; /* Mantiene el tamaño pequeño en móviles */
        width: 25px; 
    }

    .logo {
        margin-right: 0; 
        margin-bottom: 10px;
    }

    .header nav ul {
        margin-top: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .header nav ul li {
        margin: 5px 10px;
    }

    .hero {
        padding: 100px 20px;
    }
    
    .hero h2 {
        font-size: 2.5em;
    }

    .cursos-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        width: 100px;
        height: 100px;
        bottom: 15px;
        right: 15px;
    }
}