/* ============================================
   DF DEV - Portfolio Styles
   Colors: Negro, Rojo, Azul
   ============================================ */

/* ===== VARIABLES ===== */
:root {
    --black: #0a0a0a;
    --black-light: #141414;
    --black-card: #1a1a1a;
    --black-hover: #222222;
    --red: #e63946;
    --red-dark: #c5303c;
    --red-glow: rgba(230, 57, 70, 0.3);
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-glow: rgba(37, 99, 235, 0.3);
    --white: #ffffff;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-sm: 8px;
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--black);
    color: var(--gray-200);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(230, 57, 70, 0.3);
    color: var(--white);
}

::-moz-selection {
    background: rgba(230, 57, 70, 0.3);
    color: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    color: var(--white);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== FOCUS VISIBLE (accessibility) ===== */
*:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
    border-radius: 4px;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== TEXT GRADIENTS ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--red), #ff6b7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-blue {
    background: linear-gradient(135deg, var(--blue), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white);
    box-shadow: 0 4px 20px var(--red-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--red-glow);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(37, 99, 235, 0.05);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-admin {
    background: var(--black-card);
    color: var(--gray-300);
    border: 1px solid var(--gray-700);
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-admin:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: transparent;
}

.navbar.scrolled {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.85));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(230, 57, 70, 0.1);
    padding: 12px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-400);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red), var(--blue));
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 60%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--red);
    top: -200px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--blue);
    bottom: -200px;
    left: -200px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--red);
    bottom: 20%;
    right: 20%;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), rgba(37, 99, 235, 0.15));
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out, glowPulse 4s ease-in-out infinite 1s;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.1);
    backdrop-filter: blur(10px);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease-out 0.1s both;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 36px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 60px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--white);
}

.stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--red);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-700);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--white), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== SERVICIOS ===== */
.servicios {
    padding: 100px 0;
    background: var(--black-light);
    position: relative;
}

.servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.3), rgba(37, 99, 235, 0.3), transparent);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.servicio-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(20, 20, 20, 0.95));
    border: 1px solid rgba(230, 57, 70, 0.15);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--blue));
    opacity: 0;
    transition: var(--transition);
}

.servicio-card:hover {
    transform: translateY(-10px);
    border-color: var(--red);
    box-shadow: 0 20px 50px rgba(230, 57, 70, 0.2);
    background: linear-gradient(135deg, rgba(26, 26, 26, 1), rgba(20, 20, 20, 1));
}

.servicio-card:hover::before {
    opacity: 1;
}

.servicio-card.featured {
    border-color: rgba(230, 57, 70, 0.3);
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.05), var(--black-card));
}

.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: var(--red);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.servicio-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: var(--radius);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    color: var(--blue);
}

.servicio-card:hover .servicio-icon {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2), rgba(37, 99, 235, 0.2));
    border-color: var(--red);
    color: var(--red);
    transform: scale(1.1);
}

.servicio-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.servicio-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ===== EQUIPO ===== */
.equipo {
    padding: 100px 0;
}

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.equipo-card {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.equipo-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.equipo-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.4s ease;
}

.equipo-card:hover .equipo-photo {
    border-color: var(--red);
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.2);
}

.equipo-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.equipo-card:hover .equipo-photo img {
    transform: scale(1.05);
}

.equipo-card h3 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.equipo-role {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== PORTFOLIO ===== */
.portfolio {
    padding: 100px 0;
}

.admin-toggle-wrapper {
    text-align: center;
    margin-bottom: 32px;
}

/* Admin Panel */
.admin-panel {
    background: var(--black-card);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 40px;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.admin-panel.active {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.admin-panel-header h3 {
    font-size: 1.3rem;
}

.admin-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black-hover);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius-sm);
    color: var(--gray-400);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.admin-close:hover {
    color: var(--red);
    border-color: var(--red);
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.admin-form .form-group {
    margin-bottom: 20px;
}

.admin-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-300);
    margin-bottom: 6px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 12px 16px;
    background: var(--black);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
}

.admin-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a1a1aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--gray-700);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--blue);
    background: rgba(37, 99, 235, 0.03);
}

.upload-content {
    color: var(--gray-500);
}

.upload-content svg {
    margin: 0 auto 12px;
    color: var(--gray-600);
}

.upload-content p {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.upload-link {
    color: var(--blue);
    font-weight: 500;
    cursor: pointer;
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* Image Preview Grid */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--gray-700);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(230, 57, 70, 0.9);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: var(--transition);
}

.image-preview-item:hover .remove-image {
    opacity: 1;
}

/* Portfolio Filter */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--gray-700);
    border-radius: 50px;
    color: var(--gray-400);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
    border-color: var(--gray-500);
    color: var(--white);
}

