:root {
    --primary: #1a1a1a;
    --secondary: #ff4d4d;
    --accent: #00d2ff;
    --light: #f4f4f4;
    --white: #ffffff;
    --dark: #0a0a0a;
    --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(--primary);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Top Ticker */
.top-ticker {
    background: var(--dark);
    color: var(--white);
    height: 35px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: hidden;
    font-size: 0.85rem;
    white-space: nowrap;
}

.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: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 35px;
    z-index: 999;
    padding: 10px 0;
}

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

.logo img {
    height: 40px;
    transition: var(--transition);
}

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

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

.nav-links li a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    padding: 10px 15px;
    transition: var(--transition);
}

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

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

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #e0e0e0 100%);
}

.hero-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: #d43f3f;
    transform: translateY(-3px);
}

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

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

/* Intro Cards */
.section-title {
    text-align: center;
    margin: 60px 0 40px;
}

.section-title h2 {
    font-size: 2.5rem;
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 10px auto;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

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

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

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

/* Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.work-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.work-item img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.work-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.work-item:hover .overlay {
    opacity: 1;
}

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

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

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

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary);
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 10px;
}

.footer-links a, .footer-legal a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1001;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    display: none; /* Controlled by JS */
}

.cookie-btns button {
    padding: 8px 20px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-cookie-accept {
    background: var(--secondary);
    color: #fff;
    border: none;
}

.btn-cookie-reject {
    background: #eee;
    border: 1px solid #ccc;
}

/* Page Content Common */
.page-content {
    padding: 60px 20px;
    min-height: 60vh;
}

.page-content h1 {
    font-size: 3rem;
    margin-bottom: 30px;
}

.img-fluid {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.text-block {
    font-size: 1.1rem;
    max-width: 800px;
}

.text-block h2 {
    margin: 30px 0 15px;
}

.text-block ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Services Page Extra */
.service-detail {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
}

.service-detail.rev {
    flex-direction: row-reverse;
}

.service-img {
    flex: 1;
}

.service-img img {
    width: 100%;
    border-radius: 15px;
}

.service-info {
    flex: 1.5;
}

/* Contact Page Extra */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

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

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

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

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.info-item i {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* Actualidad Page Extra */
.timeline {
    margin-top: 40px;
    border-left: 4px solid var(--secondary);
    padding-left: 20px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
}

.year {
    font-weight: 900;
    color: var(--secondary);
    display: block;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

/* Legal Texts */
.legal-header {
    background: #eee;
    padding: 10px 0;
}

.legal-text {
    max-width: 900px;
    margin-bottom: 100px;
}

.legal-text h2 {
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .work-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simple for now, toggleable with JS */
    }
    .menu-toggle {
        display: block;
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .service-detail, .service-detail.rev {
        flex-direction: column;
    }
}