/* ===============================================
   UBIVET COMPONENTS CSS - VERSIÓN ORGANIZADA
   =============================================== */

/* ===== TABLA DE CONTENIDOS =====
   1. Variables y Configuración Base
   2. Estilos Base del MacBook
   3. Sistema de Contenido del MacBook
   4. Sistema Responsive - Desktop
   5. Sistema Responsive - Tablet
   6. Sistema Responsive - Móvil Portrait
   7. Sistema Responsive - Móvil Landscape
   8. Animaciones y Efectos
   9. Utilidades y Helpers
*/

/* ===== 1. VARIABLES Y CONFIGURACIÓN BASE ===== */
:root {
    --laptop-primary-color: #f8fafc;
    --laptop-secondary-color: #f1f5f9;
    --laptop-tertiary-color: #e2e8f0;
    --laptop-border-color: #cbd5e1;
    --laptop-shadow-color: rgba(0, 0, 0, 0.15);
    --laptop-screen-ratio: 16/10;
}

/* Gradientes personalizados para Tailwind */
.bg-gradient-to-br.from-vet-teal.to-vet-teal-dark {
    background: linear-gradient(to bottom right, #4ECDC4, #2BB8B1) !important;
}

/* ===== 2. SISTEMA LAPTOP FLOWBITE ===== */
.laptop-mockup {
    position: relative;
    margin: 0 auto;
    animation: laptopFloat 6s ease-in-out infinite;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Asegurar responsive del mockup */
@media (max-width: 767px) {
    .laptop-mockup {
        transform: scale(0.9);
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .laptop-mockup {
        transform: scale(0.8);
    }
}

/* ✅ MOCKUP FLOWBITE - ESTRUCTURA DEFINITIVA
   Pantalla: relative mx-auto border-gray-800 dark:border-gray-800 bg-gray-800 border-[8px] rounded-t-xl h-[172px] max-w-[301px] md:h-[294px] md:max-w-[512px]
   Contenido: rounded-lg overflow-hidden h-[156px] md:h-[278px] bg-white dark:bg-gray-800
   Base: relative mx-auto bg-gray-900 dark:bg-gray-700 rounded-b-xl rounded-t-sm h-[17px] max-w-[351px] md:h-[21px] md:max-w-[597px]
   Trackpad: absolute left-1/2 top-0 -translate-x-1/2 rounded-b-xl w-[56px] h-[5px] md:w-[96px] md:h-[8px] bg-gray-800
*/

/* Compatibilidad con clases legacy si se usan */
.laptop-screen {
    position: relative;
    margin: 0 auto;
    border: 8px solid #1f2937;
    background: #1f2937;
    border-radius: 0.75rem 0.75rem 0 0;
    height: 172px;
    max-width: 301px;
}

@media (min-width: 768px) {
    .laptop-screen {
        height: 294px;
        max-width: 512px;
    }
}

.laptop-content {
    border-radius: 0.5rem;
    overflow: hidden;
    height: 156px;
    background: #ffffff;
}

@media (min-width: 768px) {
    .laptop-content {
        height: 278px;
    }
}

.laptop-base {
    position: relative;
    margin: 0 auto;
    background: #111827;
    border-radius: 0 0 0.75rem 0.75rem;
    border-top-left-radius: 0.125rem;
    border-top-right-radius: 0.125rem;
    height: 17px;
    max-width: 351px;
}

@media (min-width: 768px) {
    .laptop-base {
        height: 21px;
        max-width: 597px;
    }
}

.laptop-notch {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    border-radius: 0 0 0.75rem 0.75rem;
    width: 56px;
    height: 5px;
    background: #1f2937;
}

@media (min-width: 768px) {
    .laptop-notch {
        width: 96px;
        height: 8px;
    }
}

/* ===== 3. SISTEMA DE CONTENIDO DEL LAPTOP ===== */
.laptop-content-area {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

/* Asegurar que el contenedor del mockup no se desborde */
.order-1.lg\\:order-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    min-height: 200px;
}

@media (min-width: 768px) {
    .order-1.lg\\:order-2 {
        min-height: 320px;
    }
}

/* ARREGLAR DISTRIBUCIÓN DE BOTONES */
@media (min-width: 1024px) {
    /* En desktop: botones en columna vertical con buen espaciado */
    .responsive-button-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }
    
    .phone-nav-button {
        width: 100% !important;
        min-height: auto !important;
        padding: 1.5rem !important;
    }
}

@media (max-width: 1023px) {
    /* En móvil/tablet: mantener grid de 2 columnas pero con mejor espaciado */
    .responsive-button-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
        margin-bottom: 2rem !important;
    }
}

.laptop-content-area .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

.laptop-content-area .content.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.laptop-content-area .content.hide {
    opacity: 0;
    transform: translateX(-100%) scale(0.95);
}

.laptop-content-area .screen-content {
    width: 100%;
    height: 100%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
}

/* Ajustar tamaños para el mockup simple */
.laptop-content-area .screen-content h2 {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
}

.laptop-content-area .screen-content p {
    font-size: 0.8rem !important;
    margin-bottom: 0.75rem !important;
}

.laptop-content-area .screen-content .w-16.h-16 {
    width: 3rem !important;
    height: 3rem !important;
    margin-bottom: 0.75rem !important;
}

.laptop-content-area .screen-content .space-y-3 {
    gap: 0.5rem !important;
}

.laptop-content-area .screen-content .bg-white\\/10 {
    padding: 0.5rem !important;
}

.laptop-content-area .screen-content .bg-white\\/10 p {
    font-size: 0.7rem !important;
}
    justify-content: space-between;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 0.8rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 0 80px rgba(0,0,0,0.2),
        inset 0 0 30px rgba(255,255,255,0.02);
}

