/* ============================================
   Magic Nails Spa - CSS Styles
   Responsive, modern design for nail salon website
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* CSS Variables */
:root {
    --primary-50: #fdf2f8;
    --primary-100: #fce7f3;
    --primary-200: #fbcfe8;
    --primary-300: #f9a8d4;
    --primary-400: #f472b6;
    --primary-500: #ec4899;
    --primary-600: #db2777;
    --primary-700: #be185d;
    --primary-800: #9d174d;
    --primary-900: #831843;
    
    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    
    --accent-gold: #d4af37;
    --accent-rose: #f8bbd9;
    
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: var(--font-size-5xl);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: 1rem;
    color: var(--neutral-600);
}

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

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

.section-title {
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--primary-600);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

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

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

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.nav-logo h2 {
    color: var(--primary-600);
    margin-bottom: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--neutral-700);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
}

.cart-btn:hover {
    background-color: var(--neutral-100);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary-500);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.appointment-btn {
    background-color: var(--primary-500);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.appointment-btn:hover {
    background-color: var(--primary-600);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--neutral-50) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.hero-content {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary-600), var(--primary-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--font-size-2xl);
    color: var(--primary-600);
    margin-bottom: 1.25rem;
    font-weight: 500;
    line-height: 1.3;
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--neutral-600);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image:hover .hero-img {
    transform: scale(1.02);
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    color: var(--neutral-600);
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: var(--neutral-50);
}

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

.service-card {
    background-color: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-info h3 {
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.service-description {
    color: var(--neutral-600);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature {
    background-color: var(--primary-100);
    color: var(--primary-700);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.service-price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-600);
}

.service-duration {
    color: var(--neutral-500);
    font-size: var(--font-size-sm);
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: white;
}

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

.testimonial-card {
    background-color: var(--neutral-50);
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    border-left: 4px solid var(--primary-500);
    width: 100%;
    max-width: 450px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    font-size: var(--font-size-lg);
    color: var(--neutral-700);
    line-height: 1.6;
}

.testimonial-author h4 {
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--primary-600);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Products Section */
.products {
    padding: 5rem 0;
    background-color: var(--neutral-50);
}

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

.product-card {
    background-color: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-500);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.product-description {
    color: var(--neutral-600);
    margin-bottom: 1rem;
    font-size: var(--font-size-sm);
    flex-grow: 1;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.product-footer {
    margin-bottom: 1.5rem;
}

.product-price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-600);
}

.original-price {
    margin-left: 0.5rem;
    font-size: var(--font-size-base);
    color: var(--neutral-400);
    text-decoration: line-through;
}

.product-stock {
    display: block;
    color: var(--neutral-500);
    font-size: var(--font-size-sm);
    margin-top: 0.25rem;
}

/* Team Section */
.team {
    padding: 5rem 0;
    background-color: white;
}

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

.employee-card {
    background-color: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.employee-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.employee-image {
    height: 300px;
    overflow: hidden;
}

.employee-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.employee-card:hover .employee-image img {
    transform: scale(1.05);
}

.employee-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.employee-info h3 {
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.employee-specialty {
    color: var(--primary-600);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.employee-experience {
    color: var(--neutral-500);
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
}

.employee-description {
    color: var(--neutral-600);
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.employee-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.skill {
    background-color: var(--primary-100);
    color: var(--primary-700);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.employee-schedule {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neutral-500);
    font-size: var(--font-size-sm);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--primary-50);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    color: var(--primary-600);
    margin-top: 0.25rem;
    min-width: 24px;
}

.contact-item h4 {
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--neutral-600);
    margin: 0;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--neutral-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--neutral-200);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgb(236 72 153 / 0.1);
}

/* Footer */
.footer {
    background-color: var(--neutral-900);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--neutral-400);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--neutral-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-700);
    color: var(--neutral-400);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius-xl);
    max-width: 600px;
    max-height: 90vh;
    width: 100%;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    margin: auto;
    position: relative;
}

/* Ensure modal is centered in all screen sizes */
.modal.active {
    display: flex !important;
}

/* Desktop modal centering */
@media (min-width: 769px) {
    .modal-content {
        width: 90%;
        max-width: 700px;
    }
}

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

.modal-header h3 {
    margin: 0;
    color: var(--neutral-900);
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--neutral-400);
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--neutral-600);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--neutral-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Cart Styles */
.empty-cart {
    text-align: center;
    padding: 3rem;
    color: var(--neutral-500);
}

.empty-cart i {
    margin-bottom: 1rem;
    font-size: 3rem;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--neutral-200);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--neutral-900);
}

.cart-item-info span {
    color: var(--neutral-600);
    font-size: var(--font-size-sm);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background-color: var(--neutral-100);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.quantity-btn:hover {
    background-color: var(--neutral-200);
}

.quantity {
    min-width: 32px;
    text-align: center;
    font-weight: 500;
}

.cart-item-total {
    font-weight: 600;
    color: var(--primary-600);
}

.remove-btn {
    background-color: var(--neutral-100);
    border: none;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    color: var(--neutral-500);
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background-color: var(--primary-100);
    color: var(--primary-600);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--neutral-900);
}

/* Product Detail Modal */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.product-detail-info h3 {
    color: var(--neutral-900);
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-600);
    margin: 1.5rem 0;
}

.product-detail-actions {
    margin-top: 2rem;
}

