.panel-container {
    display: flex;
    height: 80vh;
    width: 100vw;
    overflow: hidden;
    background: var(--primary);
}

.panel-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.panel {
    flex: 1;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    position: relative;
    transition: flex 0.5s ease, filter 0.5s ease;
    cursor: pointer;
    clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
    margin: -5rem;
    /* sin márgenes entre paneles */
}


.panel:hover {
    flex: 1.5;
    filter: none;
    z-index: 2;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(238, 165, 83, 0.4);
    transition: background 0.3s ease;
    z-index: 1;
}

.panel:hover .overlay {
    background: rgba(0, 0, 0, 0);
}


.title {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%) skewX(5deg);
    color: white;
    font-size: 1.5rem;
    z-index: 3;
    text-align: center;
}

.title span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

/* section */
.info-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1rem;
    background-color: #fff;
}

.info-section-title {
    margin-bottom: 2rem;
}

.info-section-title h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #000;
}

.card {
    background: #fff;
    border-radius: 1rem;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon img {
    height: 48px;
    margin-bottom: 1rem;
}

.card-text {
    font-size: 1rem;
    color: #222;
    line-height: 1.5;
}

@media (max-width: 768px) {
  .panel-container {
    flex-direction: column;
    height: auto;
  }

  .panel {
    clip-path: none;
    margin: 0;
    height: 100vh;
    flex: none;
  }

  .panel-link {
    height: 100%;
  }

  .panel:hover {
    flex: none;
    filter: none;
  }

  .overlay {
    background: rgba(0, 0, 0, 0.4);
  }

  .title {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%) skewX(0deg);
    font-size: 1.2rem;
    text-align: center;
  }

  .title span {
    font-size: 1.8rem;
  }
}
