@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* =========================================================================
   DESIGN TOKENS & VARIABLES
   ========================================================================= */
:root {
    --bg-main: #0b0b0f;
    --bg-card: #13131a;
    --bg-nav: rgba(11, 11, 15, 0.85);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Colors inspired by the logo */
    --color-purple: #8f58d7;
    --color-teal: #1cb5a4;
    --color-pink: #e85597;
    --color-gold: #e2b13c;

    --gradient-primary: linear-gradient(135deg, var(--color-purple), var(--color-teal));
    --gradient-accent: linear-gradient(135deg, var(--color-pink), var(--color-gold));
    --gradient-dark: linear-gradient(180deg, #13131a, #0b0b0f);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.5);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 20px rgba(143, 88, 215, 0.25);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

/* =========================================================================
   BASE STYLES & RESET
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================================
   REUSABLE UTILITIES & COMPONENTS
   ========================================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    filter: brightness(1.1);
}

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

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Glassmorphism Card style */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 30px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

/* Visbility Badge */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}
.badge-success {
    background: rgba(28, 181, 164, 0.15);
    color: var(--color-teal);
    border: 1px solid rgba(28, 181, 164, 0.3);
}

/* =========================================================================
   HEADER / NAVIGATION
   ========================================================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.nav-cta {
    background: var(--gradient-primary);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(143, 88, 215, 0.25);
    transition: var(--transition-normal);
}

.nav-links a.nav-cta:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
    filter: brightness(1.1);
}

.nav-links a.nav-cta::after {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================================================
   HERO / INICIO SECTION
   ========================================================================= */
#inicio {
    position: relative;
    padding: 180px 0 100px 0;
    overflow: hidden;
    background: radial-gradient(circle at 70% 30%, rgba(143, 88, 215, 0.15) 0%, rgba(11, 11, 15, 0) 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 35px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    background: var(--bg-card);
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: var(--gradient-primary);
    border-radius: 26px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(15px);
}

/* =========================================================================
   NOSOTROS SECTION
   ========================================================================= */
#nosotros {
    background: linear-gradient(180deg, var(--bg-main), #111116);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.about-image-card {
    width: 100%;
    height: 380px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.features-list {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-item i {
    color: var(--color-teal);
    font-size: 1.2rem;
}

.feature-item span {
    font-weight: 600;
}

/* =========================================================================
   SERVICIOS SECTION
   ========================================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    background: rgba(143, 88, 215, 0.1);
    color: var(--color-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    border: 1px solid rgba(143, 88, 215, 0.2);
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: #ffffff;
    transform: rotate(5deg);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-teal);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* =========================================================================
   PORTFOLIO (SERVICIOS REALIZADOS) SECTION
   ========================================================================= */
#portfolio {
    background: linear-gradient(180deg, #111116, var(--bg-main));
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: var(--transition-normal);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.portfolio-img-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.portfolio-card:hover .portfolio-img-wrapper img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 24px;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =========================================================================
   RESEÑAS (REVIEWS) SECTION
   ========================================================================= */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.review-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: var(--color-gold);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.review-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.review-client {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.client-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.client-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* =========================================================================
   CONTACTO SECTION
   ========================================================================= */
#contacto {
    background: linear-gradient(180deg, var(--bg-main), #0f0f14);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    background: rgba(28, 181, 164, 0.1);
    color: var(--color-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 1px solid rgba(28, 181, 164, 0.2);
    flex-shrink: 0;
}

.info-details h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.info-details p,
.info-details a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.map-wrapper iframe {
    width: 100% !important;
    height: 300px;
    border: 0;
    vertical-align: middle;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-purple);
    box-shadow: 0 0 10px rgba(143, 88, 215, 0.15);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
footer {
    background: #07070a;
    border-top: 1px solid var(--border-color);
    padding: 50px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 350px;
}

.footer-links h4,
.footer-hours h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-teal);
    padding-left: 5px;
}

.footer-hours p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition-normal);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes whatsapp-pulse {
    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);
    }
}

/* Service Card adjustments */
.services-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.service-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    height: 100%;
}

/* =========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================= */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-main);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition-normal);
        border-top: 1px solid var(--border-color);
        transform: translateX(-100%);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    #inicio {
        padding: 120px 0 60px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-image-card {
        height: 280px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .services-grid, 
    .portfolio-grid, 
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .logo span {
        font-size: 1.1rem;
    }
}

/* =========================================================================
   PUBLIC REVIEW SUBMISSION STYLES (MODAL, INLINE & TOAST)
   ========================================================================= */
.public-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 12, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.public-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.public-modal-box {
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.public-modal-overlay.active .public-modal-box {
    transform: scale(1);
}

.public-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.public-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.public-modal-close:hover {
    color: var(--color-pink);
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    gap: 10px;
    font-size: 1.8rem;
    margin-top: 5px;
    line-height: 1;
}

.star-rating-input i {
    cursor: pointer;
    transition: color 0.15s ease, transform 0.1s ease;
}

.star-rating-input i:hover {
    transform: scale(1.2);
}

/* Dynamic toast styling */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1100;
    background: var(--bg-card);
    border: 1px solid rgba(28, 181, 164, 0.3);
    border-left: 5px solid var(--color-teal);
    padding: 16px 24px;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    box-shadow: var(--shadow-md), 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    pointer-events: none;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Form Styles */
.form-group label {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--color-purple);
    box-shadow: 0 0 10px rgba(143, 88, 215, 0.15);
}

/* Fade in animation for review cards */
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.new-review-fadein {
    animation: fadeInCard 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

