/* --- Reset y Tipografía Básica --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    scroll-behavior: smooth;

/*    padding-top: 80px; /* Ajustado para que el header fijo no tape el contenido */
}

/* --- Estilos de la Barra de Navegación (Header) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background-color: #000000;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 40px;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.8em;
    font-weight: bold;
}

/* NAV */
.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav > ul > li {
    position: relative;
    margin-left: 20px;
}

.nav a {
    display: block;
    color: #ffff;
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

.nav a:hover {
    background-color: #5f656b;
    border-radius: 10px;
    color: #004a8f;
    font-size: 19px;
    font-weight: bolder;
}

/* --- Submenú --- */
.submenu {
    display: none; /* Oculto por defecto */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #d3d3d3;
    min-width: 200px;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #ffcc00;
}

.submenu li {
    border-bottom: 1px solid #eee;
}

.submenu a {
    color: #333;
    padding: 12px 20px;
}

.submenu a:hover {
    background-color: #f0f0f0;
    color: #004a8f;
}

/* ❌ Evitar que Chrome/Android abra submenú con hover automáticamente */
.nav li:hover .submenu {
    display: none !important;
}

/* ✔ Activación manual por JavaScript */
.show-submenu {
    display: block !important;
}

/* --- HERO --- */
.hero {
    background: #004a8f; 
    color: white;
    text-align: center;
    padding: 100px 20px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.hero a {
    background-color: #ffcc00; 
    color: #333; 
    padding: 10px 20px; 
    text-decoration: none; 
    border-radius: 5px; 
    font-weight: bold; 
    align-self: center;
    transition: background-color 0.3s;
}

.hero a:hover {
    background-color: #e6b800;
}

/* --- Secciones Generales --- */
.main-content, .about-us-section, .contact-section {
    padding: 40px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    color: #004a8f;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

/* --- Nosotros --- */
.about-us-section {
    padding: 60px 50px;
    margin: 50px auto;
    text-align: center;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.about-us-section h3 {
    color: #ffcc00;
    font-size: 1.5em;
    margin-top: 40px;
    margin-bottom: 20px;
}

.philosophy p {
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.values {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 30px;
}

.value-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.value-item h4 {
    color: #004a8f;
    margin-top: 0;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* --- Contacto --- */
.contact-section {
    max-width: 800px;
    margin: 50px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.contact-form {
    display: grid;
    gap: 20px;
    margin-top: 30px;
    padding: 0 20px 20px 20px; 
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
    color: #004a8f;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Estilo general para inputs y selects */
form div input,
form div select {
    width: 100%;
    padding: 12px;           /* Igual que textarea */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

/* Focus para resaltar al hacer clic */
form div input:focus,
form div select:focus {
    border-color: #004a8f;      /* Mismo color de enfoque que tu textarea */
    outline: none;
    box-shadow: 0 0 5px rgba(0,74,143,0.3);
}

/* Opcional: estilo para el placeholder */
form div input::placeholder {
    color: #999;
    font-style: italic;
}


.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    background-color: #004a8f;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #003366;
}

/* --- Servicios --- */
.service-content {
    padding: 60px 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-content h1 {
    color: #004a8f;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.service-category {
    background-color: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #ffcc00;
}

.service-category h2 {
    color: #004a8f;
    font-size: 1.8em;
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.service-category ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.service-category li {
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #004a8f;
    font-weight: 500;
}

/* --- Footer --- */
.footer {
    background-color: #333;
    color: white;
    padding: 25px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.footer-contact p,
.footer-info p {
    margin: 5px 0;
    font-size: 15px;
}

.footer-contact i {
    margin-right: 8px;
    color: #ffcc00;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: white;
    font-size: 15px;
    transition: color 0.3s, transform 0.3s;
}

.footer-social a:hover {
    color: #ffcc00;
    transform: scale(1.2);
}

/* Responsive */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