.filter-btn.active {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.portfolio-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(20, 20, 20, 0.95));
    border: 1px solid rgba(230, 57, 70, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInUp 0.5s ease-out;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.portfolio-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(230, 57, 70, 0.2);
    border-color: var(--red);
    background: linear-gradient(135deg, rgba(26, 26, 26, 1), rgba(20, 20, 20, 1));
}

.portfolio-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(3px) brightness(0.85);
}

.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.05);
    filter: blur(0) brightness(1);
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 10, 10, 0.85), rgba(230, 57, 70, 0.05));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-card-overlay {
    opacity: 1;
}

.portfolio-card-overlay .btn {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.portfolio-card-body {
    padding: 20px 24px;
}

.portfolio-card-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.portfolio-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.portfolio-card-body p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Price Range Badge */
.portfolio-price-range {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 8px;
    color: var(--red);
    font-weight: 600;
    font-size: 0.85rem;
}

.portfolio-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px 20px;
    flex-wrap: wrap;
}

.portfolio-card-actions .btn {
    padding: 6px 14px;
    font-size: 0.8rem;
}

/* Request Project Button */
.btn-request-project {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--red), var(--red-dark, #b02a35));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    font-family: inherit;
}

.btn-request-project:hover {
    background: linear-gradient(135deg, var(--red-dark, #b02a35), var(--red));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-request-project svg {
    flex-shrink: 0;
}

.portfolio-card .delete-project {
    margin-left: auto;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--gray-700);
    border-radius: var(--radius-sm);
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.portfolio-card .delete-project:hover {
    color: var(--red);
    border-color: var(--red);
    background: rgba(230, 57, 70, 0.1);
}

/* Image dots/pagination */
.portfolio-card-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    z-index: 2;
}

.portfolio-card-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.portfolio-card-dots .dot.active {
    background: var(--white);
    width: 20px;
    border-radius: 4px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-600);
    display: none;
}

.empty-state.visible {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.empty-state svg {
    margin: 0 auto 20px;
    opacity: 0.4;
}

.empty-state h3 {
    color: var(--gray-400);
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.empty-state p {
    color: var(--gray-600);
    max-width: 400px;
    margin: 0 auto;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--red);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-image-wrapper {
    max-width: 80vw;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.lightbox-info {
    text-align: center;
    margin-top: 20px;
    padding: 0 20px;
}

.lightbox-info h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.lightbox-info p {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.lightbox-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gray-400);
    font-size: 0.85rem;
}

/* ===== CONTACTO ===== */
.contacto {
    padding: 100px 0;
    background: var(--black-light);
    position: relative;
}

.contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.3), rgba(37, 99, 235, 0.3), transparent);
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contacto-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 16px;
}

.contacto-info > p {
    color: var(--gray-400);
    margin-bottom: 40px;
}

.contacto-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contacto-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 57, 70, 0.1);
    border-radius: var(--radius);
    color: var(--red);
}

.feature-icon.blue {
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue);
}

.feature-icon.red {
    background: rgba(230, 57, 70, 0.1);
    color: var(--red);
}

.contacto-feature h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.contacto-feature p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Contact Form */
.contacto-form-wrapper {
    position: relative;
}

.contacto-form {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(20, 20, 20, 0.95));
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: var(--radius-lg);
    padding: 36px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.contacto-form h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.contacto-form .form-group {
    margin-bottom: 20px;
}

.contacto-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-300);
    margin-bottom: 6px;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
    color: var(--gray-600);
}

/* WhatsApp Service Selector */
.wa-subtitle {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.wa-services {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.wa-service-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: var(--radius);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: left;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.wa-service-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0), rgba(37, 211, 102, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wa-service-btn:hover {
    border-color: #25d366;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(37, 211, 102, 0.05));
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.15);
}

.wa-service-btn:hover::before {
    opacity: 1;
}

.wa-service-btn:hover .wa-service-icon {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
}

.wa-service-btn:hover .wa-arrow {
    color: #25d366;
    opacity: 1;
}

.wa-service-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-sm);
    color: var(--blue);
    transition: var(--transition);
}

.wa-service-info {
    flex: 1;
}

.wa-service-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.wa-service-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.wa-arrow {
    color: var(--gray-600);
    opacity: 0.5;
    transition: var(--transition);
    flex-shrink: 0;
}

.wa-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: var(--radius-sm);
    color: #25d366;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(230, 57, 70, 0.1);
    background: linear-gradient(180deg, transparent, rgba(230, 57, 70, 0.03));
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), var(--blue), transparent);
    opacity: 0.5;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--gray-500);
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red), var(--blue));
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(230, 57, 70, 0.1);
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), var(--blue), transparent);
    margin-top: -1px;
}

