/* Responsive Design */
@media (max-width: 900px) {
    .navbar {
        padding: 0.5rem 2%;
        height: auto;
        min-height: 70px;
    }
    
    .header-left {
        width: 100%;
        justify-content: space-between;
    }
    .nav-links {
        gap: 1rem;
        font-size: 1em;
    }
    .logo-text .company-name {
        font-size: 1.2rem;
    }
    .logo-text .owner-name {
        font-size: 1rem;
    }
    .whatsapp-btn-header {
        font-size: 1em;
        padding: 6px 12px;
        margin: 10px 0;
    }
    .hero {
        height: auto;
        padding: 120px 0 2rem 0;
    }
    .hero-content {
        padding: 1rem 0;
        max-width: 95vw;
    }
    .typing-text {
        font-size: 1.5em;
    }
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .service-card {
        padding: 1rem;
        font-size: 1em;
    }
    .category-section {
        margin: 1.5rem 0;
        border-radius: 10px;
        box-shadow: var(--shadow);
        padding: 0.5rem;
    }
    .category-header {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem;
    }
    .category-cover img {
        width: 100%;
        max-width: 350px;
        border-radius: 10px;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    .gallery-item img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        padding: 0.5rem 1%;
    }
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.95em;
        align-items: center;
    }
    .logo {
        flex-direction: row;
        gap: 0.5rem;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .typing-text {
        font-size: 1.1em;
    }
    .service-card {
        font-size: 0.95em;
        padding: 0.7rem;
    }
    .category-title {
        font-size: 1.2rem;
        gap: 0.5rem;
    }
    .category-cover img {
        max-width: 95vw;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding: 0.5rem;
    }
    .footer-content {
        gap: 1rem;
        font-size: 0.95em;
    }
}
/* Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f5f6fa;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Etiqueta 24h */
.service-24h {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Efecto de typing */
.typing-container {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.typing-text {
    font-size: 2.5em;
    color: var(--secondary-color);
    font-weight: 600;
    border-right: 4px solid var(--secondary-color);
    padding-right: 8px;
    animation: blink 0.75s infinite;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    margin-top: 20px;
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--secondary-color); }
}

/* Header y Navegación */
/* Botón WhatsApp Header */
.whatsapp-btn-header {
    background: linear-gradient(90deg, #25D366 60%, #128C7E 100%);
    color: #fff;
    font-weight: bold;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s, box-shadow 0.3s;
    font-size: 1.1em;
    margin-left: 20px;
}
.whatsapp-btn-header:hover {
    background: linear-gradient(90deg, #128C7E 60%, #25D366 100%);
    box-shadow: 0 4px 16px rgba(18, 140, 126, 0.3);
}
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    height: 70px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary-color);
}

.logo i {
    color: var(--secondary-color);
    font-size: 2rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.company-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.owner-name {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--secondary-color);
    font-style: italic;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.burger {
    display: none;
    cursor: pointer;
    padding: 5px;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 4px;
    transition: var(--transition);
}

/* Sección Hero */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)),
                url('../assets/hero-bg.jpg') center/cover;
    display: flex;
    padding-top: 150px; /* Añadido espacio extra en la parte superior */
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
    margin-bottom: -2rem;
}

