* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f03d39;
    --primary-dark: #d63430;
    --text-dark: #2c3e50;
    --text-light: #555;
    --bg-light: #f8f9fa;
    --bg-gray: #f4f4f4;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: "Open Sans", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    scroll-behavior: smooth;
}

header {
    background: linear-gradient(135deg, #fff 0%, var(--bg-light) 100%);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.navbar {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    height: 85px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
    flex-shrink: 0;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo img {
    height: 190px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}

.logo:hover img {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}

.logo-text {
    font-family: "Oswald", Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, #2c3e50 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.menu-toggle {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    flex-direction: column;
    gap: 6px;
    padding: 12px 20px;
    z-index: 101;
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: auto;
    border-radius: 8px;
}

.menu-toggle:hover {
    background-color: var(--bg-light);
    transform: scale(1.05);
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: linear-gradient(90deg, var(--text-dark) 0%, var(--primary-color) 100%);
    transition: var(--transition);
    display: block;
    border-radius: 3px;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--primary-color);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--primary-color);
}

nav {
    position: absolute;
    top: 95px;
    right: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--bg-light) 100%);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    z-index: 100;
    border-radius: 12px;
    border: 1px solid transparent;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

nav.active {
    max-height: 350px;
    border: 1px solid var(--border-color);
    opacity: 1;
    pointer-events: auto;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
}

nav li {
    border-bottom: 1px solid var(--border-color);
}

nav li:last-child {
    border-bottom: none;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-family: "Open Sans", Arial, sans-serif;
    font-weight: 600;
    transition: var(--transition);
    display: block;
    padding: 14px 24px;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    transform: translateX(-4px);
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-color);
    background-color: rgba(240, 61, 57, 0.05);
    padding-left: 28px;
}

nav a:hover::before {
    transform: translateX(0);
}

.search-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b5f 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.search-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 16px 20px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-family: "Open Sans", Arial, sans-serif !important;
    color: var(--text-dark) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
    transition: var(--transition) !important;
}

.search-input:focus {
    outline: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
}

.search-input::placeholder {
    color: #aaa !important;
}

.hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(240, 61, 57, 0.4) 100%), url("../img/header-new.jpg") center/cover no-repeat;
    height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1));
}

.hero h1 {
    font-family: "Lato", Arial, sans-serif;
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    padding-bottom: 20px;
    border-bottom: 5px solid rgba(255, 44, 44, 0.8);
    max-width: 140%;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-family: "Oswald", Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
}

section.light {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f0f4f8 100%);
}

.section-title {
    text-align: center;
    font-family: "Oswald", Arial, sans-serif;
    font-size: 40px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-family: "Oswald", Arial, sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-text h2 {
    font-family: "Oswald", Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
    text-align: justify;
    color: var(--text-light);
}

.content-text ul {
    list-style: none;
    margin-left: 0;
    margin-top: 20px;
}

.content-text li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--text-light);
    padding-left: 30px;
    position: relative;
}

.content-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    object-fit: cover;
}

.content-image:hover img {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(240, 61, 57, 0.2);
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 14px 36px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: "Oswald", Arial, sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 4px 16px rgba(240, 61, 57, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(240, 61, 57, 0.4);
}

.btn:hover::before {
    left: 100%;
}

footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    padding: 60px 0 30px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100px;
    width: 200px;
    height: 200px;
    background: rgba(240, 61, 57, 0.1);
    border-radius: 50%;
}

footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -100px;
    width: 200px;
    height: 200px;
    background: rgba(240, 61, 57, 0.08);
    border-radius: 50%;
}

footer p {
    margin-bottom: 12px;
    font-size: 14px;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

footer p:first-child {
    font-weight: 600;
    color: #ecf0f1;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(240, 61, 57, 0.2);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.social-links a:hover {
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 8px 20px rgba(240, 61, 57, 0.35);
}

.social-links a:hover::before {
    left: 0;
}

.social-links a img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: var(--transition);
    filter: brightness(0) saturate(100%) invert(16%) sepia(67%) saturate(2450%) hue-rotate(356deg) brightness(102%) contrast(102%);
}

.social-links a:hover img {
    filter: brightness(0) saturate(100%) invert(100%);
}

/* Cards y elementos adicionales */
.card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    font-family: "Oswald", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 42px;
        max-width: 90%;
    }

    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    .navbar {
        padding: 0 15px;
        height: 70px;
    }

    .logo-text {
        font-size: 18px;
        letter-spacing: 0.5px;
    }

    .logo img {
        height: 55px;
    }

    nav {
        top: 80px;
        right: 15px;
    }

    .menu-toggle {
        padding: 10px 12px;
    }

    .menu-toggle span {
        width: 22px;
        height: 2.5px;
    }

    .hero {
        height: 400px;
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 32px;
        padding-bottom: 15px;
        max-width: 100%;
        border-bottom: 4px solid rgba(255,255,255,0.8);
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .section-subtitle {
        font-size: 22px;
    }

    .content-grid {
        gap: 30px;
        margin-top: 40px;
    }

    .content-text h2 {
        font-size: 22px;
    }

    .content-text p {
        font-size: 15px;
    }

    section {
        padding: 60px 0;
    }

    .search-section {
        padding: 30px 0;
    }

    .container {
        padding: 0 15px;
    }

    .card {
        padding: 30px 20px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }

    footer {
        padding: 40px 0 20px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 14px;
        letter-spacing: 0.25px;
    }

    .logo img {
        height: 45px;
    }

    .menu-toggle {
        padding: 8px 10px;
    }

    .menu-toggle span {
        width: 20px;
        height: 2px;
    }

    .hero {
        height: 300px;
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 22px;
        padding-bottom: 10px;
        border-bottom: 3px solid rgba(255,255,255,0.8);
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 14px;
    }

    .search-input {
        max-width: 100% !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
    }

    nav {
        right: 10px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .section-subtitle {
        font-size: 18px;
    }

    .content-grid {
        gap: 20px;
        margin-top: 30px;
    }

    .content-text h2 {
        font-size: 18px;
    }

    .content-text p {
        font-size: 14px;
        text-align: left;
    }

    .content-text li {
        font-size: 14px;
    }

    section {
        padding: 40px 0;
    }

    .container {
        padding: 0 12px;
    }

    .card {
        padding: 20px 15px;
    }

    .card h3 {
        font-size: 16px;
    }

    .card p {
        font-size: 14px;
    }

    .btn {
        display: block;
        width: 100%;
        padding: 14px 20px;
        text-align: center;
        margin-top: 15px;
    }

    footer {
        padding: 30px 0 15px;
    }

    footer p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .social-links {
        margin-top: 20px;
        gap: 15px;
    }

    .social-links a {
        width: 55px;
        height: 55px;
    }
}
