/* =========================================
   BASE / RESET
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f7f7f7;
    color: #333;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   HEADER
========================================= */

.header {
    background: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

.logo span {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

/* NAV */
.nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav a {
    font-weight: 500;
    color: #333;
}

/* BUTTONS */
.btn-primary {
    background: #ff4b2b;
    padding: 10px 18px;
    border-radius: 8px;
    color: white !important;
    font-weight: 600;
    transition: background 0.2s;
}

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

.btn-secondary {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 14px;
    background: #0066ff;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #004ecc;
}

/* =========================================
   HERO SECTION
========================================= */

.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to bottom right, #ff4b2b, #ffbb00);
    color: white;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

/* =========================================
   EVENTS SECTION
========================================= */

.events-section {
    padding: 40px 20px;
}

.events-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 26px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* EVENT CARDS */
.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform .25s ease;
}

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

.event-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.event-content {
    padding: 20px;
}

.event-content h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.event-content .date {
    color: #777;
    font-size: 14px;
    margin: 8px 0;
}

.no-events {
    text-align: center;
    font-size: 18px;
    color: #666;
}

/* =========================================
   FOOTER
========================================= */

.footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: #ddd;
    margin-top: 40px;
}

/* =========================================
   MOBILE RESPONSIVE FIXES
========================================= */

/* 📱 MOBILE — Ajusta header para que NO se monte nada */
@media (max-width: 480px) {

    .header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 12px;
    }

    .logo img {
        height: 40px;
    }

    .logo span {
        font-size: 18px;
    }

    .nav {
        flex-direction: row;
        gap: 10px;
    }

    .nav a {
        font-size: 14px;
    }

    .btn-primary {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 768px) {

    .hero h1 {
        font-size: 26px;
    }

    .events-section h2 {
        font-size: 22px;
    }
}


/* =========================================
   CARRUCEL
========================================= */
.acp-slide {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: auto;
}

.acp-img {
    width: 100%;
    height: 550px;  
    border-radius: 12px;
    object-fit: contain;
    background-color: #000; 
}

.acp-overlay {
    position: absolute;
    bottom: 0;
    padding: 30px;
    width: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,0));
    color: white;
    border-radius: 12px;
}

.acp-btn {
    background:#007bff;
    color:white;
    padding:10px 18px;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
}

.control-acp {
    width: 60px;
}

.arrow-custom {
    font-size: 38px;
    color: white;
    text-shadow: 0 0 5px black;
}

.acp-btn {
      background: linear-gradient(to right, #ffe95a, #ff9a00, #ff3b3b);
      border: none;
      color: #111;
      font-weight: 600;
      padding: 10px 20px;
      border-radius: 8px;
      transition: 0.3s;
    }
    
    .acp-btn:hover {
      filter: brightness(1.1);
    }