/* ============================================
   CAROCNAILS - MOBILE-FIRST STYLES
   Paleta de colores:
   - Primary: #86596e (morado/rosa oscuro)
   - Secondary: #e19b95 (rosa suave)
   - Accent: #c8ae72 (dorado)
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #86596e;
    --secondary-color: #e19b95;
    --accent-color: #d4a5a5;
    --text-dark: #2d2d2d;
    --text-light: #ffffff;
    --bg-light: #f5e6ed;
    --bg-white: #fdf8fa;
    --bg-primary-light: rgba(134, 89, 110, 0.05);
    --bg-secondary-light: rgba(225, 155, 149, 0.1);
    --shadow: 0 4px 20px rgba(134, 89, 110, 0.15);
    --shadow-hover: 0 8px 30px rgba(134, 89, 110, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5e6ed 0%, #fce8e8 50%, #f9ebe5 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION - MOBILE FIRST
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(134, 89, 110, 0.95) 0%, rgba(157, 109, 130, 0.95) 100%);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-hover);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 25px;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary-color);
    padding: 80px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
}

.nav-menu.active {
    right: 0;
}

.nav-link {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px;
    transition: var(--transition);
    display: block;
}

.nav-link:hover,
.nav-link:focus {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #9d6d82);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(134, 89, 110, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(134, 89, 110, 0.4);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============================================
   HERO SECTION - MOBILE FIRST
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 20px 40px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(134, 89, 110, 0.85) 0%, 
        rgba(225, 155, 149, 0.75) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-light);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--text-light);
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: 60px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 40px;
    font-size: 1rem;
}

/* Títulos en secciones con fondo de color */
.services .section-title,
.booking .section-title,
.gallery .section-title,
.about .section-title {
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.services .section-subtitle,
.booking .section-subtitle,
.gallery .section-subtitle,
.about .section-subtitle {
    color: var(--text-light);
    opacity: 0.95;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background: linear-gradient(135deg, #e19b95 0%, #d4a5a5 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-dark);
    opacity: 0.8;
    font-size: 0.95rem;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
    background: linear-gradient(135deg, #b88b9d 0%, #c99aaf 50%, #d4a5a5 100%);
}

.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: 2px solid rgba(134, 89, 110, 0.5);
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(134, 89, 110, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--text-light);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    padding: 20px;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 2001;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.modal-prev,
.modal-next {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   BOOKING FORM - MOBILE OPTIMIZED
   ============================================ */
.booking {
    background: linear-gradient(135deg, #86596e 0%, #9d6d82 100%);
}

.booking-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(134, 89, 110, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    background: linear-gradient(135deg, #f5e6ed 0%, #fce8e8 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stars {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    color: #d4a5a5;
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.5rem;
}

.author-info h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-info p {
    font-size: 0.85rem;
    opacity: 0.7;
}

.google-reviews {
    text-align: center;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: linear-gradient(135deg, #a87a8e 0%, #b88b9d 50%, #c99aaf 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.about-text {
    order: 2;
}

.about-item {
    margin-bottom: 30px;
}

.about-item h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.about-item p {
    color: var(--text-light);
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.highlight {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.social-links h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-hover);
}

.about-image {
    order: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 20px 10px;
    border-radius: 15px;
    text-align: center;
}

.stat-item h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.footer-section p,
.footer-section ul li {
    margin-bottom: 8px;
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-section i {
    margin-right: 8px;
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 5px;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-bottom i {
    color: var(--secondary-color);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* ============================================
   TABLET STYLES (min-width: 768px)
   ============================================ */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }

    /* Navigation */
    .menu-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        flex-direction: row;
        box-shadow: none;
    }

    .nav-link {
        color: var(--accent-color);
        font-size: 1rem;
        padding: 8px 16px;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: none;
        color: var(--text-light);
    }

    /* Hero */
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-buttons {
        flex-direction: row;
    }

    /* Sections */
    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    /* Form */
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-form {
        padding: 40px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        align-items: center;
    }

    .about-text {
        order: 1;
    }

    .about-image {
        order: 2;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* ============================================
   DESKTOP STYLES (min-width: 1024px)
   ============================================ */
@media (min-width: 1024px) {
    /* Hero */
    .hero-title {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    /* WhatsApp Button */
    .whatsapp-float {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scroll offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success message */
.success-message {
    background: #4caf50;
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .whatsapp-float,
    .scroll-indicator {
        display: none;
    }
}
