/* 
    Madeline Estética Integral - Design System
    Base CSS for all pages
*/

:root {
    /* Color Palette */
    --color-primary: #9db8b7;      /* Verde/Rosa Medio */
    --color-primary-dark: #4a6665; /* Verde/Rosa Oscuro */
    --color-primary-light: #e8f0f0;/* Verde/Rosa Claro */
    --color-accent: #8b5e3c;       /* Bronce/Marrón para CTAs */
    --color-white: #ffffff;
    --color-bg-cream: #f5f0e1;
    --color-text-main: #333333;
    --color-text-muted: #555555;
    
    /* Social Colors */
    --color-instagram: #E1306C;
    --color-facebook: #1877F2;
    --color-whatsapp: #25D366;

    /* Shadows & Transitions */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.15);
    --transition-fast: all 0.3s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-bg-cream);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Effects */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: -2;
}

.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
}

.stars {
    background: #000 url('../images/stars.png') repeat top center;
}

.twinkling {
    background: transparent url('../images/twinkling.png') repeat top center;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

/* Global Container */
.container {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: var(--shadow-medium);
    padding: 60px 40px;
    text-align: center;
    max-width: 1100px;
    width: 92%;
    margin: 40px auto;
    position: relative;
    z-index: 1;
}

/* Shared Header */
.header {
    margin-bottom: 40px;
}

.header .logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-primary);
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.header .logo:hover {
    transform: rotate(5deg) scale(1.05);
}

.header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--color-primary-dark);
    margin: 0 0 10px;
    letter-spacing: 1px;
}

.header .tagline {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Buttons & Links */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    gap: 12px;
    flex-shrink: 0;
}

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

.btn-primary:hover {
    background-color: #384e4d;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 102, 101, 0.3);
}

.btn-outline {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-primary);
}

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

/* Shared Footer */
.footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-whatsapp);
    color: #FFF;
    border-radius: 50px;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition-fast);
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128c7e;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Back Button */
.back-button {
    position: absolute;
    top: 40px;
    left: 40px;
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.back-button:hover {
    color: var(--color-primary);
    transform: translateX(-5px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
        margin: 20px auto;
        width: 95%;
    }
    .header h1 {
        font-size: 2.2rem;
    }
    .back-button {
        top: 20px;
        left: 20px;
        font-size: 0.9rem;
    }
    .header .logo {
        width: 100px;
        height: 100px;
    }
}
