/* Variables y reset */
:root {
    --color-terracotta: #C4623A;
    --color-terracotta-dark: #A84E2D;
    --color-terracotta-light: #E8A88A;
    --color-sand: #F5E6D3;
    --color-sand-light: #FDF8F3;
    --color-sand-dark: #E8D5C0;
    --color-text: #3D2B1F;
    --color-text-light: #6B5344;
    --color-white: #FFFFFF;
    --color-shadow: rgba(196, 98, 58, 0.1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Nunito', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px var(--color-shadow);
    --shadow-md: 0 4px 20px var(--color-shadow);
    --shadow-lg: 0 8px 40px var(--color-shadow);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-sand-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Wrapper principal */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Navegación lateral */
.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    background: linear-gradient(180deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 100%);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--color-white);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.nav-contact {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.9rem;
}

.phone-link:hover {
    color: var(--color-sand);
}

/* Contenido principal */
.main-content {
    margin-left: 240px;
    flex: 1;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section tag */
.section-tag {
    display: inline-block;
    background: var(--color-terracotta-light);
    color: var(--color-terracotta-dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

/* Highlight */
.highlight {
    color: var(--color-terracotta);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--color-terracotta);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-terracotta);
    border: 2px solid var(--color-terracotta);
}

.btn-secondary:hover {
    background: var(--color-terracotta);
    color: var(--color-white);
}

.btn-full {
    width: 100%;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 4rem;
    background: linear-gradient(135deg, var(--color-sand-light) 0%, var(--color-sand) 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, var(--color-terracotta-light) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--color-sand-dark) 0%, transparent 50%);
    opacity: 0.5;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-terracotta);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-terracotta);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.hero-image {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.hero-image-badge {
    position: absolute;
    bottom: 2rem;
    left: -2rem;
    background: var(--color-white);
    color: var(--color-terracotta);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

/* Services */
.services {
    padding: 6rem 0;
    background: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-sand-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-terracotta-light);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--color-terracotta);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* About */
.about {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-sand) 0%, var(--color-sand-light) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-img-secondary {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-white);
}

.about-img-secondary img {
    width: 400px;
    height: 300px;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    top: 2rem;
    right: -1rem;
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-text {
    font-size: 0.85rem;
    font-weight: 600;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text);
    font-weight: 600;
}

.feature svg {
    color: var(--color-terracotta);
    flex-shrink: 0;
}

/* Gallery */
.gallery {
    padding: 6rem 0;
    background: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--color-white);
    padding: 1.5rem;
    font-weight: 700;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item-large {
    grid-column: span 2;
}

.gallery-item-tall {
    grid-row: span 2;
}

/* Contact */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-sand-light) 0%, var(--color-sand) 100%);
}

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

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-info > p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--color-terracotta);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--color-text-light);
    line-height: 1.6;
}

.contact-item a {
    color: var(--color-terracotta);
}

.contact-item a:hover {
    color: var(--color-terracotta-dark);
    text-decoration: underline;
}

/* Form */
.contact-form-wrapper {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-sand-dark);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    transition: all 0.3s ease;
    background: var(--color-sand-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-terracotta);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
    color: var(--color-terracotta);
}

.form-success svg {
    margin: 0 auto 1rem;
}

.form-success p {
    color: var(--color-text);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--color-terracotta-light);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--color-terracotta-light);
}

.footer-contact a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--color-terracotta);
    color: var(--color-white);
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .side-nav {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
    
    .hero {
        padding: 3rem;
    }
    
    .about-img-secondary {
        right: -1rem;
        bottom: -1rem;
    }
    
    .about-img-secondary img {
        width: 300px;
        height: 225px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .side-nav {
        transform: translateX(-100%);
        width: 280px;
        transition: transform 0.3s ease;
    }
    
    .side-nav.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hero {
        flex-direction: column;
        padding: 6rem 2rem 3rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .hero-image img {
        height: 400px;
    }
    
    .hero-image-badge {
        left: 1rem;
        bottom: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        order: -1;
    }
    
    .about-img-main img {
        height: 400px;
    }
    
    .about-img-secondary {
        position: relative;
        right: 0;
        bottom: 0;
        margin-top: 1rem;
    }
    
    .about-img-secondary img {
        width: 100%;
        height: 250px;
    }
    
    .about-experience-badge {
        right: 1rem;
        top: 1rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item-large,
    .gallery-item-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .side-nav {
        width: 100%;
    }
    
    .hero {
        padding: 5rem 1rem 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}
