* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: linear-gradient(135deg, #0D1117, #1B1F23);
    color: #E4E4E4;
    line-height: 1.6;
    font-size: 18px;
    padding: 20px;
}

/* HEADER */
header {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('fondo-colombia.jpg') center center / cover no-repeat;
    filter: brightness(0.4);
    z-index: 0;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    flex-direction: row-reverse;
}

/* MENU DE MUSICA */
.music-player {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(20, 20, 20, 0.85);
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    z-index: 3;
    font-family: "Segoe UI", sans-serif;
    font-size: 14px;
}

.player-info {
    color: #E4E4E4;
    font-size: 14px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-controls input[type="range"] {
    width: 100px;
}

.player-controls button {
    padding: 6px 10px;
    background: #1B1B1B;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.player-controls button:hover {
    background: #333333;
    transform: scale(1.05);
}

.player-message {
    font-size: 13px;
    color: #B0B0B0;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.4s ease;
    transform: translateY(-5px);
    position: relative;
}

.player-message.show {
    opacity: 1;
    transform: translateY(0px);
}

/* Botón toggle para móviles */
.toggle-player {
    display: none;
    background: #222;
    border: none;
    color: white;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

/* HEADER TEXTOS */
.header-text {
    color: white;
    max-width: 60%;
}

.header-text h1 {
    font-size: 4rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    color: #FFFFFF;
}

.header-text p {
    font-size: 1.2rem;
    margin-top: 15px;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.7);
    color: #CCCCCC;
}

.header-text .buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.header-skin {
    max-width: 300px;
    animation: float 4s ease-in-out infinite;
}

.header-skin img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0px 8px 25px rgba(0,0,0,0.7);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.btn {
    padding: 12px 25px;
    background: linear-gradient(45deg, #2D2D2D, #1B1B1B);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #3A3A3A, #222222);
}

.btn-secondary {
    background: linear-gradient(45deg, #3A3A3A, #222222);
}

/* SECCIONES */
section {
    padding: 50px 0;
}

.about, .services {
    text-align: center;
}

.about p {
    max-width: 800px;
    margin: 20px auto;
    color: #CCCCCC;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: linear-gradient(135deg, #1C1C1C, #141414);
    padding: 20px;
    border-radius: 12px;
    width: 300px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 20px rgba(0,0,0,0.7);
}

.card h3 {
    color: #FFFFFF;
}

.card p {
    color: #CCCCCC;
}

/* FOOTER */
footer {
    background: #111827;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #9CA3AF;
}

/* ANIMACION */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlide 1s forwards;
}

@keyframes fadeSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Tablets ===== */
@media (max-width: 900px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .header-text {
        max-width: 100%;
    }
    .header-skin {
        margin-top: 20px;
    }
    .music-player {
        position: static;
        width: 90%;
        margin: 10px auto;
    }
}

/* ===== Celulares ===== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        padding: 8px;
    }

    header {
        height: auto;
        padding: 20px 0;
    }

    .header-text h1 {
        font-size: 1.8rem;
    }

    .header-text p {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-skin img {
        width: 120px;
    }

    .buttons {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .btn, .btn-secondary {
        font-size: 14px;
        padding: 8px 12px;
        width: 90%;
        text-align: center;
    }

    /* Ocultar menú de música y mostrar solo botón en móvil */
    .music-player {
        display: none !important;
    }

    .service-cards {
        flex-direction: column;
        gap: 12px;
    }

    .card {
        width: 95%;
        padding: 12px;
        font-size: 14px;
    }

    footer {
        font-size: 12px;
        padding: 12px;
    }
}
