@charset "UTF-8";

:root {
    --primary-color: #0b2545;
    --secondary-color: #0d3b66; /* Azul más intenso solicitado */
    --accent-color: #0056b3;    /* Azul de menú más intenso */
    --accent-hover: #004085;
    --text-dark: #1d2d44;
    --text-light: #f4f5f7;
    --bg-light: #f8f9fa;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 15px 35px rgba(0, 86, 179, 0.2);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Top Bar Info */
.top-bar {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 8px 5%;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 15px;
}

/* Header & Navigation */
header {
    background: #ffffff;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 70px;
    height: auto;
    transition: var(--transition-smooth);
}

.logo img:hover {
    transform: scale(1.03);
}

/* Nav Menus - Rounded & Shadowed */
nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition-smooth);
}

nav ul li a:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
    transform: translateY(-2px);
}

/* Dropdown menus - Beautiful rounded and shadow */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 260px;
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--card-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition-smooth);
}

nav ul li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown li a {
    border-radius: 10px;
    padding: 12px 15px;
    font-weight: 500;
}

.dropdown li a:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(13, 59, 102, 0.2);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Carousel Section */
.carousel-container {
    position: relative;
    max-width: 100%;
    height: 450px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #000;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11,37,69,0.85) 0%, rgba(13,59,102,0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
    padding: 0 20px;
}

.carousel-overlay h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.carousel-overlay p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Carousel Buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: bold;
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    user-select: none;
    transition: var(--transition-smooth);
    z-index: 10;
}

.next {
    right: 20px;
}

.prev {
    left: 20px;
}

.prev:hover, .next:hover {
    background-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 86, 179, 0.5);
}

/* Carousel Dots */
.dot-container {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.4);
    border-radius: 50%;
    display: inline-block;
    transition: var(--transition-smooth);
}

.active-dot, .dot:hover {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* Main Content Layout */
.container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* Grid Cards with Shadows and rounded features */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.02);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(0, 86, 179, 0.3);
}

.card h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    transition: var(--transition-smooth);
}

.card:hover h3 {
    color: var(--accent-color);
}

.card p {
    color: #555;
    font-size: 1rem;
}

/* Highlight Box */
.highlight-box {
    background: #ffffff;
    border-left: 6px solid var(--accent-color);
    padding: 30px;
    border-radius: 0 20px 20px 0;
    box-shadow: var(--card-shadow);
    margin-bottom: 40px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 50px 5% 20px 5%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffffff;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
    display: inline-block;
}

.footer-col p, .footer-col li {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 10px;
    list-style: none;
}

.footer-col a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-col a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Mobile Optimization Rules */
@media (max-width: 992px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 25px;
    }

    nav {
        width: 100%;
        display: none;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }

    nav ul li a {
        border-radius: 12px;
        width: 100%;
    }

    .dropdown {
        position: relative;
        top: 0;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: rgba(0,0,0,0.02);
        margin-left: 15px;
        padding-left: 10px;
        display: none;
    }

    nav ul li:hover .dropdown {
        display: block;
    }
    
    .carousel-container {
        height: 350px;
    }

    .carousel-overlay h1 {
        font-size: 1.8rem;
    }

    .carousel-overlay p {
        font-size: 1rem;
    }
}
