:root {
    --primary-color: #0056b3;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --accent-color: #00c2ff;
    --background-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 70px;
    height: 70px;
    margin-right: 15px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.credential-button {
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-left: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.credential-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.menu-toggle, .menu-close {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-align: center;
    padding: 12rem 0 6rem;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Main Content */
main {
    padding: 4rem 0;
    padding-top: 120px;
}

.section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 3rem;
    transition: transform 0.3s ease;
}

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

h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Cards Section - New Design */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

.card.beneficios {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.card.turismo {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

/* Slider Styles */
.slider-container {
    width: 100%;
    max-width: 800px;
    height: 400px;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
}

.slider-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    object-fit: cover;
}

.slider-image.active {
    opacity: 1;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: white;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.slider-arrow.left {
    left: 10px;
}

.slider-arrow.right {
    right: 10px;
}

/* Benefits Card Compact View */
.benefit-card-compact {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.benefit-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.benefit-card-compact .card-icon-container {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
}

.benefit-card-compact .card-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.benefit-card-compact .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.benefit-card-compact h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.benefit-card-compact .card-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.benefit-card-compact .card-highlight {
    background: #e3f2fd;
    color: var(--primary-color);
    padding: 0.6rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.benefit-card-compact .view-details-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.benefit-card-compact .view-details-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Benefit Detail Full View */
.benefit-detail {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: none;
}

.benefit-detail.expanded {
    display: block;
    animation: expandDetail 0.4s ease-out;
}

.benefit-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.benefit-header .benefit-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.benefit-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.benefit-header .benefit-category {
    opacity: 0.9;
    font-size: 0.9rem;
    font-weight: 500;
}

.benefit-content {
    padding: 2rem;
}

.benefit-highlight-box {
    background: linear-gradient(135deg, #00c2ff, #0056b3);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.close-benefit-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.close-benefit-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Benefits Grid */
.benefits-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Legacy Benefits Styles */
.benefit {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.pharmacy-list {
    display: block;
    margin-top: 10px;
}

.pharmacy-list.active {
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

.toggle-pharmacy-list {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.toggle-pharmacy-list:hover {
    background-color: #003d82;
}

/* Search Box Styles */
.search-box {
    margin-bottom: 2rem;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0,194,255,0.2);
}

.benefits-grid {
    display: grid;
    gap: 1.5rem;
}

.benefit-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.benefit-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Tourism Styles */
.tourism-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.tourism-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.tourism-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.tourism-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tourism-content {
    padding: 1.5rem;
}

.tourism-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tourism-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.tourism-discount {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Tourism Card Compact View */
.tourism-card-compact {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tourism-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tourism-card-compact .card-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.tourism-card-compact .card-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tourism-card-compact:hover .card-main-image {
    transform: scale(1.1);
}

.tourism-card-compact .discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #00c2ff, #0056b3);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.tourism-card-compact .card-location-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.tourism-card-compact .card-body {
    padding: 1.5rem;
}

.tourism-card-compact h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.tourism-card-compact .card-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tourism-card-compact .card-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tourism-card-compact .feature-tag {
    background: #e3f2fd;
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tourism-card-compact .view-details-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tourism-card-compact .view-details-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Tourism Detail Full View */
.tourism-detail {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: none;
}

.tourism-detail.expanded {
    display: block;
    animation: expandDetail 0.4s ease-out;
}

@keyframes expandDetail {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-detail-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.close-detail-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.tourism-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 2rem;
    text-align: center;
}

.tourism-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tourism-header .tourism-location {
    color: white;
    font-size: 1.1rem;
    opacity: 0.9;
}

.tourism-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
}

.tourism-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.tourism-gallery img:hover {
    transform: scale(1.05);
}

.cabin-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 86, 179, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.gallery-item {
    position: relative;
}

.tourism-info {
    padding: 2rem;
}

.benefits-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.benefits-list h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.benefits-list ul {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.benefits-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.discount-box {
    background: linear-gradient(135deg, #00c2ff, #0056b3);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 1.5rem 0;
}

.discount-box h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.discount-percentage {
    font-size: 3rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.contact-box {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.contact-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-box p {
    margin: 0.5rem 0;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 420px; /* Ajusta el ancho máximo del contenedor */
    margin: 0 auto; /* Centra el video en pantallas grandes */
    aspect-ratio: 9/16; /* Proporción de reels verticales */
    overflow: hidden;
    border-radius: 12px;
    background: #000; /* Para que no se vea vacío mientras carga */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    transform: scale(1.02); /* pequeño zoom para ajustar el embed */
}


/* Contact Form */
.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0,194,255,0.2);
}

.contact-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.contact-form button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.contact-info {
    flex: 1;
    min-width: 300px;
    margin-right: 2rem;
    padding-top: 40px;
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.map-container {
    flex: 2;
    min-width: 300px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Notification Banner */
.notification-banner {
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    margin-top: 110px;
}

.notification-banner p {
    margin: 0;
    font-size: 1.1rem;
}

.notification-banner a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.notification-banner .close-button {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.notification-banner .close-button:hover {
    opacity: 0.8;
}

.sorteo-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.sorteo-button:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 4rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin: 1rem 0;
        margin-left: 0;
    }

    .credential-button {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }

    .menu-close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
        padding: 8rem 0 4rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .tourism-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        margin-right: 0;
        margin-bottom: 2rem;
        padding-top: 20px;
    }

    .map-container {
        height: 300px;
    }

    footer {
        clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    }
}