.laptop-content-area .screen-content > div {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.laptop-content-area .screen-content .text-center {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.laptop-content-area .screen-content .space-y-3 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 0.5rem;
}

.laptop-content-area .screen-content .space-y-3 > div {
    padding: 0.5rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.laptop-content-area .screen-content h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.laptop-content-area .screen-content .w-16.h-16 {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.laptop-content-area .screen-content p {
    font-size: 11px;
    margin: 0;
}

.laptop-content-area .screen-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
    border-radius: 0.8rem;
}

/* ===== 4. SISTEMA RESPONSIVE - DESKTOP ===== */
/* Ultra Wide Desktop - 1920px+ */
@media (min-width: 1920px) {
    .laptop-mockup,
    .laptop {
        max-width: 36rem !important;
    }
    
    .laptop__screen {
        margin: 0 3% 2px 1%;
    }
    
    .laptop__bottom {
        margin: 0 -7% 0 -7%;
    }
    
    .laptop-content-area .screen-content {
        padding: 24px;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .laptop-content-area .screen-content h2 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .laptop-content-area .screen-content .w-16.h-16 {
        width: 3.5rem;
        height: 3.5rem;
        margin-bottom: 0.75rem;
    }
    
    .laptop-content-area .screen-content .space-y-3 > div {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .laptop-content-area .screen-content p {
        font-size: 12px;
    }
}

/* Desktop Extra Large - 1600px to 1919px */
@media (max-width: 1919px) and (min-width: 1601px) {
    .laptop-mockup,
    .laptop {
        max-width: 35rem !important;
    }
    
    .laptop__screen {
        margin: 0 3% 2px 1%;
    }
    
    .laptop__bottom {
        margin: 0 -6.5% 0 -6.5%;
    }
    
    .laptop-content-area .screen-content {
        padding: 26px;
        font-size: 15px;
        line-height: 1.6;
    }
    
    .laptop-content-area .screen-content h2 {
        font-size: 1.4rem;
    }
}

/* Desktop Large Plus - 1440px to 1600px */
@media (max-width: 1600px) and (min-width: 1441px) {
    .laptop-mockup,
    .laptop {
        max-width: 34rem !important;
    }
    
    .laptop__screen {
        margin: 0 3% 2px 1%;
    }
    
    .laptop__bottom {
        margin: 0 -6% 0 -6%;
    }
}

/* Desktop Large - 1200px to 1440px */
@media (max-width: 1440px) and (min-width: 1201px) {
    .laptop-mockup,
    .laptop {
        max-width: 32rem !important;
    }
    
    .laptop__screen {
        margin: 0 3% 2px 1%;
    }
    
    .laptop__bottom {
        margin: 0 -5% 0 -5%;
    }
    
    .laptop-content-area .screen-content {
        padding: 20px;
        font-size: 13px;
        line-height: 1.4;
        justify-content: space-between;
    }
    
    .laptop-content-area .screen-content > div {
        height: 100%;
        justify-content: space-between;
    }
    
    .laptop-content-area .screen-content h2 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .laptop-content-area .screen-content .w-16.h-16 {
        width: 2.75rem;
        height: 2.75rem;
        margin-bottom: 0.5rem;
    }
    
    .laptop-content-area .screen-content .space-y-3 > div {
        padding: 0.5rem;
        margin-bottom: 0.3rem;
    }
    
    .laptop-content-area .screen-content p {
        font-size: 10px;
    }
}

/* ===== 5. SISTEMA RESPONSIVE - TABLET ===== */
/* Tablet Landscape - 900px to 1024px */
@media (max-width: 1024px) and (min-width: 901px) {
    .laptop-mockup,
    .laptop {
        max-width: 26rem !important;
        transform: scale(0.95) rotateX(4deg);
    }
    
    .laptop__screen {
        min-height: 220px;
        margin: 0 3% 2px 2%;
    }
    
    .laptop__bottom {
        margin: 0 -3% 0 -3%;
    }
    
    .laptop-content-area {
        min-height: 200px;
    }
}

/* Tablet Portrait - 768px to 900px */
@media (max-width: 900px) and (min-width: 769px) {
    .laptop-mockup,
    .laptop {
        max-width: 24rem !important;
        transform: scale(0.9) rotateX(3deg);
    }
    
    .laptop__screen {
        margin: 0 4% 2px 3%;
        min-height: 200px;
    }
    
    .laptop__bottom {
        margin: 0 -2% 0 -2%;
    }
    
    .laptop-content-area {
        min-height: 180px;
    }
    
    .laptop-content-area .screen-content {
        padding: 18px;
        font-size: 13px;
        line-height: 1.4;
    }
    
    .laptop-content-area .screen-content h2 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .laptop-content-area .screen-content .w-16.h-16 {
        width: 3rem;
        height: 3rem;
    }
    
    .laptop-content-area .screen-content .space-y-3 > div {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Small Tablet - 600px to 768px */
@media (max-width: 768px) and (min-width: 601px) {
    .laptop-mockup,
    .laptop {
        max-width: 22rem !important;
        transform: scale(0.85) rotateX(3deg);
    }
    
    .laptop__screen {
        margin: 0 5% 2px 4%;
        min-height: 180px;
    }
    
    .laptop__bottom {
        margin: 0 -1% 0 -1%;
    }
}

/* ===== 6. SISTEMA RESPONSIVE - MÓVIL PORTRAIT ===== */
/* Base mobile styles - Diseño optimizado */
@media (max-width: 767px) {
    .laptop-mockup,
    .laptop {
        max-width: 380px;
        width: 100%;
        margin: 0 auto;
        transform: scale(0.85) rotateX(3deg);
        transform-origin: center;
    }
    
    .laptop__screen {
        padding: 2%;
        border-radius: 1rem;
        min-height: 240px;
        margin: 0 -17% 2px -13%;
        width: 130%;
        box-shadow: 
            0 0 0 1px rgba(255,255,255,0.7),
            0 0 0 2px #cbd5e1,
            0 0 0 3px rgba(0,0,0,0.08),
            0 3px 15px rgba(0,0,0,0.12),
            0 8px 25px rgba(0,0,0,0.08),
            0 15px 35px rgba(0,0,0,0.04),
            inset 0 1px 0 rgba(255,255,255,0.8),
            inset 0 -1px 0 rgba(0,0,0,0.08);
    }
    
    .laptop__screen::before {
        border-radius: 0.8rem;
    }
    
    .laptop__screen::after {
        top: 12px;
        width: 6px;
        height: 6px;
    }
    
    .laptop-content-area {
        min-height: 225px;
        max-height: 230px;
        border-radius: 0.6rem;
        overflow: hidden !important;
    }
    
    .laptop-content-area .content {
        overflow: hidden !important;
        height: 100% !important;
    }
    
    .laptop-content-area .screen-content {
        padding: 16px;
        font-size: 12px;
        line-height: 1.4;
        overflow: hidden !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }
    
    .laptop-content-area .screen-content > div {
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        height: 100% !important;
        box-sizing: border-box !important;
    }
    
    .laptop-content-area .screen-content .text-center {
        flex-shrink: 0 !important;
        overflow: hidden !important;
        margin-bottom: 0.75rem !important;
    }
    
    .laptop-content-area .screen-content .space-y-3 {
        flex: 1 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-around !important;
        gap: 0.4rem !important;
    }
    
    .laptop-content-area .screen-content .space-y-3 > div {
        flex-shrink: 0 !important;
        overflow: hidden !important;
        white-space: normal !important;
        text-overflow: ellipsis !important;
        max-height: 2.5em !important;
        line-height: 1.2 !important;
    }
    
    .laptop__bottom {
        height: 1.4rem;
        margin: 0 -20% 0 -20%;
        border-radius: 0.2rem 0.2rem 0.6rem 0.6rem;
    }
    
    .laptop__bottom::before {
        height: 6px;
        width: 20%;
        bottom: 4px;
    }
    
    .laptop__bottom::after {
        top: 3px;
        height: 8px;
    }
    
    .laptop__shadow {
        top: 100%;
        height: 2.5rem;
        left: -15%;
        right: -15%;
    }
}

/* Phablets - 375px+ */
@media (min-width: 375px) and (max-width: 767px) {
    .laptop-mockup,
    .laptop {
        max-width: 380px;
        transform: scale(0.95);
    }
    
    .laptop__screen {
        min-height: 220px;
    }
    
    .laptop-content-area {
        min-height: 190px;
    }
}

/* Large Mobile - 480px to 600px */
@media (max-width: 600px) and (min-width: 481px) {
    .laptop-mockup,
    .laptop {
        max-width: 380px;
        transform: scale(0.9) rotateX(3deg);
    }
    
    .laptop__screen {
        margin: 0 -15% 2px -13%;
        width: 128%;
        min-height: 200px;
    }
    
    .laptop__bottom {
        margin: 0 -18% 0 -18%;
    }
}

/* Standard Mobile - 375px to 480px */
@media (max-width: 480px) and (min-width: 376px) {
    .laptop-mockup,
    .laptop {
        max-width: 360px;
        transform: scale(0.85) rotateX(3deg);
    }
    
    .laptop__screen {
        margin: 0 -16% 2px -14%;
        width: 130%;
        min-height: 190px;
    }
    
    .laptop__bottom {
        margin: 0 -19% 0 -19%;
    }
    
    .laptop-content-area {
        min-height: 210px !important;
        max-height: 215px !important;
    }
    
    .laptop-content-area .screen-content {
        padding: 8px;
        font-size: 9px;
        line-height: 1.2;
        justify-content: flex-start;
    }
    
    .laptop-content-area .screen-content > div {
        height: auto;
        gap: 0.3rem;
    }
    
    .laptop-content-area .screen-content .text-center {
        margin-bottom: 0.5rem;
    }
    
    .laptop-content-area .screen-content h2 {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
        line-height: 1.1;
    }
    
    .laptop-content-area .screen-content .w-16.h-16 {
        width: 1.5rem;
        height: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .laptop-content-area .screen-content .space-y-3 {
        gap: 0.3rem !important;
        flex: none;
    }
    
    .laptop-content-area .screen-content .space-y-3 > div {
        padding: 0.4rem !important;
        font-size: 9px !important;
        line-height: 1.3 !important;
        max-height: 2.2em !important;
        border-radius: 0.3rem;
    }
    
    .laptop-content-area .screen-content p {
        font-size: 7px;
        line-height: 1.1;
        margin: 0;
    }
    
    .laptop-content-area .screen-content .opacity-90 {
        font-size: 6px;
    }
}

/* Small Mobile - 320px to 375px */
@media (max-width: 375px) and (min-width: 321px) {
    .laptop-mockup,
    .laptop {
        max-width: 340px;
        transform: scale(0.8) rotateX(3deg);
    }
    
    .laptop__screen {
        margin: 0 -17% 2px -13%;
        width: 130%;
        min-height: 180px;
    }
    
    .laptop__bottom {
        margin: 0 -20% 0 -20%;
    }
    
    .laptop-content-area {
        min-height: 200px !important;
        max-height: 205px !important;
    }
    
    .laptop-content-area .screen-content {
        padding: 10px !important;
        font-size: 10px !important;
    }
    
    .laptop-content-area .screen-content .space-y-3 > div {
        max-height: 2em !important;
    }
}

/* Extra Small Mobile - hasta 320px */
@media (max-width: 320px) {
    .laptop-mockup,
    .laptop {
        max-width: 300px;
        transform: scale(0.75) rotateX(3deg);
    }
    
    .laptop__screen {
        margin: 0 -18% 2px -12%;
        width: 130%;
        min-height: 170px;
    }
    
    .laptop__bottom {
        margin: 0 -21% 0 -21%;
    }
    
    .laptop-content-area .screen-content {
        padding: 8px;
        font-size: 9px;
        line-height: 1.2;
    }
    
    .laptop-content-area .screen-content h2 {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .laptop-content-area .screen-content .w-16.h-16 {
        width: 2rem;
        height: 2rem;
        margin-bottom: 0.3rem;
    }
    
    .laptop-content-area .screen-content .space-y-3 > div {
        padding: 0.3rem;
        margin-bottom: 0.2rem;
        border-radius: 0.4rem;
    }
}

/* ===== 7. SISTEMA RESPONSIVE - MÓVIL LANDSCAPE ===== */
@media (max-width: 926px) and (orientation: landscape) {
    .laptop-content-area {
        min-height: 160px !important;
        max-height: 170px !important;
    }
    
    .laptop-content-area .screen-content {
        padding: 8px !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
    }
    
    .laptop-content-area .screen-content h2 {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .laptop-content-area .screen-content .w-16.h-16 {
        width: 1.5rem !important;
        height: 1.5rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .laptop-content-area .screen-content .text-center {
        margin-bottom: 0.5rem !important;
    }
    
    .laptop-content-area .screen-content .space-y-3 {
        gap: 0.2rem !important;
    }
    
    .laptop-content-area .screen-content .space-y-3 > div {
        padding: 0.25rem !important;
        font-size: 8px !important;
        line-height: 1.1 !important;
        max-height: 1.8em !important;
    }
    
    .laptop-content-area .screen-content .opacity-90 {
        font-size: 7px !important;
    }
}

/* Landscape para teléfonos pequeños */
@media (max-width: 740px) and (orientation: landscape) {
    .laptop-content-area {
        min-height: 140px !important;
        max-height: 150px !important;
    }
    
    .laptop-content-area .screen-content {
        padding: 6px !important;
        font-size: 9px !important;
    }
    
    .laptop-content-area .screen-content h2 {
        font-size: 0.8rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .laptop-content-area .screen-content .w-16.h-16 {
        width: 1.25rem !important;
        height: 1.25rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .laptop-content-area .screen-content .space-y-3 > div {
        padding: 0.2rem !important;
        font-size: 7px !important;
        line-height: 1 !important;
        max-height: 1.5em !important;
    }
}

/* ===== 8. ANIMACIONES Y EFECTOS ===== */
@keyframes laptopFloat {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

/* Animaciones para teléfonos flotantes del hero */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0px) rotate(-12deg) scale(0.9); }
    50% { transform: translateY(-8px) rotate(-12deg) scale(0.9); }
}

@keyframes float-gentle-right {
    0% { transform: translateY(0px) rotate(12deg) scale(0.9); }
    50% { transform: translateY(-10px) rotate(12deg) scale(0.9); }
    100% { transform: translateY(0px) rotate(12deg) scale(0.9); }
}

@keyframes breathe-main {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0px) rotateX(0deg); }
    50% { transform: translateY(-10px) rotateX(2deg); }
}

/* Clases de animación para teléfonos */
.phone-float-left {
    transform: translateY(0px) rotate(-12deg) scale(0.9);
    animation: float-gentle 3s ease-in-out infinite;
    animation-fill-mode: both;
}

.phone-float-right {
    transform: translateY(0px) rotate(12deg) scale(0.9);
    animation: float-gentle-right 3.5s ease-in-out infinite;
    animation-delay: 1s;
    animation-fill-mode: both;
}

.phone-main {
    animation: breathe-main 4s ease-in-out infinite;
}

.phone-floating {
    animation: phoneFloat 6s ease-in-out infinite;
}

/* ===== 9. SISTEMA PHONE MOCKUP ===== */
.phone-mockup {
    width: 320px;
    height: 640px;
    position: relative;
    margin: 0 auto;
    filter: drop-shadow(0 35px 80px rgba(0,0,0,0.4));
}

.phone-frame {
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(145deg, #3a3a3a 0%, #2a2a2a 25%, #1a1a1a 50%, #0f0f0f 75%, #000 100%);
    border-radius: 45px;
    padding: 8px;
    position: relative;
    box-shadow: 
        /* Bordes metálicos */
        inset 0 0 0 1px rgba(255,255,255,0.1),
        inset 0 0 0 2px rgba(0,0,0,0.8),
        inset 0 0 0 3px rgba(255,255,255,0.05),
        /* Sombras externas */
        0 0 20px rgba(0,0,0,0.6),
        0 5px 40px rgba(0,0,0,0.4);
}

/* Dynamic Island */
.phone-frame::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 35px;
    background: 
        linear-gradient(145deg, #000 0%, #1a1a1a 50%, #000 100%);
    border-radius: 25px;
    z-index: 15;
    box-shadow: 
        inset 0 1px 3px rgba(255,255,255,0.1),
        inset 0 -1px 3px rgba(0,0,0,0.9);
}

/* Cámara frontal */
.phone-frame::after {
    content: '';
    position: absolute;
    top: 35px;
    left: calc(50% - 25px);
    width: 12px;
    height: 12px;
    background: 
        radial-gradient(circle, #000 30%, #333 60%, #000 100%);
    border-radius: 50%;
    z-index: 16;
    box-shadow: 
        inset 0 0 3px rgba(0,0,0,0.8),
        0 0 2px rgba(255,255,255,0.1);
}

/* Sensor de proximidad */
.phone-sensor {
    position: absolute;
    top: 37px;
    left: calc(50% + 15px);
    width: 8px;
    height: 8px;
    background: 
        radial-gradient(circle, #1a1a1a 20%, #000 70%);
    border-radius: 50%;
    z-index: 16;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.9);
}

/* Botón subir volumen */
.volume-up {
    position: absolute;
    left: -3px;
    top: 140px;
    width: 6px;
    height: 30px;
    background: linear-gradient(90deg, #2a2a2a, #1a1a1a, #2a2a2a);
    border-radius: 0 3px 3px 0;
    box-shadow: 
        inset 1px 0 2px rgba(255,255,255,0.1),
        inset -1px 0 2px rgba(0,0,0,0.3);
}

/* Botón bajar volumen */
.volume-down {
    position: absolute;
    left: -3px;
    top: 180px;
    width: 6px;
    height: 30px;
    background: linear-gradient(90deg, #2a2a2a, #1a1a1a, #2a2a2a);
    border-radius: 0 3px 3px 0;
    box-shadow: 
        inset 1px 0 2px rgba(255,255,255,0.1),
        inset -1px 0 2px rgba(0,0,0,0.3);
}

/* Botón de encendido */
.power-button {
    position: absolute;
    right: -3px;
    top: 160px;
    width: 6px;
    height: 45px;
    background: linear-gradient(90deg, #2a2a2a, #1a1a1a, #2a2a2a);
    border-radius: 3px 0 0 3px;
    box-shadow: 
        inset -1px 0 2px rgba(255,255,255,0.1),
        inset 1px 0 2px rgba(0,0,0,0.3);
}

/* Rejilla del altavoz */
.speaker-grill {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: 
        linear-gradient(90deg, transparent 0%, #333 20%, #555 50%, #333 80%, transparent 100%);
    border-radius: 2px;
    z-index: 15;
}

/* Pantalla del teléfono */
.phone-screen {
    width: 100%;
    height: calc(100% - 16px);
    background: 
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.1) 0%, transparent 50%),
        linear-gradient(180deg, #000 0%, #111  100%);
    border-radius: 35px;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 
        inset 0 2px 10px rgba(0,0,0,0.5),
        inset 0 -2px 10px rgba(0,0,0,0.3);
}

/* Reflejos de la pantalla */
.phone-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(78, 205, 196,0.05) 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
}

/* Barra de estado simulada */
.phone-screen::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 20px;
    right: 20px;
    height: 20px;
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(255,255,255,0.1) 20%, 
            rgba(255,255,255,0.05) 50%, 
            rgba(255,255,255,0.1) 80%, 
            transparent 100%);
    border-radius: 10px;
    z-index: 2;
}

/* Área de contenido del teléfono */
.phone-content-area {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 35px;
    overflow: hidden;
    z-index: 2;
}

.phone-content-area .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

.phone-content-area .content.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.phone-content-area .content.hide {
    opacity: 0;
    transform: translateX(-100%) scale(0.95);
}

.phone-content-area .screen-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 35px;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

/* ===== 9.1. ESTILOS DE BOTONES CRÍTICOS ===== */
/* Estilos para botones en fondos oscuros */
.phone-nav-button.active.on-dark-bg {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: #4ECDC4 !important;
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.phone-nav-button.on-dark-bg:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

/* Reglas específicas para desktop en secciones con fondo teal */
@media (min-width: 768px) {
    section#veterinarios .phone-nav-button.active,
    section#empresas .phone-nav-button.active {
        background: rgba(255, 255, 255, 0.95) !important;
        border-color: #4ECDC4 !important;
        box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4) !important;
    }
    
    section#veterinarios .phone-nav-button.active .w-12.h-12,
    section#empresas .phone-nav-button.active .w-12.h-12 {
        background: #4ECDC4 !important;
    }
    
    section#veterinarios .phone-nav-button.active .w-12.h-12 svg,
    section#empresas .phone-nav-button.active .w-12.h-12 svg {
        color: white !important;
    }
}

/* Efectos de botones adicionales - Solo Desktop */
@media (min-width: 768px) {
    .phone-nav-button {
        position: relative;
        overflow: hidden;
    }

    .phone-nav-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.08), transparent);
        transition: left 0.4s ease;
        border-radius: inherit;
        pointer-events: none;
        z-index: 1;
        opacity: 0;
    }

    .phone-nav-button:hover::before {
        left: 100%;
        opacity: 1;
    }
}

/* Asegurar que el contenido esté encima del efecto - Solo Desktop */
@media (min-width: 768px) {
    .phone-nav-button h3,
    .phone-nav-button p,
    .phone-nav-button .w-12,
    .phone-nav-button svg,
    .phone-nav-button .flex {
        position: relative;
        z-index: 2;
    }
}

/* Reset de focus y outline para botones */
.phone-nav-button:focus {
    outline: none !important;
    box-shadow: none !important;
}

.phone-nav-button:focus-visible {
    outline: 2px solid rgba(78, 205, 196, 0.6);
    outline-offset: 2px;
}

/* ===== 10. SISTEMA NOTEBOOK LEGACY ===== */
/* El notebook usa el mismo sistema que laptop-mockup para coherencia visual */
.notebook-mockup {
    /* Redirigir al sistema laptop existente */
}

/* ===== 11. UTILIDADES Y HELPERS ===== */
/* Optimización de rendimiento */
.laptop-mockup,
.phone-mockup {
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* GPU acceleration */
.laptop,
.laptop__screen,
.laptop-content-area,
.phone-frame,
.phone-screen,
.phone-content-area {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reducir efectos en móviles para mejor rendimiento */
@media (max-width: 768px) {
    .laptop,
    .phone-frame,
    .notebook-mockup {
        will-change: auto;
    }
    
    .laptop-mockup,
    .phone-mockup,
    .notebook-mockup {
        animation: none;
    }
}