/* Variables CSS */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --text-light: #ecf0f1;
    --text-dark: #2c3e50;
    --bg-light: #f8f9fa;
    --bg-dark: #34495e;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Reset y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial Black', 'Arial Bold', sans-serif;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header y Navegación */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    gap: 15px;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
}

/* Menú Desktop */
.nav-menu-desktop {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu-desktop a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
}

.nav-menu-desktop a:hover {
    color: #e74c3c;
}

.nav-menu-desktop a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e74c3c;
}

.nav-menu-desktop a:hover::after {
    width: 100%;
}

/* Dropdown Desktop */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 280px;
    padding: 10px 0;
    display: none;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #e74c3c;
    padding-left: 25px;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

/* WhatsApp Button Desktop */
.whatsapp-btn-nav {
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn-nav:hover {
    background: #20B358;
}

/* Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Menú Móvil */
.nav-menu-mobile {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    z-index: 999;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-menu-mobile.active {
    left: 0;
    display: block;
}

.mobile-link {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-link:hover {
    background: #f8f9fa;
    color: #e74c3c;
    padding-left: 35px;
}

/* Dropdown Móvil */
.mobile-dropdown {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-dropdown-btn {
    width: 100%;
    padding: 15px 25px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: bold;
    color: #e74c3c;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-btn:hover {
    background: #f8f9fa;
}

.mobile-dropdown-btn span {
    transition: transform 0.3s ease;
}

.mobile-dropdown-btn.active span {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    background: #f8f9fa;
}

.mobile-dropdown-menu.active {
    max-height: 500px;
}

.mobile-sublink {
    display: block;
    padding: 12px 35px;
    text-decoration: none;
    color: #666;
    font-size: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.mobile-sublink:hover {
    background: white;
    color: #e74c3c;
    padding-left: 45px;
}

.mobile-sublink:last-child {
    border-bottom: none;
}

/* WhatsApp Button Móvil */
.whatsapp-btn-mobile {
    display: block;
    margin: 20px 25px;
    background: #25D366;
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn-mobile:hover {
    background: #20B358;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('images/barberia-en-providencia-chile-comuna-serca-de-mi-barberia-corte-de-cabello-para-hombres.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #c0392b;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

/* Services Section */
.services {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #666;
    font-size: 1.1rem;
}

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

.service-card {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-image {
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    position: relative;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.service-image img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 8px;
}

.service-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-content p {
    color: #666;
    line-height: 1.6;
    flex: 1;
    font-size: 0.95rem;
}

/* Why Choose Us Section */
.why-choose {
    padding: 80px 0;
    background: var(--bg-light);
}

.why-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.why-features {
    display: grid;
    gap: 1.5rem;
}

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

.feature-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 0.2rem;
}

.feature-text h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: #666;
    font-size: 0.95rem;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial i {
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial p {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-author {
    color: var(--primary-color);
    font-weight: bold;
}

/* Process Section */
.process {
    padding: 80px 0;
    background: white;
}

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

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.process-step h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.process-step p {
    color: #666;
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: var(--bg-light);
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

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

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info p {
    color: #666;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
    width: 20px;
}

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

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-btn {
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-btn:first-child {
    background: #25D366;
}

.social-btn:last-child {
    background: var(--accent-color);
}

.social-btn:hover {
    box-shadow: var(--shadow-hover);
}

.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
}

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

.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu-desktop {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu-mobile {
        display: block;
    }
    
    .service-image {
        min-height: 250px;
    }
    
    .hero {
        background-attachment: scroll;
    }
    
    .logo img {
        height: 35px;
    }
    
    .logo div div:first-child {
        font-size: 1rem;
    }
    
    .logo div div:last-child {
        font-size: 0.8rem;
    }
    
    .why-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .service-image {
        min-height: 200px;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .service-content h3 {
        font-size: 1.1rem;
    }
    
    .service-content p {
        font-size: 0.9rem;
    }
    
    .logo img {
        height: 30px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .mobile-link,
    .mobile-dropdown-btn {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .mobile-sublink {
        padding: 10px 30px;
        font-size: 0.95rem;
    }
    
    .social-links {
        flex-direction: column;
    }
    
    .social-btn {
        width: 100%;
        justify-content: center;
    }
}