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

:root {
    /* Cardiointernal Brand Colors */
    --primary: hsl(331, 73%, 68%); /* #E475AA */
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(324, 83%, 65%); /* #E63E96 */
    --secondary-foreground: hsl(0, 0%, 100%);
    
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(0, 0%, 6.7%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(0, 0%, 6.7%);
    --muted: hsl(331, 73%, 96%);
    --muted-foreground: hsl(0, 0%, 45%);
    --accent: hsl(331, 73%, 92%);
    --accent-foreground: hsl(0, 0%, 6.7%);
    --border: hsl(331, 73%, 90%);
    
    /* Custom Medical Theme Colors */
    --medical-pink: hsl(331, 73%, 68%);
    --medical-pink-dark: hsl(324, 83%, 65%);
    --medical-light: hsl(331, 73%, 96%);
    
    /* Gradients */
    --hero-gradient: linear-gradient(135deg, hsl(331, 73%, 68%, 0.9), hsl(324, 83%, 65%, 0.9));
    --medical-gradient: linear-gradient(135deg, hsl(331, 73%, 68%), hsl(324, 83%, 65%));
    
    /* Typography */
    --font-heading: 'Arial', 'Helvetica', sans-serif;
    --font-body: 'Verdana', sans-serif;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px hsl(331, 73%, 68%, 0.1);
    --shadow-medium: 0 8px 30px hsl(331, 73%, 68%, 0.15);
    --shadow-strong: 0 20px 40px hsl(331, 73%, 68%, 0.2);
    
    --radius: 0.5rem;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

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

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 8rem;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 16rem;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.whatsapp-btn {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
    background: var(--secondary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--foreground);
    margin: 3px 0;
    transition: 0.3s;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

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

.btn-primary:hover {
    background: var(--secondary);
}

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

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

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* Page Management */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 4rem;
}

.page.active {
    display: block;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-gradient);
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

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

.hero-buttons .btn-outline {
    border-color: white;
    color: white;
}

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

/* Services Grid */
.services-grid {
    padding: 4rem 0;
    background: var(--background);
}

.services-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.service-image {
    margin-bottom: 1rem;
}

.service-image img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-radius: var(--radius);
}

.service-card h3 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

/* About Section */
.about-content {
    padding: 4rem 0;
}

.about-content h1 {
    text-align: center;
    color: var(--primary);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-medium);
}

.about-text h2 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.credentials p {
    color: var(--muted-foreground);
}

.credentials strong {
    color: var(--foreground);
}

.commitment-section {
    background: var(--accent);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.commitment-section h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.commitment-section p {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Services Header */
.services-header {
    position: relative;
    padding: 5rem 0;
    color: white;
    overflow: hidden;
}

.services-header-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.services-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-gradient);
    z-index: -1;
}

.services-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.services-header h1 {
    font-size: clamp(2.5rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

.services-header p {
    font-size: 1.25rem;
    max-width: 48rem;
    margin: 0 auto;
}

/* Specialties Section */
.specialties-section {
    padding: 4rem 0;
    background: var(--background);
}

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

.section-header h2 {
    color: var(--primary);
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
}

.section-header p {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    max-width: 48rem;
    margin: 0 auto;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.specialty-item {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
}

.specialty-bullet {
    width: 0.75rem;
    height: 0.75rem;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.specialty-item span {
    font-weight: 500;
}

/* Services Details */
.services-details {
    padding: 4rem 0;
    background: rgba(var(--accent), 0.3);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-detail-card {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-medium);
}

.service-detail-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-detail-card p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    font-size: 0.875rem;
}

.service-list li::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 0.75rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: var(--accent);
    text-align: center;
}

.cta-section h2 {
    color: var(--primary);
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: var(--muted-foreground);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Header */
.contact-header {
    padding: 5rem 0;
    background: var(--hero-gradient);
    color: white;
    text-align: center;
}

.contact-header h1 {
    font-size: clamp(2.5rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

.contact-header p {
    font-size: 1.25rem;
    max-width: 48rem;
    margin: 0 auto;
}

/* Contact Content */
.contact-content {
    padding: 4rem 0;
    background: var(--background);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.contact-info h2 {
    color: var(--primary);
    font-size: 1.875rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-details h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form h2 {
    color: var(--primary);
    font-size: 1.875rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: rgba(var(--muted), 0.5);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 4rem;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

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

    .hero-buttons .btn {
        min-width: 200px;
    }

    .services-row {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .service-card {
        padding: 1rem;
    }

    .commitment-section {
        padding: 1.5rem;
    }

    .service-detail-card {
        padding: 1.5rem;
    }
}