.hero-content {
    max-width: 800px;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Sección Servicios */
.services {
    padding: 5rem 1rem;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-content {
    margin-top: 1.5rem;
}

.statistics {
    list-style: none;
    margin-bottom: 1.5rem;
}

.statistics li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.stat {
    color: var(--secondary-color);
    font-weight: bold;
}

.contact-info {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin-top: 1rem;
}

.contact-info p {
    margin: 0.5rem 0;
    color: var(--primary-color);
}

.phone-number {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 0.5rem 0;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    background-color: rgba(52, 152, 219, 0.1);
    transition: all 0.3s ease;
}

.phone-number:hover, .phone-number:active {
    background-color: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* Sección Galería */
.gallery {
    padding: 5rem 1rem;
    background: var(--light-bg);
}

.category-section {
    margin-bottom: 4rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.category-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0;
    text-transform: uppercase;
    position: relative;
    padding: 2rem;
    background: var(--white);
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
}

.category-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding: 2rem;
    background: var(--white);
}

.category-cover {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
}

.category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
}

.category-description p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light-bg);
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 1/1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.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.8), transparent);
    padding: 2rem 1.5rem;
    color: var(--white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.gallery-overlay p {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
}

@media (max-width: 768px) {
    /* Mejoras en la galería para móviles */
    .gallery {
        padding: 2rem 0.5rem;
    }

    .category-section {
        margin: 0 1rem 3rem;
        border-radius: 10px;
    }

    .category-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .category-title {
        font-size: 1.75rem;
        padding: 1.5rem 1rem;
    }

    .category-title::after {
        width: 80px;
        height: 2px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .gallery-item {
        aspect-ratio: 3/2;
        margin-bottom: 0.5rem;
    }

    .gallery-overlay {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5));
        padding: 1rem;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .gallery-overlay h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        color: white;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    }

    .gallery-overlay p {
        font-size: 0.9rem;
        line-height: 1.4;
        color: rgba(255,255,255,0.95);
        text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    }

    /* Mejoras en las tarjetas de servicios */
    .service-card {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem 1rem;
    }

    .service-content {
        padding: 0;
    }

    .statistics {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .statistics li {
        text-align: center;
        padding: 0.5rem;
        background: rgba(52, 152, 219, 0.1);
        border-radius: 5px;
    }

    .contact-info {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 8px;
        background: var(--light-bg);
    }

    .phone-number {
        font-size: 1.4rem;
        padding: 0.5rem;
        background: var(--secondary-color);
        color: white;
        border-radius: 5px;
        margin: 0.5rem 0;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    }

    /* Mejoras en la navegación */
    .nav-links.show {
        background: rgba(255,255,255,0.98);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-links.show li {
        margin: 1.5rem 0;
    }

    .nav-links.show a {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* Ajustes específicos para pantallas muy pequeñas */
@media (max-width: 380px) {
    .category-section {
        margin: 0 0.5rem 2rem;
    }

    .category-header {
        padding: 1rem;
    }

    .category-description {
        padding: 0.5rem;
    }

    .gallery-grid {
        padding: 1rem;
        gap: 1rem;
    }

    .gallery-item {
        aspect-ratio: 1/1;
    }

    .gallery-overlay h3 {
        font-size: 1.1rem;
    }

    .gallery-overlay p {
        font-size: 0.85rem;
    }

    .service-card {
        padding: 1.2rem 0.8rem;
    }

    .phone-number {
        font-size: 1.2rem;
    }

    .statistics li {
        font-size: 0.9rem;
    }
}

/* Sección Contacto */
.contact {
    padding: 5rem 1rem;
    background: var(--white);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 1rem 1rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    /* Header y navegación */
    .navbar {
        padding: 0.8rem 4%;
    }

    .nav-links {
        display: none;
    }

    .burger {
        display: block;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo i {
        font-size: 1.6rem;
    }

    .logo-text {
        line-height: 1;
    }

    .company-name {
        font-size: 1.2rem;
    }

    .owner-name {
        font-size: 1rem;
    }

    /* Sección Hero */
    .hero {
        height: 90vh;
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Sección Servicios */
    .services {
        padding: 3rem 0.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card i {
        font-size: 2.5rem;
    }

    .calc-input {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .calc-input input,
    .calc-input select {
        padding: 0.8rem;
        font-size: 1rem;
    }

    /* Sección Contacto */
    .contact {
        padding: 3rem 1rem;
    }

    .contact-container {
        width: 100%;
        padding: 0 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        margin-top: 1.5rem;
    }
}

/* Ajustes específicos para pantallas muy pequeñas */
@media (max-width: 380px) {
    .navbar {
        padding: 0.6rem 3%;
    }

    .logo i {
        font-size: 1.4rem;
    }

    .company-name {
        font-size: 1.1rem;
    }

    .owner-name {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .service-card {
        padding: 1.2rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
    }
}

/* Mejoras en la navegación móvil */
.nav-active {
    position: fixed;
    top: 60px;
    right: 0;
    height: calc(100vh - 60px);
    width: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}

.nav-active li {
    margin: 1.5rem 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.nav-active.show {
    transform: translateX(0);
}

.nav-active.show li {
    opacity: 1;
}

/* Animación del burger */
.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Estilos para el menú móvil */
.nav-active {
    display: flex;
    position: fixed;
    top: 60px;
    right: 0;
    height: calc(100vh - 60px);
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    transform: translateX(100%);
    transition: var(--transition);
}

.nav-active.show {
    transform: translateX(0);
}

/* Estilos para las calculadoras y elementos interactivos */
.calculator input:focus,
.calculator select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}
