/* Variables & Reset */
:root {
    --primary: #1a2a44;
    --secondary: #c5a059;
    --accent: #00a8a8;
    --light: #f4f7f6;
    --dark: #333;
    --white: #ffffff;
    --text: #444;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light);
}

.text-center {
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Ticker Bar */
.top-ticker {
    background: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--secondary);
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-content span {
    padding-right: 50px;
    display: inline-block;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 36px; /* Below ticker */
    z-index: 999;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo img {
    height: 45px;
}

nav ul {
    display: flex;
    gap: 25px;
}

nav ul li a {
    font-weight: 600;
    font-size: 0.95rem;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--secondary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero h1 {
    font-size: 3.5rem;
    max-width: 800px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 15px;
}

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

.btn-outline {
    border: 1px solid var(--dark);
    background: transparent;
}

.w-100 { width: 100%; }

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

.service-card i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 15px;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* Contact & Forms */
.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

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

.map-container {
    height: 300px;
    width: 100%;
    border-radius: 10px;
    margin-top: 20px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 42, 68, 0.95);
    color: var(--white);
    padding: 20px 0;
    z-index: 9999;
}

.cookie-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hidden { display: none; }

/* WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1001;
}

/* Page Headers */
.page-header {
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

/* Legal content pages */
.legal-content h1, .legal-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content p {
    margin-bottom: 15px;
}

/* Actualidad styling */
.blog-card {
    background: var(--white);
    padding: 20px;
    border-left: 4px solid var(--secondary);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.articles-grid {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    nav.show { display: block; }
    nav ul { flex-direction: column; gap: 15px; }
    .hero h1 { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .cookie-flex { flex-direction: column; gap: 15px; text-align: center; }
}