/* ===== ROTO TATTOO STUDIO - RESPONSIVE STYLES ===== */

/* ===== VARIABLES CSS ===== */
:root {
    --primary-color: rgb(36, 36, 28);
    --background-color: rgb(245, 245, 245);
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --mobile-padding: 1rem;
    --tablet-padding: 2rem;
    --desktop-padding: 3rem;
    --mobile-font-size: 0.9rem;
    --tablet-font-size: 1rem;
    --desktop-font-size: 1.1rem;
    --vh: 1vh;
}

/* ===== BASE RESPONSIVE STYLES ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    height: 100%;
}

body {
    overflow-x: hidden;
    height: 100%;
    position: relative;
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    background-color: #128c7e;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 2px 2px 18px rgba(0, 0, 0, 0.45);
}

.whatsapp-float i {
    margin: 0;
}

/* ===== SOCIAL MEDIA BAR (Barra flotante horizontal) ===== */
.social-bar-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    z-index: 2100;
    transition: all 0.3s ease;
}

.social-bar-item {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-bar-item i {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-label {
    font-size: 10px;
    font-weight: 600;
    color: #333;
    text-align: center;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 6px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.social-bar-item:hover .social-label {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.social-bar-item:hover i {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Facebook */
.social-facebook i {
    background: #1877f2;
}

.social-facebook:hover i {
    background: #0c63d4;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(24, 119, 242, 0.4);
}

/* Instagram */
.social-instagram i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-instagram:hover i {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(188, 24, 136, 0.4);
}

/* TikTok */
.social-tiktok i {
    background: #000000;
}

.social-tiktok:hover i {
    background: #1a1a1a;
}

/* WhatsApp */
.social-whatsapp i {
    background: #25d366;
}

.social-whatsapp:hover i {
    background: #1ebe57;
}

/* Agendar Cita */
.social-calendar i {
    background: #ff6b6b;
}

.social-calendar:hover i {
    background: #ee5a52;
}

/* Price */
.social-price i {
    background: #ffa500;
}

.social-price:hover i {
    background: #ff8c00;
}

.whatsapp-float-mobile {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translateY(0);
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
    text-decoration: none;
    z-index: 2200;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.whatsapp-float-mobile:hover,
.whatsapp-float-mobile:focus-visible {
    background-color: #128c7e;
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 16px 28px rgba(18, 140, 126, 0.35);
    animation: none;
}

.whatsapp-float-mobile__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.whatsapp-float-mobile__text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.whatsapp-float-mobile::before {
    content: "Chatea ahora";
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #128c7e;
    color: #fff;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(18, 140, 126, 0.35);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.whatsapp-float-mobile:hover::before,
.whatsapp-float-mobile:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

@keyframes whatsappPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
    }
    50% {
        transform: translateY(-4px) scale(1.08);
        box-shadow: 0 18px 32px rgba(18, 140, 126, 0.35);
    }
}

@media (min-width: 769px) {
    .whatsapp-float-mobile {
        display: none !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* Fix viewport height for mobile browsers */
.full-height {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
}

/* Custom notification styles */
.custom-notification {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== NAVBAR RESPONSIVE ===== */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===== NAVBAR BRAND STYLING ===== */
.navbar-brand {
    padding: 0.5rem 0;
    margin-right: 1rem;
    min-width: fit-content;
}

.navbar-brand span {
    display: block;
    letter-spacing: 1px;
    font-weight: bold;
}

/* Responsive navbar brand */
@media (max-width: 1199px) {
    .navbar-brand span:first-child {
        font-size: 1rem !important;
    }
    
    .navbar-brand span:last-child {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 991px) {
    .navbar-brand span:first-child {
        font-size: 0.95rem !important;
    }
    
    .navbar-brand span:last-child {
        font-size: 0.7rem !important;
    }
    
    .navbar-nav {
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand span:first-child {
        font-size: 0.9rem !important;
    }
    
    .navbar-brand span:last-child {
        font-size: 0.65rem !important;
    }
    
    .navbar-brand {
        margin-right: 0.5rem;
    }
}

/* ===== HERO SECTION RESPONSIVE ===== */
.main {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

#blacklinetext {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

.main h6 {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    margin-bottom: 2rem;
}

.main .bt1, .main .bt2 {
    min-width: 120px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: var(--transition);
}

/* ===== CAROUSEL RESPONSIVE ===== */
.carousel-inner img {
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

/* ===== ARTISTS SECTION RESPONSIVE ===== */
.about img {
    border-radius: 15px;
    transition: var(--transition);
    max-width: 100%;
    height: auto;
}

.about img:hover {
    transform: scale(1.05);
}

/* ===== SERVICES RESPONSIVE ===== */
.services .card {
    border-radius: 20px;
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow);
}

.services .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgb(245, 245, 245);
    display: inline-block;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 12px;
}

/* ===== GALLERY RESPONSIVE ===== */
.portfolio .item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.portfolio .item img {
    transition: var(--transition);
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio .item:hover img {
    transform: scale(1.1);
}

.portfolio .item span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: var(--transition);
}

.portfolio .item:hover span {
    opacity: 1;
}

/* ===== BUTTONS RESPONSIVE ===== */
.button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    margin: 0.25rem;
}

.button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== CONTACT FORM RESPONSIVE ===== */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(36, 36, 28, 0.25);
}

.btn-form {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    transition: var(--transition);
}

.btn-form:hover {
    background-color: rgba(36, 36, 28, 0.8);
    color: white;
}

/* ===== MOBILE STYLES (max-width: 768px) ===== */
@media (max-width: 768px) {
    /* Navbar mobile */
    .navbar-collapse {
        text-align: center;
        padding-top: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 0 !important;
        margin: 0.25rem 0;
    }
    
    /* Hero section mobile */
    .main {
        text-align: center;
        padding: 2rem 0;
    }
    
    .main .row {
        flex-direction: column-reverse;
    }
    
    .main .col-md-5 {
        margin-top: 2rem;
    }
    
    .main .bt1, .main .bt2 {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Carousel mobile */
    .carousel-inner img {
        height: 250px;
    }
    
    /* Artists mobile */
    .about .row > div {
        margin-bottom: 2rem;
    }
    
    .about .col-5, .about .col-7 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .about .float-end {
        float: none !important;
    }
    
    /* Services mobile */
    .services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Gallery mobile */
    .portfolio .col-sm-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .portfolio .item img {
        height: 200px;
    }
    
    /* FAQ mobile */
    .faq-section .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Contact mobile */
    .contact .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    /* Gallery filter mobile */
    .control ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding-left: 0;
    }

    .control ul li {
        margin: 0;
        width: auto;
    }

    /* WhatsApp buttons */
    .whatsapp-float {
        display: none;
    }

    /* Social bar mobile - reorganizar */
    .social-bar-float {
        right: 50%;
        transform: translateX(50%);
        bottom: 20px;
        gap: 8px;
        padding: 10px 12px;
        max-width: 95vw;
        overflow-x: auto;
    }

    .social-bar-item {
        width: 50px;
        flex-shrink: 0;
    }

    .social-bar-item i {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }

    .social-label {
        font-size: 9px;
    }    /* Ocultar botón móvil de WhatsApp ya que está en la barra social */
    .whatsapp-float-mobile {
        display: none !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    iframe {
        height: 250px !important;
    }
}

/* ===== TABLET STYLES (768px - 992px) ===== */
@media (min-width: 769px) and (max-width: 992px) {
    .portfolio .col-sm-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .services .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .services .col-lg-4:last-child {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 1rem;
    }
}

/* ===== SMALL MOBILE STYLES (max-width: 480px) ===== */
@media (max-width: 480px) {
    /* Typography adjustments */
    h1 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    h5 {
        font-size: 1.25rem !important;
    }
    
    /* Padding adjustments */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Button adjustments */
    .main .bt1, .main .bt2 {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
    
    /* Form adjustments */
    .form-control {
        font-size: 14px;
    }
    
    /* Navbar brand */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Gallery adjustments */
    .portfolio .item img {
        height: 180px;
    }
    
    /* Artist cards */
    .about p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Ocultar botón móvil de WhatsApp ya que está en la barra social */
    .whatsapp-float-mobile {
        display: none !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    /* Social bar extra small screens */
    .social-bar-float {
        bottom: 16px;
        gap: 6px;
        padding: 8px 10px;
        max-width: 98vw;
    }

    .social-bar-item {
        width: 45px;
        flex-shrink: 0;
    }

    .social-bar-item i {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .social-label {
        font-size: 8px;
    }
}

/* ===== LARGE SCREENS (min-width: 1200px) ===== */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .carousel-inner img {
        height: 500px;
    }
    
    .portfolio .item img {
        height: 300px;
    }
}

/* ===== TOUCH-FRIENDLY IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
        touch-action: manipulation;
    }
    
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .nav-link {
        padding: 1rem 0.75rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Gallery touch improvements */
    .portfolio .item {
        touch-action: manipulation;
    }
    
    /* Carousel touch improvements */
    .carousel {
        touch-action: pan-y;
    }
    
    /* Form validation styles */
    .form-control.is-invalid {
        border-color: #dc3545;
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    }
    
    .form-control.is-valid {
        border-color: #198754;
        box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
    }
}

/* ===== LAZY LOADING STYLES ===== */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* ===== SMOOTH ANIMATIONS ===== */
.smooth-transition {
    transition: var(--transition);
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav-link:focus,
.form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .portfolio-modal,
    #deleted {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
