/* Estilos Minimalistas para Raymond - Asesor Creativo */

/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* Variables y Resets */
:root {
    /* Paleta de colores modo oscuro */
    --color-bg: #121212;
    --color-text: #e0e0e0;
    --color-primary: #3a86ff;
    --color-secondary: #8338ec;
    --color-accent: #ff006e;
    --color-light: #1e1e1e;
    --color-dark: #f8f9fa;
    --color-gray: #b0b0b0;
    --color-light-gray: #2c2c2c;
    
    /* Fuentes */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    /* Sombras y transiciones */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Sección Hero */
.hero-section {
    min-height: 70vh;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-light);
    border-bottom: 1px solid var(--color-light-gray);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
}

.hero-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--color-primary);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.hero-text {
   max-width: 600px;
}

.hero-text h1 {
    font-family: var(--font-primary);
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-intro, .hero-cta-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--color-gray);
}

.hero-intro strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Botón principal */
.whatsapp-button {
    display: inline-block;
    text-decoration: none;
    background-color: var(--color-primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    margin-top: 1rem;
    font-weight: 600;
    border: none;
    box-shadow: var(--shadow-sm);
}

.whatsapp-button:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Estructura Principal */
.site-main {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Categorías de Servicio */
.service-category {
    margin-bottom: 4rem;
    padding: 2rem 1rem;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    background-color: var(--color-light);
    border: 1px solid var(--color-light-gray);
}

.service-category h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 0.5rem;
    color: var(--color-text);
}

.service-category h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
}

/* Grid y Tarjetas de Servicio */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-light);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-light-gray);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    font-weight: 600;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    color: var(--color-gray);
}

/* Botones de compartir */
.social-share {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: var(--color-bg);
    color: var(--color-gray);
    transition: var(--transition);
    border: 1px solid var(--color-light-gray);
    font-size: 0.9rem;
    text-decoration: none;
    gap: 5px;
}

.share-btn:hover {
    background-color: var(--color-primary);
    color: white;
    transform: scale(1.05);
}

/* Estilos para el modal de QR */
.qr-modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.qr-modal-content {
    background-color: var(--color-light);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-light-gray);
}

.qr-close {
    color: var(--color-gray);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.qr-close:hover {
    color: var(--color-text);
}

#qrcode {
    margin: 20px auto;
}

/* Tooltip para copiar enlace */
.copy-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 100;
}

/* Sección de afiliados */
.affiliate-banner {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 10px;
    background-color: var(--color-light);
    border: 1px solid var(--color-light-gray);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.affiliate-banner h3 {
    color: var(--color-text);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.affiliate-banner p {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Sección Trabaja Conmigo */
.category-work-with-me {
    position: relative;
    padding: 3rem 1rem;
    margin-bottom: 3rem;
    overflow: hidden;
    background-color: var(--color-light);
}

.category-work-with-me::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/img/fotomiweb.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.work-with-me-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.work-with-me-text {
    background-color: var(--color-light);
    border-radius: 8px;
    padding: 2rem;
    max-width: 600px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-light-gray);
}

.work-with-me-text h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-weight: 600;
}

.work-with-me-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-gray);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #0a0a0a;
    color: white;
    margin-top: 3rem;
}

.site-footer p { 
    margin-bottom: 0.5rem; 
    font-size: 0.9rem; 
}

.footer-button {
    margin-bottom: 1rem;
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.footer-button:hover {
    background-color: white;
    color: #0a0a0a;
}

/* Estilos para el modal de compartir */
.share-modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.share-modal-content {
    background-color: var(--color-light);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    animation: modal-appear 0.3s ease-out;
    overflow: hidden;
    border: 1px solid var(--color-light-gray);
}

@keyframes modal-appear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--color-light-gray);
}

.share-modal-header h3 {
    margin: 0;
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 1.2rem;
}

.share-close {
    color: var(--color-gray);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.share-close:hover {
    color: var(--color-text);
}

.share-modal-url {
    display: flex;
    align-items: center;
    background-color: var(--color-light);
    padding: 10px 15px;
    margin: 15px;
    border-radius: 8px;
    border: 1px solid var(--color-light-gray);
}

.share-modal-url p {
    flex: 1;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
    color: var(--color-gray);
}

.copy-url-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 5px 10px;
    font-size: 1.1rem;
    position: relative;
}

.copy-url-btn:hover {
    color: var(--color-secondary);
}

.share-modal-qr {
    display: flex;
    justify-content: center;
    padding: 15px;
}

.share-modal-qr img {
    max-width: 128px;
    max-height: 128px;
}

.share-modal-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-text);
    padding: 10px 5px;
    border-radius: 8px;
    transition: var(--transition);
}

.share-option:hover {
    background-color: var(--color-light);
}

.share-icon-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 1.5rem;
    color: white;
}

.share-option span {
    font-size: 0.8rem;
    text-align: center;
}

/* Colores para las plataformas */
.bluetooth { background-color: #0082FC; }
.whatsapp, .whatsapp-business { background-color: #25D366; }
.quick-share { background-color: #4285F4; }
.facebook { background-color: #1877F2; }
.instagram { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.gmail { background-color: #D44638; }
.snapchat { background-color: #FFFC00; color: #000; }

/* Responsividad */
@media (min-width: 769px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
    }
    .hero-image {
        flex-shrink: 0;
        margin-right: 2rem;
    }
    .hero-text {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 3rem 1rem;
    }
    .hero-image {
        margin-bottom: 2rem;
    }
    .hero-image img {
        width: 150px;
        height: 150px;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-intro, .hero-cta-text {
        font-size: 1rem;
    }

    .service-category h2 { 
        font-size: 1.8rem; 
    }
    .service-grid { 
        grid-template-columns: 1fr; 
        gap: 1.5rem; 
    }
    .service-card { 
        padding: 1rem; 
    }
    
    .share-modal-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .share-modal-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Clase para tarjetas destacadas */
.highlighted-card {
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 10px rgba(58, 134, 255, 0.3);
}

/* Animación suave para transiciones */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fade-in 0.5s ease-out forwards;
}