/*
Theme Name: Cerrajeros Alboraya Orvian
Description: Theme profesional para servicios de cerrajería en Alboraya con contenido sobre la tradición valenciana y la horchata.
Version: 1.0
Author: Manus
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f0f9ff 0%, #fef3e2 100%);
}

/* Header */
.site-header {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.title-section {
    flex: 1;
}

.logo-icon {
    background: #2563eb;
    padding: 0.75rem;
    border-radius: 50%;
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.site-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

.site-description {
    color: #6b7280;
    margin: 0;
    font-size: 0.875rem;
}

.contact-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.btn-call {
    background: #16a34a;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-call:hover {
    background: #15803d;
    color: white;
}

.btn-whatsapp {
    background: #22c55e;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 50px;
    height: 50px;
}

.btn-whatsapp:hover {
    background: #16a34a;
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
    background: linear-gradient(rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.9)), url('images/cerrajero-trabajando.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-in;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

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

.btn-hero {
    background: #ea580c;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    transform: scale(1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-hero:hover {
    background: #dc2626;
    transform: scale(1.05);
    color: white;
}

.service-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
}

/* Servicios */
.services-section {
    padding: 4rem 0;
    background: white;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

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

.service-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.service-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-card.blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.service-card.green {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.service-card.orange {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
}

.service-card.purple {
    background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
}

.service-card.red {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
}

.service-card.teal {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
}

.service-icon {
    padding: 0.75rem;
    border-radius: 50%;
    width: fit-content;
    margin-bottom: 1rem;
    color: white;
    font-size: 2rem;
}

.service-icon.blue { background: #2563eb; }
.service-icon.green { background: #16a34a; }
.service-icon.orange { background: #ea580c; }
.service-icon.purple { background: #9333ea; }
.service-icon.red { background: #dc2626; }
.service-icon.teal { background: #0d9488; }

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.service-description {
    color: #4b5563;
}

/* Sección de la Empresa */
.company-section {
    padding: 4rem 0;
    background: white;
}

.company-content {
    max-width: 64rem;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #374151;
}

.company-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #1f2937;
    text-align: center;
}

.company-content h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #1f2937;
}

.company-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.company-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.company-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.company-content strong {
    color: #2563eb;
    font-weight: 600;
}

/* Sobre Alboraya (reducida) */
.alboraya-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #fef3e2 0%, #fde68a 100%);
}

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

.alboraya-content {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #374151;
}

.alboraya-content p {
    margin-bottom: 1rem;
}

.alboraya-image {
    position: relative;
}

.alboraya-image img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Por qué elegirnos */
.why-section {
    padding: 4rem 0;
    background: #f9fafb;
}

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

.why-item {
    text-align: center;
}

.why-icon {
    padding: 1rem;
    border-radius: 50%;
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.why-icon.blue { background: #2563eb; }
.why-icon.green { background: #16a34a; }
.why-icon.orange { background: #ea580c; }
.why-icon.purple { background: #9333ea; }

.why-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.why-description {
    color: #4b5563;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-cta {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
    transform: scale(1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-cta.call {
    background: #16a34a;
    color: white;
}

.btn-cta.whatsapp {
    background: #22c55e;
    color: white;
}

.btn-cta:hover {
    transform: scale(1.05);
    color: white;
}

.btn-cta.call:hover { background: #15803d; }
.btn-cta.whatsapp:hover { background: #16a34a; }

.location-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
}

/* Footer */
.site-footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0;
}

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

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d5db;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block;
    }
    
    .header-container {
        padding: 0.75rem 1rem;
        justify-content: center;
    }
    
    .logo-section {
        justify-content: center;
        text-align: center;
        width: 100%;
        gap: 0;
    }
    
    .title-section {
        width: 100%;
    }
    
    .site-title {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 0.25rem;
    }
    
    .site-description {
        text-align: center;
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .history-grid,
    .alboraya-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .company-content h1 {
        font-size: 2rem;
    }

    .company-content h2 {
        font-size: 1.5rem;
    }

    .why-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .cta-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Iconos usando Unicode */
.icon-key::before { content: "🔑"; }
.icon-phone::before { content: "📞"; }
.icon-whatsapp::before { content: "💬"; }
.icon-home::before { content: "🏠"; }
.icon-shield::before { content: "🛡️"; }
.icon-wrench::before { content: "🔧"; }
.icon-map::before { content: "📍"; }
.icon-clock::before { content: "🕐"; }

