/* Variables */
:root {
    --primary-color: #000000;
    --secondary-color: #c09a32;
    --accent-color: #c09a32;
    --light-color: #ecf0f1;
    --dark-color: #4d4d4d;
    --text-color: #000000;
    --text-light: #7f8c8d;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 70px;
}

.hero-content {
    z-index: 2;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 2rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 10px;
    color: #a3a3a3;
    text-shadow: 5px 1px 2px rgba(0, 0, 0, 0.5);
}

.social-bottom-left {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    gap: 15px;
    z-index: 3;
}

.social-icon {
    font-size: 1.5rem;
    color: white;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.address-bottom-right {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 3;
}

.address-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.address-link i {
    font-size: 1.2rem;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 0 20px 20px 0;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%);
}

.about-text {
    flex: 1;
    padding: 2rem;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background-color: white;
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.services-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-item p {
    color: var(--text-light);
}

/* Estilos para servicios intercalados */
.service-row {
    margin-bottom: 4rem;
    background-color: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-content {
    display: flex;
    min-height: 300px;
}

.service-text {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.service-image img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Alternar disposición */
.right-image .service-content {
    flex-direction: row;
}

.left-image .service-content {
    flex-direction: row-reverse;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.contact-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.contact-text {
    flex: 1;
    padding: 2rem;
}

.contact-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.contact-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.contact-link i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.contact-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 20px 0 0 20px;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-logo p {
    color: var(--light-color);
}

.footer-links h4, 
.footer-contact h4,
.footer-social h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    color: var(--light-color);
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-contact i {
    width: 20px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--light-color);
}

/* Estilos adicionales */
.Uno, .Dos {
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.Maps {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 400px;
}

.logoimg {
    width: 700px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    gap: 8px;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-float img {
    width: 24px;
    height: 24px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

/* Media Queries para Responsividad */
@media (max-width: 1200px) {
    .logoimg {
        width: 600px;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-image img {
        clip-path: none;
        border-radius: 20px;
    }
    
    .contact-image img {
        clip-path: none;
        border-radius: 20px;
    }
    
    .about-text,
    .contact-text {
        padding: 1rem 0;
    }
    
    .logoimg {
        width: 500px;
    }
}

/* Media Query para móviles - ADAPTACIÓN ESPECÍFICA */
@media (max-width: 768px) {
    /* Hero section - Adaptación móvil */
    .hero {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 30px;
        position: relative;
    }
    
    /* Logo en la parte superior */
    .hero-logo {
        width: 80%;
        max-width: 300px;
        margin: 0 auto 2rem;
        display: block;
    }
    
    /* Ocultar dirección en móvil */
    .address-bottom-right {
        display: none !important;
    }
    
    /* Mover redes sociales a la parte inferior */
    .social-bottom-left {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        justify-content: center;
        gap: 25px;
    }
    
    /* Ajustar el contenido del hero */
    .hero-content {
        order: 2;
        margin-top: auto;
        margin-bottom: 80px; /* Espacio para las redes sociales */
    }
    
    /* Ajustar tamaños de texto para móvil */
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    
    .subtitle {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Navbar para móvil */
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .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(7px, -6px);
    }
    
    /* Ajustes para servicios en móvil */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-content {
        flex-direction: column !important;
    }
    
    .service-image {
        padding: 0;
    }
    
    .service-image img {
        width: 100%;
        max-height: 300px;
    }
    
    .service-text {
        padding: 1.5rem;
    }
    
    /* Ajustes generales para móvil */
    .logoimg {
        width: 400px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .Maps {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logoimg {
        width: 300px;
    }
    
    .about-text h2,
    .contact-text h2,
    .services-section h2 {
        font-size: 2rem;
    }
    
    .service-item {
        padding: 1.5rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .whatsapp-float img {
        width: 20px;
        height: 20px;
    }
    
    .Maps {
        height: 250px;
    }
    
    /* Ajuste adicional para redes sociales en móvil pequeño */
    .social-bottom-left {
        gap: 20px;
    }
    
    .social-icon {
        font-size: 1.8rem;
    }
}

@media (max-width: 400px) {
    .logoimg {
        width: 250px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .whatsapp-float {
        font-size: 12px;
        padding: 8px 14px;
    }
    
    /* Ajuste final para redes sociales en móvil muy pequeño */
    .social-bottom-left {
        gap: 15px;
        bottom: 20px;
    }
    
    .social-icon {
        font-size: 1.5rem;
    }
}
