/* ============================================
   ZAPATERÍA MIGUEL — Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
}

body {
    background-color: #2e0316;
    color: #fce7f3;
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
}

/* --- Geometric Background Shapes --- */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, #f59e0b, transparent 70%);
    top: -200px;
    right: -100px;
    animation: floatShape 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, #be185d, transparent 70%);
    bottom: 10%;
    left: -100px;
    animation: floatShape 25s ease-in-out infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid #fbbf24;
    top: 40%;
    right: 5%;
    opacity: 0.04;
    animation: rotateShape 30s linear infinite;
}

.geo-square {
    width: 200px;
    height: 200px;
    background: #db2777;
    top: 60%;
    left: 8%;
    opacity: 0.06;
    transform: rotate(45deg);
    animation: floatShape 18s ease-in-out infinite;
}

.geo-circle-3 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid #f59e0b;
    background: transparent;
    bottom: -50px;
    right: 15%;
    opacity: 0.1;
    animation: floatShape 22s ease-in-out infinite reverse;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(5deg); }
    50% { transform: translate(-10px, 20px) rotate(-3deg); }
    75% { transform: translate(15px, 10px) rotate(2deg); }
}

@keyframes rotateShape {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Absolute geometric decorations in sections */
.abs-geo {
    position: absolute;
    pointer-events: none;
}

.abs-geo-1 {
    width: 120px;
    height: 120px;
    background: #f59e0b;
    opacity: 0.06;
    top: 10%;
    right: 5%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.abs-geo-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, #be185d, transparent 70%);
    top: 5%;
    right: -50px;
    opacity: 0.15;
}

.abs-geo-3 {
    width: 80px;
    height: 80px;
    border: 3px solid #f59e0b;
    opacity: 0.15;
    bottom: 15%;
    left: 5%;
    transform: rotate(30deg);
}

.abs-geo-4 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, #fbbf24, transparent 70%);
    top: 20%;
    left: -30px;
    opacity: 0.08;
}

.abs-geo-5 {
    width: 100px;
    height: 100px;
    background: #db2777;
    opacity: 0.08;
    bottom: 10%;
    right: 5%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* --- Sidebar Navigation --- */
.sidebar {
    width: 280px;
    min-width: 280px;
    background: linear-gradient(180deg, #500724 0%, #2e0316 50%, #1a010e 100%);
    border-right: 1px solid rgba(245, 158, 11, 0.15);
    padding: 2rem 1.5rem;
    position: relative;
}

.logo-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

/* Nav Links */
.nav-link {
    color: #fbcfe8;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    transform: translateX(4px);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: #fbbf24;
    border-left: 3px solid #f59e0b;
    padding-left: calc(1rem - 3px);
}

/* CTA Sidebar */
.cta-sidebar {
    width: 100%;
}

.cta-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
}

.phone-cta {
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-cta:hover {
    color: #fde68a;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    overflow: hidden;
}

.amber-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 2px;
}

.hero-image {
    z-index: 1;
}

.hero-img-wrapper {
    position: relative;
    height: 100%;
    border-radius: 0 24px 24px 0;
    overflow: hidden;
}

.hero-img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(46, 3, 22, 0.4));
    z-index: 1;
}

.hero-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(46, 3, 22, 0.6));
    z-index: 2;
}

/* Stats */
.stat-item {
    border-left: 2px solid rgba(245, 158, 11, 0.3);
    padding-left: 1rem;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #1a010e;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fce7f3;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    border: 2px solid rgba(244, 168, 212, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #f4a8d4;
    background: rgba(244, 168, 212, 0.1);
    transform: translateY(-2px);
}

/* --- Tags --- */
.tag-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* --- Section Header --- */
.section-header {
    position: relative;
    z-index: 1;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: linear-gradient(135deg, rgba(157, 23, 77, 0.2), rgba(80, 7, 36, 0.4));
    border: 1px solid rgba(244, 168, 212, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #db2777);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 16px 48px rgba(245, 158, 11, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #be185d, #9d174d);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 20px rgba(190, 24, 93, 0.3);
}

.service-card h3 {
    color: #fce7f3;
}

.service-card p {
    line-height: 1.7;
}

.service-tag {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    margin-top: 1rem;
}

.service-tag-amber {
    background: rgba(245, 158, 11, 0.2);
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-images {
    position: relative;
}

.about-img-main {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.about-img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -30px;
    width: 200px;
    border-radius: 16px;
    overflow: hidden;
    border: 4px solid #2e0316;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.about-img-secondary img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.about-deco {
    position: absolute;
    top: -20px;
    left: -20px;
    opacity: 0.5;
}

.about-values {
    flex-wrap: wrap;
}

.value-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: #fde68a;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(46, 3, 22, 0.85), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item-1 { grid-column: 1 / 6; grid-row: 1 / 2; }
.gallery-item-2 { grid-column: 6 / 9; grid-row: 1 / 3; }
.gallery-item-3 { grid-column: 9 / 13; grid-row: 1 / 2; }
.gallery-item-4 { grid-column: 1 / 4; grid-row: 2 / 3; }
.gallery-item-5 { grid-column: 4 / 9; grid-row: 2 / 3; }

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-item {
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(8px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Form */
.contact-form-card {
    background: linear-gradient(135deg, rgba(157, 23, 77, 0.25), rgba(80, 7, 36, 0.5));
    border: 1px solid rgba(244, 168, 212, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
}

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(244, 168, 212, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fce7f3;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-input::placeholder {
    color: rgba(251, 203, 232, 0.4);
}

.form-input:focus {
    outline: none;
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-input:focus {
    color: #fce7f3;
}

/* Form Success */
.form-success {
    text-align: center;
    padding: 2rem 0;
}

.form-success.hidden {
    display: none;
}

.form-success-icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* --- Map --- */
.map-container {
    position: relative;
    z-index: 1;
}

.map-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, #2e0316, transparent);
    pointer-events: none;
}

/* --- Mobile Menu Button --- */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 100;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #be185d, #9d174d);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(190, 24, 93, 0.4);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
}

/* --- Mobile Overlay --- */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(46, 3, 22, 0.97);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.mobile-overlay.active {
    display: flex;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav-link {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fce7f3;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 80%;
    text-align: center;
}

.mobile-nav-link:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.mobile-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2rem;
    color: #fbbf24;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-section {
        padding-top: 6rem;
    }

    .hero-image {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-img-secondary {
        right: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gallery-item-1,
    .gallery-item-2,
    .gallery-item-3,
    .gallery-item-4,
    .gallery-item-5 {
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-item {
        height: 200px;
    }
}

@media (max-width: 640px) {
    .hero-section h2 {
        font-size: 2.75rem;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }

    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: 1.5rem;
    }

    .about-img-secondary {
        width: 150px;
        right: -10px;
        bottom: -20px;
    }

    .about-img-secondary img {
        height: 150px;
    }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a010e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #be185d, #f59e0b);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #db2777, #fbbf24);
}

/* --- Selection --- */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #fde68a;
}
