/* ============================================
   PREVENCIÓN ACOSO SEXUAL - ESTILO MODERNO
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5490;
    --secondary-color: #d32f2f;
    --light-bg: #f5f5f5;
    --dark-text: #333333;
    --white: #ffffff;
    --border-color: #dddddd;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--light-bg);
}

/* ============================================
   HEADER & NAVEGACIÓN
   ============================================ */

header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    display: none;
}

.contact-info {
    display: flex;
    gap: 30px;
    align-items: center;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

nav {
    background-color: var(--primary-color);
    padding: 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

nav li {
    flex: 1;
    text-align: center;
}

nav a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 15px 20px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

nav a:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d3a6d 100%);
    color: var(--white);
    padding: 80px 40px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* ============================================
   SECCIONES PRINCIPALES
   ============================================ */

section {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}

.section-subtitle {
    font-size: 18px;
    color: var(--dark-text);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   GRID DE SERVICIOS
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.service-card ul {
    margin-top: 15px;
    margin-left: 20px;
    font-size: 14px;
    color: #666;
}

.service-card li {
    margin-bottom: 8px;
}

/* ============================================
   MARCO LEGAL
   ============================================ */

.legal-section {
    background-color: var(--white);
    border-left: 5px solid var(--secondary-color);
    padding: 30px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.legal-section h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.legal-section p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* ============================================
   FORMULARIO DE CONTACTO
   ============================================ */

.contact-form {
    max-width: 600px;
    margin: 40px auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 84, 144, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.form-group button:hover {
    background-color: #0d3a6d;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p,
.footer-section a,
.footer-section li {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    opacity: 0.8;
}

/* ============================================
   TABLA DE CONTENIDOS
   ============================================ */

.content-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-table thead tr {
    background-color: var(--primary-color);
    color: var(--white);
}

.content-table th,
.content-table td {
    padding: 15px;
    text-align: left;
    font-size: 14px;
}

.content-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.content-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* ============================================
   ALERTAS
   ============================================ */

.alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 5px;
    border-left: 5px solid;
}

.alert-info {
    background-color: #e3f2fd;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: var(--secondary-color);
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .btn-primary, .btn-secondary {
        display: block;
        margin: 10px 0;
    }

    section {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 20px;
    }

    .hero h2 {
        font-size: 22px;
    }

    .section-title {
        font-size: 20px;
    }
}


/* ============================================
   LEGAL DROPDOWN NAV
   ============================================ */
.nav-legal-drop {
    position: relative;
    flex: none;
}
.nav-legal-toggle {
    align-items: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
}
.nav-legal-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: #fff;
    border: 1px solid #dde3ee;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0,0,0,.13);
    z-index: 9999;
}
.nav-legal-drop:hover .nav-legal-menu,
.nav-legal-drop:focus-within .nav-legal-menu {
}
.nav-legal-menu li {
}
.nav-legal-menu li a {
    align-items: center;
    gap: 10px;
    color: #222 !important;
    transition: background .15s;
    text-decoration: none;
    line-height: 1.3;
}
.nav-legal-menu li a:hover {
    background: #eef4ff !important;
    color: #1a5490 !important;
}
.nl-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 26px;
    text-align: center;
}
.nl-text small {
    display: block;
    font-size: .7rem;
    color: #888;
    font-weight: 400;
}
.nl-text strong {
    font-size: .85rem;
    font-weight: 600;
    color: inherit;
}
@media (max-width: 768px) {
    .nav-legal-drop { width: 100%; }
    .nav-legal-menu {
    }
    .nav-legal-menu li a { color: #fff !important; }
}
