:root {
    --primary-blue: #004a99;
    --dark-blue: #002d5e;
    --accent-gold: #c5a059;
    --light-gray: #f4f4f4;
    --dark-gray: #333;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Ticker Bar */
.top-ticker {
    background: var(--dark-blue);
    color: var(--white);
    padding: 10px 0;
    white-space: nowrap;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 1001;
    font-size: 0.9rem;
    font-weight: 500;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Header & Nav */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 40px;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-blue);
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

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

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 600;
    transition: var(--transition);
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-blue);
}

.social-icons a {
    color: var(--primary-blue);
    margin-left: 15px;
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 45, 94, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

.hero-overlay h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-overlay p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn-primary {
    background: var(--accent-gold);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #b08e48;
}

.btn-secondary {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-blue);
}

/* Grid Cards */
.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
}

.card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

/* Split Section */
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 5rem 2rem;
}

.image-content img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background: #111;
    color: #ccc;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-links ul {
    list-style: none;
    margin-top: 1rem;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    background: #000;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
}

/* Floating Elements */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    z-index: 1000;
}

.whatsapp-float img {
    width: 100%;
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner p {
    font-size: 0.9rem;
    margin-right: 15px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-cookie-accept {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-cookie-reject {
    background: #ddd;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* Form Styles */
.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.map-container {
    width: 100%;
    height: 400px;
    background: #eee;
    border-radius: 10px;
    margin-top: 2rem;
}

/* Actualidade Timeline */
.timeline {
    margin-top: 3rem;
}

.timeline-item {
    margin-bottom: 2rem;
    padding-left: 20px;
    border-left: 3px solid var(--primary-blue);
}

.timeline-item h4 {
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .content-split, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-overlay h1 { font-size: 2rem; }
    .nav-menu { display: none; }
}