/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* COLMED Brand Colors */
:root {
    --primary-color: #a5cd39;
    --secondary-color: #c3ed40;
    --gray-color: #6d6e70;
    --dark-gray: #949290;
    --white: #ffffff;
    --black: #000000;
    --light-gray: #f5f5f5;
    --border-color: #e5e5e5;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
}

.top-buttons {
    display: flex;
    gap: 8px;
}

.top-btn {
    background: white;
    color: var(--gray-color);
    border: none;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
    width: 130px;
}

.top-btn:hover {
    background: var(--gray-color);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Main Header */
.main-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    position: relative;
}

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

.logo {
    height: 64px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 18px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
    background-color: #f3f4f6;
}

.mobile-menu-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: 1rem 0;
}

.mobile-nav-link {
    display: block;
    padding: 12px 1rem;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: #f9fafb;
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Mobile Menu Buttons */
.mobile-menu-buttons {
    padding: 1rem;
    border-top: 1px solid #f3f4f6;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mobile-menu-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: var(--dark-gray);
}

.mobile-menu-btn.outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.mobile-menu-btn.outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 90px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 10;
}

.slide-text {
    max-width: 48rem;
    color: white;
}

.slide-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.slide-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-description {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-btn-prev {
    left: 1rem;
}

.carousel-btn-next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

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

.dot.active {
    background: white;
}

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--dark-gray);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(165, 205, 57, 0.3);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-white {
    background: white;
    color: var(--gray-color);
}

.btn-white:hover {
    background: #f9fafb;
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--gray-color);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* Plans Section */
.plans-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 75rem;
    margin: 0 auto;
}

/* Plan Card Components */
.plan-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.plan-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(165, 205, 57, 0.15);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
}

.plan-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(195, 237, 64, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.plan-icon.featured-icon {
    background: var(--primary-color);
    color: white;
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.plan-subtitle {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.plan-description {
    color: #6b7280;
    margin-bottom: 8px;
}

.plan-long-description {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 12px;
}

.plan-badge {
    display: inline-block;
    background: rgba(195, 237, 64, 0.2);
    color: var(--gray-color);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.plan-content {
    text-align: left;
}

.benefits-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    font-size: 14px;
}

.benefits-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    line-height: 1.4;
}

.benefits-list i {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
}

.plan-coverage {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.plan-coverage i {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
    width: 12px;
    height: 12px;
}

.plan-coverage span {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* News Section */
.news-section {
    padding: 5rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    justify-items: center;
}

/* News Card Components */
.news-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px 8px 0 0;
}

.news-video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
    overflow: hidden;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        max-width: 100%;
    }
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.news-content {
    padding: 1.5rem;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    background: rgba(195, 237, 64, 0.2);
    color: var(--gray-color);
}

.news-category.emergency {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.news-category.info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    min-width: 350px;
    max-width: 350px;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-info {
    list-style: none;
}

.footer-info li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.floating-btn {
    pointer-events: all;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(165, 205, 57, 0.4);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-btn:hover {
    background: var(--dark-gray);
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(165, 205, 57, 0.6);
}

.floating-btn-whatsapp {
    width: 56px;
    height: 56px;
    padding: 0;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
}

.modal-content {
    padding: 1.5rem;
    text-align: center;
}

.modal-text {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.modal-btn {
    width: 100%;
    margin-bottom: 1rem;
}

.modal-footer {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .top-buttons {
        gap: 3px;
    }

    .top-btn {
        padding: 3px 6px;
        font-size: 9px;
        min-height: 30px;
    }

    .logo {
        height: 48px;
    }

    .main-header {
        padding: 8px 0;
    }

    .hero-carousel {
        margin-top: 70px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn-prev {
        left: 0.5rem;
    }

    .carousel-btn-next {
        right: 0.5rem;
    }

    .carousel-dots {
        bottom: 1rem;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .floating-buttons {
        left: 1rem;
        right: 1rem;
    }

    .floating-btn-affiliate {
        font-size: 14px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .top-btn {
        padding: 2px 4px;
        font-size: 8px;
        min-height: 18px;
        width: auto;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Touch support for mobile */
@media (hover: none) and (pointer: coarse) {
    .carousel-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .carousel-btn:active {
        background: rgba(255, 255, 255, 0.4);
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}