/* Responsive Design */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
        max-width: 800px;
        padding: 0 2rem;
    }
    
    .hero-content {
        max-width: 600px;
        margin: 0 auto;
        order: 1;
    }
    
    .hero-image {
        order: 0;
    }
    
    .hero-img {
        max-width: 400px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .nav-logo h2 {
        font-size: 1.5rem;
    }
    
    .modal-content {
        max-width: 700px;
        width: 85%;
    }
}

/* Mobile Styles (768px and below) */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

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

    .hamburger {
        display: block;
    }
    
    .nav-logo h2 {
        font-size: 1.25rem;
        white-space: nowrap;
    }

    .hero {
        min-height: 90vh;
        padding-top: 120px;
        padding-bottom: 5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        display: block;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 5rem;
        text-align: center;
        padding: 0 2rem;
        max-width: 600px;
    }
    
    .hero-content {
        max-width: 100%;
        order: 1;
        margin-bottom: 2rem;
        /* Eliminar flex en móviles para mejor acomodación */
    }
    
    .hero-image {
        order: 0;
        margin-bottom: 3rem;
    }
    
    .hero-img {
        max-width: 350px;
        border-radius: var(--border-radius-lg);
    }
    
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.375rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1.0625rem;
        margin-bottom: 3rem;
        line-height: 1.6;
        max-width: 100%;
    }
    
    /* Alinear texto a la izquierda en móviles para mejor lectura */
    .hero-content {
        text-align: left;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
    }
    
    .hero-content .hero-title,
    .hero-content .hero-subtitle,
    .hero-content .hero-description {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .services-grid,
    .products-grid,
    .testimonials-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card,
    .product-card,
    .testimonial-card,
    .employee-card {
        margin: 0 auto;
        max-width: 100%;
    }

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

    .product-detail {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .modal {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .modal-content {
        width: 100%;
        max-width: none;
        margin: 0;
        max-height: 85vh;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Typography responsive adjustments */
    .section-title {
        font-size: 2rem;
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    h1 {
        font-size: 2rem;
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    h3 {
        font-size: 1.5rem;
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    /* Container padding adjustments */
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    /* Card content adjustments */
    .service-info,
    .product-info,
    .employee-info {
        padding: 1.5rem;
    }
    
    /* Footer adjustments */
    .footer {
        padding: 2rem 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    /* Hero section for very small screens */
    .hero {
        min-height: 85vh;
        padding-top: 100px;
        padding-bottom: 4rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        display: block;;
    }
    
    .hero .container {
        gap: 4rem;
        padding: 0 1.5rem;
        max-width: 100%;
    }
    
    .hero-content {
        padding: 0;
        margin-bottom: 1.5rem;
        /* Eliminar flex en móviles pequeños */
    }
    
    .hero-image {
        margin-bottom: 2rem;
    }
    
    .hero-img {
        max-width: 280px;
        border-radius: var(--border-radius);
    }
    
    /* Typography adjustments for very small screens */
    .hero-title {
        font-size: 1.875rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.1875rem;
        line-height: 1.2;
        margin-bottom: 1.25rem;
        text-align: center;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2.5rem;
        text-align: center;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
        margin-top: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
        line-height: 1.1;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    h3 {
        font-size: 1.25rem;
        line-height: 1.2;
    }
    
    h4, h5, h6 {
        font-size: 1.125rem;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* Section padding adjustments */
    .section {
        padding: 2.5rem 0;
    }
    
    /* Card adjustments for small screens */
    .service-info,
    .product-info,
    .employee-info {
        padding: 1rem;
    }
    
    .service-features,
    .product-features,
    .employee-skills {
        gap: 0.25rem;
    }
    
    .feature,
    .skill {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Contact form adjustments */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Modal adjustments for very small screens */
    .modal {
        padding: 0.5rem;
        padding-top: 1rem;
    }
    
    .modal-content {
        border-radius: var(--border-radius);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.125rem;
    }
    
    /* Cart adjustments */
    .cart-item {
        padding: 0.75rem 0;
    }
    
    .cart-item-info h4 {
        font-size: 0.9rem;
    }
    
    .cart-total {
        font-size: 1rem;
    }
    
    /* Testimonial adjustments */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    /* Navigation adjustments */
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .nav-logo h2 {
        font-size: 1.125rem;
    }
    
    .appointment-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* WhatsApp Floating Button Styles */
.whatsapp-float {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.whatsapp-icon {
    z-index: 2;
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.3) contrast(1.1);
    transition: all 0.3s ease;
}

.whatsapp-float:hover .whatsapp-img {
    filter: brightness(1.4) contrast(1.15);
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.6;
    animation: pulse-whatsapp 3s infinite;
}

.whatsapp-text {
    position: absolute;
    right: 85px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-text::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-left-color: #2a2a2a;
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1.05);
}

@keyframes pulse-whatsapp {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
    .whatsapp-float {
        width: 70px;
        height: 70px;
        bottom: 2.5rem;
        right: 2.5rem;
    }
    
    .whatsapp-icon {
        width: 42px;
        height: 42px;
    }
    
    .whatsapp-text {
        right: 80px;
        font-size: 0.85rem;
        padding: 0.9rem 1.3rem;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 65px;
        height: 65px;
        bottom: 2rem;
        right: 2rem;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    }
    
    .whatsapp-icon {
        width: 38px;
        height: 38px;
    }
    
    .whatsapp-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 1.5rem;
        right: 1.5rem;
        box-shadow: 0 5px 18px rgba(37, 211, 102, 0.3);
    }
    
    .whatsapp-icon {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 320px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 1rem;
        right: 1rem;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
    }
    
    .whatsapp-icon {
        width: 32px;
        height: 32px;
    }
}