670 lines
12 KiB
CSS
670 lines
12 KiB
CSS
/* ============================================
|
|
ESTILOS MEJORADOS PARA TARJETAS DE VUELOS
|
|
============================================ */
|
|
|
|
.vuelos-section {
|
|
padding: 120px 24px;
|
|
max-width: 1440px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Títulos de sección */
|
|
.block-title {
|
|
text-align: center;
|
|
margin-bottom: 60px;
|
|
}
|
|
|
|
.section-badge {
|
|
display: inline-block;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 3px;
|
|
color: var(--accent);
|
|
background: rgba(4, 205, 255, 0.1);
|
|
padding: 6px 16px;
|
|
border-radius: 50px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: clamp(2rem, 4vw, 3rem);
|
|
font-weight: 800;
|
|
background: linear-gradient(135deg, var(--text-primary), var(--accent));
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.section-description {
|
|
font-size: 1.1rem;
|
|
color: var(--text-secondary);
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Grid de tarjetas */
|
|
.flights-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
|
|
gap: 32px;
|
|
}
|
|
|
|
/* Tarjeta principal */
|
|
.flight-card {
|
|
position: relative;
|
|
background: var(--secondary);
|
|
border-radius: 28px;
|
|
overflow: hidden;
|
|
transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.flight-card:hover {
|
|
transform: translateY(-12px);
|
|
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
/* Badges */
|
|
.flight-card__badge {
|
|
position: absolute;
|
|
top: 20px;
|
|
left: 20px;
|
|
z-index: 10;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 16px;
|
|
border-radius: 50px;
|
|
color: white;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
backdrop-filter: blur(10px);
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
|
|
animation: slideInLeft 0.4s ease;
|
|
}
|
|
|
|
.flight-card__badge i {
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.flight-card__discount {
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 20px;
|
|
z-index: 10;
|
|
background: linear-gradient(135deg, #ff4757, #ff6b81);
|
|
border-radius: 50%;
|
|
width: 65px;
|
|
height: 65px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-weight: 800;
|
|
box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
|
|
animation: bounceIn 0.5s ease;
|
|
}
|
|
|
|
.flight-card__discount span {
|
|
font-size: 1.2rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.flight-card__discount small {
|
|
font-size: 0.7rem;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* Imagen */
|
|
.flight-card__image {
|
|
position: relative;
|
|
height: 260px;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
background: linear-gradient(90deg, #1a1d23 25%, #2a2e38 50%, #1a1d23 75%);
|
|
background-size: 200% 100%;
|
|
animation: skeleton-pulse 1.5s infinite;
|
|
}
|
|
|
|
@keyframes skeleton-pulse {
|
|
0% {
|
|
background-position: -200% 0;
|
|
}
|
|
|
|
100% {
|
|
background-position: 200% 0;
|
|
}
|
|
}
|
|
|
|
.flight-card__image img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
opacity: 0;
|
|
}
|
|
|
|
.flight-card__image img.loaded {
|
|
opacity: 1;
|
|
animation: none;
|
|
}
|
|
|
|
.flight-card:hover .flight-card__image img {
|
|
transform: scale(1.08);
|
|
}
|
|
|
|
/* Overlay */
|
|
.flight-card__overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
backdrop-filter: blur(5px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.flight-card:hover .flight-card__overlay {
|
|
opacity: 1;
|
|
}
|
|
|
|
.flight-card__quick-view {
|
|
background: linear-gradient(135deg, var(--accent), #0099cc);
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 50px;
|
|
color: white;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
transform: translateY(20px);
|
|
opacity: 0;
|
|
}
|
|
|
|
.flight-card:hover .flight-card__quick-view {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
|
|
.flight-card__quick-view:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 5px 20px rgba(4, 205, 255, 0.4);
|
|
}
|
|
|
|
/* Rating */
|
|
.flight-card__rating {
|
|
position: absolute;
|
|
bottom: 15px;
|
|
right: 15px;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
backdrop-filter: blur(10px);
|
|
padding: 6px 12px;
|
|
border-radius: 50px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 0.85rem;
|
|
z-index: 5;
|
|
}
|
|
|
|
.flight-card__rating i {
|
|
color: #ffc107;
|
|
}
|
|
|
|
.flight-card__rating span {
|
|
color: white;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.flight-card__rating small {
|
|
color: rgba(255, 255, 255, 0.7);
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
/* Contenido */
|
|
.flight-card__content {
|
|
padding: 24px;
|
|
}
|
|
|
|
/* Categoría */
|
|
.flight-card__category {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.category-tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: rgba(4, 205, 255, 0.1);
|
|
padding: 5px 12px;
|
|
border-radius: 50px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.duration-tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: var(--surface-light);
|
|
padding: 5px 12px;
|
|
border-radius: 50px;
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Título */
|
|
.flight-card__title {
|
|
font-size: 1.35rem;
|
|
font-weight: 700;
|
|
margin-bottom: 12px;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.flight-card__title a {
|
|
color: var(--text-primary);
|
|
text-decoration: none;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.flight-card__title a:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* Descripción */
|
|
.flight-card__description {
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
line-height: 1.5;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
/* Horario */
|
|
.flight-card__schedule {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 16px;
|
|
padding: 8px 12px;
|
|
background: var(--surface-light);
|
|
border-radius: 12px;
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.flight-card__schedule i {
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* Incluye */
|
|
.flight-card__includes {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.include-item {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: var(--surface-light);
|
|
padding: 5px 10px;
|
|
border-radius: 50px;
|
|
font-size: 0.7rem;
|
|
color: var(--text-secondary);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.include-item i {
|
|
color: #4caf50;
|
|
font-size: 0.65rem;
|
|
}
|
|
|
|
.include-item:hover {
|
|
background: var(--accent);
|
|
color: white;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.include-item:hover i {
|
|
color: white;
|
|
}
|
|
|
|
/* Precios */
|
|
.flight-card__prices {
|
|
background: linear-gradient(
|
|
135deg,
|
|
rgba(4, 205, 255, 0.05),
|
|
rgba(0, 136, 204, 0.05)
|
|
);
|
|
border-radius: 16px;
|
|
padding: 16px;
|
|
margin-bottom: 20px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.prices-wrapper {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.price-old {
|
|
text-decoration: line-through;
|
|
color: #ff6b81;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.price-current {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 4px;
|
|
}
|
|
|
|
.price-current .currency {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.price-current .amount {
|
|
font-size: 2rem;
|
|
font-weight: 800;
|
|
background: linear-gradient(135deg, var(--accent), #0099cc);
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
}
|
|
|
|
.price-current .period {
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.price-savings {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 0.8rem;
|
|
color: #4caf50;
|
|
padding-top: 8px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
/* Meta información */
|
|
.flight-card__meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
margin-bottom: 20px;
|
|
padding: 12px 0;
|
|
border-top: 1px solid var(--border);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.meta-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.meta-item i {
|
|
color: var(--accent);
|
|
width: 16px;
|
|
}
|
|
|
|
/* Botones de acción */
|
|
.flight-card__actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
.btn-inquire {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 12px 16px;
|
|
background: var(--surface-light);
|
|
border: 1px solid var(--border);
|
|
border-radius: 50px;
|
|
color: var(--text-primary);
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-inquire:hover {
|
|
background: var(--surface);
|
|
border-color: var(--accent);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.btn-book {
|
|
flex: 1.5;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 12px 20px;
|
|
background: linear-gradient(135deg, var(--accent), #0099cc);
|
|
border: none;
|
|
border-radius: 50px;
|
|
color: white;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.btn-book::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 0;
|
|
height: 0;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.3);
|
|
transform: translate(-50%, -50%);
|
|
transition:
|
|
width 0.5s,
|
|
height 0.5s;
|
|
}
|
|
|
|
.btn-book:active::before {
|
|
width: 200px;
|
|
height: 200px;
|
|
}
|
|
|
|
.btn-book:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 20px rgba(4, 205, 255, 0.4);
|
|
gap: 12px;
|
|
}
|
|
|
|
.btn-book i:last-child {
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.btn-book:hover i:last-child {
|
|
transform: translateX(4px);
|
|
}
|
|
|
|
/* No flights */
|
|
.no-flights {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
background: var(--secondary);
|
|
border-radius: 28px;
|
|
}
|
|
|
|
.no-flights__icon {
|
|
font-size: 4rem;
|
|
color: var(--accent);
|
|
margin-bottom: 20px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.no-flights h3 {
|
|
font-size: 1.5rem;
|
|
margin-bottom: 12px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.no-flights p {
|
|
color: var(--text-secondary);
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.btn-contact {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 12px 28px;
|
|
background: linear-gradient(135deg, var(--accent), #0099cc);
|
|
border: none;
|
|
border-radius: 50px;
|
|
color: white;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-contact:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 20px rgba(4, 205, 255, 0.4);
|
|
}
|
|
|
|
/* Animaciones */
|
|
@keyframes slideInLeft {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-30px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
@keyframes bounceIn {
|
|
0% {
|
|
opacity: 0;
|
|
transform: scale(0);
|
|
}
|
|
|
|
50% {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
100% {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 1024px) {
|
|
.flights-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
|
|
gap: 24px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.vuelos-section {
|
|
padding: 60px 16px;
|
|
}
|
|
|
|
.flights-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 24px;
|
|
}
|
|
|
|
.flight-card__image {
|
|
height: 220px;
|
|
}
|
|
|
|
.flight-card__content {
|
|
padding: 20px;
|
|
}
|
|
|
|
.flight-card__title {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.flight-card__actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.btn-inquire,
|
|
.btn-book {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.flight-card__discount {
|
|
width: 55px;
|
|
height: 55px;
|
|
}
|
|
|
|
.flight-card__discount span {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.price-current .amount {
|
|
font-size: 1.6rem;
|
|
}
|
|
}
|
|
|
|
/* Modo oscuro/claro */
|
|
.light-mode .flight-card {
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.light-mode .flight-card:hover {
|
|
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
/* Reducción de movimiento */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.flight-card,
|
|
.flight-card__image img,
|
|
.btn-inquire,
|
|
.btn-book {
|
|
transition: none;
|
|
}
|
|
|
|
.flight-card:hover {
|
|
transform: none;
|
|
}
|
|
}
|