/* Variables CSS para facilitar la personalización */
:root {
    --primary-color: #007bff; /* Color principal de la marca */
    --secondary-color: #6c757d; /* Color secundario */
    --background-color: #f8f9fa; /* Color de fondo */
    --text-color: #343a40; /* Color del texto principal */
    --font-family: Arial, sans-serif; /* Tipo de letra */
    --nav-bg-color: #ffffff; /* Color de fondo del menú de navegación */
    --footer-bg-color: #343a40; /* Color de fondo del footer */
    --footer-text-color: #ffffff; /* Color del texto del footer */
}

/* ESTILOS GENERALES */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* HEADER - CABECERA - REMOVIDOS ESTILOS CONFLICTIVOS */
/* Se eliminaron los estilos del header para que use Tailwind CSS */

/* HERO - SECCIÓN PRINCIPAL */
.hero-section {
    background-image: url('Diseno de Páginas Web.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: white;
}

.hero-content p {
    font-size: 1.2em;
}

/* SECCIONES DE CONTENIDO */
.intro-section,
.why-essential-section,
.features-section,
.impact-section,
.complementary-services-section,
.final-cta-section {
    background-color: white;
    padding: 40px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-item {
    background-color: var(--background-color);
    padding: 20px;
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
}

/* FOOTER - PIE DE PÁGINA */
.site-footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 40px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    color: white;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: var(--footer-text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    padding-top: 20px;
}

/* RESPONSIVE DESIGN - MEDIA QUERIES */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2em;
    }
}

/* ESTILOS ESPECÍFICOS PARA PÁGINAS INDIVIDUALES */
/* Estos estilos solo se aplicarán cuando existan elementos con estas clases específicas */

/* Solo aplicar estilos de menú personalizado si NO hay Tailwind */
.custom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--nav-bg-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.custom-header .logo img {
    height: 50px;
}

.custom-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.custom-nav li {
    position: relative;
    margin-left: 20px;
}

.custom-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    padding: 10px 15px;
    display: block;
}

.custom-nav a:hover {
    color: var(--primary-color);
}

/* Estilos para menús desplegables personalizados (no Tailwind) */
.custom-dropdown {
    position: relative;
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    padding: 0.5rem 0;
    min-width: 12rem;
    z-index: 1000;
    list-style: none;
    margin: 0;
}

.custom-dropdown:hover .custom-dropdown-menu {
    display: block;
}

.custom-dropdown-menu li {
    margin: 0;
}

.custom-dropdown-menu a {
    padding: 0.5rem 1rem;
    display: block;
    color: #4b5563;
    text-decoration: none;
    transition: background-color 0.2s;
    margin: 0;
    font-weight: normal;
}

.custom-dropdown-menu a:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}