.footer-bottom p {
    color: var(--gray-600);
    font-size: 0.8rem;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(230, 57, 70, 0.5);
}

/* ===== TOAST / NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px;
    background: var(--black-card);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
}

.toast.success {
    border-color: #22c55e;
}

.toast.error {
    border-color: var(--red);
}

.toast-icon {
    font-size: 1.2rem;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== RESPONSIVE ===== */

/* --- TABLET (max 1024px) --- */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding: 120px 24px 80px;
    }

    .hero-content {
        max-width: 650px;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 5vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-stats {
        gap: 24px;
        margin-top: 48px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .servicios, .equipo, .portfolio, .contacto {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .equipo-grid {
        gap: 28px;
    }

    .equipo-photo {
        width: 120px;
        height: 120px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }

    .contacto-wrapper {
        gap: 40px;
    }

    .wa-service-btn {
        padding: 14px 16px;
    }

    .lightbox-image-wrapper {
        max-width: 85vw;
    }

    .lightbox-nav {
        width: 42px;
        height: 42px;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }
}

/* --- MOBILE (max 768px) --- */
@media (max-width: 768px) {
    /* Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--black-card);
        flex-direction: column;
        padding: 80px 30px;
        gap: 4px;
        transition: var(--transition);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: 14px 18px;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }

    .nav-links a::after {
        display: none;
    }

    .navbar {
        padding: 12px 0;
    }

    .navbar.scrolled {
        padding: 10px 0;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .logo-img {
        width: 34px;
        height: 34px;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 110px 20px 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: -0.01em;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 8px 18px;
        margin-bottom: 20px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .hero-stats {
        gap: 16px;
        margin-top: 40px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-plus {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-divider {
        height: 30px;
    }

    /* Background shapes - reduce size on mobile */
    .shape-1 {
        width: 300px;
        height: 300px;
    }

    .shape-2 {
        width: 250px;
        height: 250px;
    }

    .shape-3 {
        width: 150px;
        height: 150px;
    }

    /* Sections */
    .servicios, .equipo, .portfolio, .contacto {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .section-tag {
        font-size: 0.7rem;
        padding: 5px 14px;
    }

    /* Servicios */
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .servicio-card {
        padding: 28px 24px;
    }

    .servicio-card:hover {
        transform: translateY(-4px);
    }

    .servicio-icon {
        width: 48px;
        height: 48px;
    }

    /* Equipo */
    .equipo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        max-width: 100%;
    }

    .equipo-card {
        padding: 20px 12px;
        border-radius: 16px;
    }

    .equipo-photo {
        width: 80px;
        height: 80px;
        margin-bottom: 12px;
    }

    .equipo-card h3 {
        font-size: 0.95rem;
    }

    .equipo-role {
        font-size: 0.75rem;
    }

    .equipo-card:hover {
        transform: translateY(-2px);
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .portfolio-card:hover {
        transform: translateY(-4px);
    }

    .portfolio-card-body {
        padding: 16px 20px;
    }

    .portfolio-card-body h3 {
        font-size: 1rem;
    }

    .portfolio-card-actions {
        padding: 10px 20px 16px;
    }

    .portfolio-filter {
        gap: 8px;
        margin-bottom: 28px;
        padding: 0 4px;
    }

    .filter-btn {
        padding: 7px 16px;
        font-size: 0.8rem;
    }

    .admin-form .form-row {
        grid-template-columns: 1fr;
    }

    /* Empty state */
    .empty-state {
        padding: 50px 16px;
    }

    .empty-state svg {
        width: 48px;
        height: 48px;
    }

    .empty-state h3 {
        font-size: 1.1rem;
    }

    /* Contacto */
    .contacto-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contacto-info h2 {
        font-size: 1.6rem;
    }

    .contacto-info > p {
        margin-bottom: 28px;
    }

    .contacto-features {
        gap: 16px;
        margin-bottom: 8px;
    }

    .contacto-feature h4 {
        font-size: 0.9rem;
    }

    .contacto-feature p {
        font-size: 0.8rem;
    }

    .feature-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .feature-icon svg {
        width: 20px;
        height: 20px;
    }

    .contacto-form {
        padding: 28px 20px;
    }

    .contacto-form h3 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .wa-subtitle {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    .wa-service-btn {
        padding: 12px 14px;
        gap: 12px;
    }

    .wa-service-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .wa-service-icon svg {
        width: 22px;
        height: 22px;
    }

    .wa-service-name {
        font-size: 0.88rem;
    }

    .wa-service-desc {
        font-size: 0.75rem;
    }

    .wa-badge {
        font-size: 0.8rem;
        padding: 10px;
    }

    /* Lightbox */
    .lightbox-image-wrapper {
        max-width: 95vw;
        max-height: 60vh;
    }

    .lightbox-img {
        max-height: 60vh;
    }

    .lightbox-nav {
        width: 38px;
        height: 38px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }

    .lightbox-info h3 {
        font-size: 1rem;
    }

    .lightbox-info p {
        font-size: 0.85rem;
    }

    /* Footer */
    .footer {
        padding: 40px 0 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        padding-top: 20px;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }

    /* Scroll to top */
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    /* Toast */
    .toast-container {
        right: 12px;
        left: 12px;
        top: 80px;
    }

    .toast {
        min-width: auto;
        font-size: 0.85rem;
        padding: 12px 16px;
    }

    /* Container */
    .container {
        padding: 0 16px;
    }
}

/* --- SMALL MOBILE (max 480px) --- */
@media (max-width: 480px) {
    .hero {
        padding: 100px 16px 50px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 7px 14px;
    }

    .hero-stats {
        gap: 12px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-plus {
        font-size: 1.2rem;
    }

    .stat-divider {
        height: 24px;
    }

    /* Equipo pequeño */
    .equipo-grid {
        gap: 8px;
    }

    .equipo-card {
        padding: 16px 8px;
    }

    .equipo-photo {
        width: 64px;
        height: 64px;
        border-width: 2px;
    }

    .equipo-card h3 {
        font-size: 0.85rem;
    }

    .equipo-role {
        font-size: 0.7rem;
    }

    /* Servicios */
    .servicio-card {
        padding: 24px 20px;
    }

    .servicio-card h3 {
        font-size: 1.05rem;
    }

    /* Portfolio */
    .portfolio-filter {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .portfolio-card-body {
        padding: 14px 16px;
    }

    .portfolio-card-category {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .portfolio-card-body h3 {
        font-size: 0.95rem;
    }

    .portfolio-card-body p {
        font-size: 0.8rem;
    }

    /* Contacto */
    .contacto-form {
        padding: 24px 16px;
    }

    .wa-service-btn {
        padding: 10px 12px;
        gap: 10px;
    }

    .wa-service-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .wa-service-icon svg {
        width: 18px;
        height: 18px;
    }

    .wa-service-name {
        font-size: 0.82rem;
    }

    .wa-arrow {
        display: none;
    }

    /* Lightbox */
    .lightbox-nav {
        width: 34px;
        height: 34px;
    }

    .lightbox-info {
        padding: 0 12px;
    }

    /* Footer */
    .footer-links {
        gap: 12px;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    /* Upload area */
    .upload-area {
        padding: 24px 16px;
    }

    .admin-panel {
        padding: 20px 16px;
    }

    /* Scroll top */
    .scroll-top {
        bottom: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
    }
}

/* --- VERY SMALL (max 360px) --- */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-cta .btn {
        padding: 12px 20px;
        font-size: 0.88rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .equipo-photo {
        width: 56px;
        height: 56px;
    }

    .equipo-card h3 {
        font-size: 0.8rem;
    }

    .wa-service-desc {
        display: none;
    }

    .contacto-form h3 {
        font-size: 1rem;
    }

    .nav-links {
        width: 100%;
    }
}

/* --- TOUCH DEVICES --- */
@media (hover: none) and (pointer: coarse) {
    /* On touch devices, show images without blur since there's no hover */
    .portfolio-card-image img {
        filter: blur(2px) brightness(0.9);
    }

    /* Show overlay button always on mobile (tap to open lightbox) */
    .portfolio-card-overlay {
        opacity: 1;
        background: linear-gradient(0deg, rgba(10, 10, 10, 0.7), transparent 60%);
    }

    /* Reduce aggressive hover transforms */
    .servicio-card:hover,
    .portfolio-card:hover {
        transform: translateY(-2px);
    }

    .equipo-card:hover {
        transform: none;
    }

    /* WhatsApp buttons - larger tap targets */
    .wa-service-btn {
        min-height: 56px;
    }

    /* Disable parallax effects that don't work well on touch */
    .shape {
        animation: none !important;
    }

    /* Make filter buttons more tappable */
    .filter-btn {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }

    /* Better tap target for scroll-to-top */
    .scroll-top {
        width: 48px;
        height: 48px;
    }

    /* Larger tap targets for dots */
    .portfolio-card-dots .dot {
        width: 12px;
        height: 12px;
        padding: 0;
    }

    .portfolio-card-dots .dot.active {
        width: 24px;
    }
}

/* --- LANDSCAPE MOBILE --- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 24px 40px;
    }

    .hero-stats {
        margin-top: 24px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        margin-bottom: 20px;
    }

    .lightbox-image-wrapper {
        max-height: 80vh;
    }

    .lightbox-img {
        max-height: 80vh;
    }
}

/* --- REDUCE MOTION (accessibility) --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .shape {
        animation: none !important;
    }
}
