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

body { 
    min-height: 100vh; 
    overflow-x: hidden; 
    background: url("img/fondo.jpg") top center no-repeat; 
    background-size: cover; 
    font-family: 'Segoe UI', sans-serif; 
    position: relative; /* 👈 AGREGAR ESTO */
}

/* ========================= MENU SUPERIOR ========================= */

.menu { 
    position: absolute; 
    top: 25px; 
    left: 60px; 
    z-index: 1000; 
    display: flex; 
    gap: 40px; 
    padding: 12px 30px; 
    border-radius: 12px; 
    background: linear-gradient(
        to right, 
        rgba(255,255,255,0.95) 0%, 
        rgba(255,255,255,0.85) 40%, 
        rgba(255,255,255,0.4) 70%, 
        rgba(255,255,255,0) 100%
    ); 
    backdrop-filter: blur(3px); 
}

.menu a { 
    text-decoration: none; 
    color: black; 
    font-size: 18px; 
    font-weight: 500; 
    transition: 0.3s; 
}

.menu a:hover { 
    opacity: 0.6; 
}

/* ========================= HERO ========================= */

.hero { 
    position: relative; 
    width: 100%; 
    height: 100vh; 
}

.wrap { 
    position: relative; 
    width: 100%; 
    height: 100%; 
}

/* TEXTO */
.texto { 
    position: absolute; 
    width: 100vw; 
    max-width: 2000px; 
    left: 50%; 
    top: 40%; 
    transform: translate(-50%, -50%) rotate(-6deg) scale(0.6); 
    opacity: 0; 
    animation: aparecerTexto 1.2s ease-out forwards; 
}

/* LOGO */
.logo { 
    position: absolute; 
    width: 650px; 
    top: -5%; 
    right: 10%; 
    opacity: 0; 
    transform: scale(0.6); 
    animation: aparecerLogo 1.2s ease-out forwards; 
    animation-delay: 0.4s; 
}

/* ========================= ABOUT SECTION ========================= */

.about { 
    padding: 10px 8% 80px 10%; 
}

.about-container { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 50px; 
    opacity: 0; 
    transform: translateY(80px); 
    transition: all 1s ease; 
}

.about-container.active { 
    opacity: 1; 
    transform: translateY(0); 
}

.about-img img { 
    width: 700px; 
}

.about-text { 
    max-width: 690px; 
}

.about-text h2 { 
    font-size: 46px; 
    margin-bottom: 20px; 
    color: #111; 
}

.about-text p { 
    font-size: 21px; 
    margin-bottom: 18px; 
    line-height: 1.6; 
    color: #333; 
}

/* ========================= ANIMACIONES ========================= */

@keyframes aparecerTexto {
    0% { opacity: 0; transform: translate(-50%, -50%) rotate(-6deg) scale(0.6); }
    100% { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1); }
}

@keyframes aparecerLogo {
    0% { opacity: 0; transform: scale(0.6); }
    100% { opacity: 1; transform: scale(1); }
}

/* ========================= SERVICES SECTION ========================= */

.services { 
    padding: 70px 10% 100px 10%; 
    text-align: center; 
}

.services-container { 
    opacity: 0; 
    transform: translateY(80px); 
    transition: all 1s ease; 
}

.services-container.active { 
    opacity: 1; 
    transform: translateY(0); 
}

.services-title { 
    font-size: 48px; 
    margin-bottom: 60px; 
    color: #111; 
}

.services-grid { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 40px; 
    margin-bottom: 50px; 
    flex-wrap: nowrap; 
}

.services-grid img { 
    width: 400px; 
}

.services-grid img:hover { 
    transform: translateY(-10px) scale(1.05); 
}

.services-btn a { 
    display: inline-block; 
    padding: 16px 40px; 
    background: linear-gradient(90deg, #ff2ea6, #ff008c); 
    color: white; 
    text-decoration: none; 
    font-size: 18px; 
    font-weight: 600; 
    border-radius: 40px; 
    transition: 0.3s ease; 
}

.services-btn a:hover { 
    transform: scale(1.08); 
    box-shadow: 0 10px 25px rgba(255, 0, 140, 0.4); 
}

/* ========================= FOOTER ========================= */

.footer { 
    background: rgba(30, 30, 30, 0.85); 
    backdrop-filter: blur(6px); 
    padding: 40px 8% 40px 8%; 
    color: white; 
    position: relative; 
    margin-top: 250px; 
}

/* LOGO GRANDE */
.footer-logo { 
    position: absolute; 
    top: -90px; 
    left: 50%; 
    transform: translateX(-50%); 
}

.footer-logo img { 
    width: 350px; 
}

/* LINEA */
.footer-line { 
    width: 100%; 
    height: 1px; 
    background: rgba(255,255,255,0.25); 
    margin-top: 75px; 
    margin-bottom: 40px; 
}

.footer-top-contact{
    display:flex;
    justify-content:space-between;
    align-items:center;
    width:100%;
}
.footer-bottom{
    position: relative;
}

.footer-brand,
.footer-address{
    display:inline-block;
    vertical-align: middle;
}

.footer-address{
    float:right;
}

.footer-dev { 
    position: absolute; 
    left: 50%; 
    transform: translateX(-50%); 
    font-size: 14px; 
    opacity: 0.7; 
}

/* ========================= GALERIA ========================= */

.gallery-container { 
    flex-direction: column; 
    gap: 40px; 
}

.gallery-title { 
    font-size: 42px; 
    margin: 80px 0 40px 0; 
    color: #b0186b; 
    text-align: center; 
}

.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px; 
    margin-bottom: 60px; 
}

.gallery-grid img { 
    width: 100%; 
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
    border-radius: 20px; 
    display: block; 
    border: 3px solid white; 
    box-shadow: 0 0 10px white, 0 0 25px white, 0 0 50px rgba(255,255,255,0.9); 
    transition: 0.3s ease; 
}

.gallery-grid img:hover { 
    transform: scale(1.08); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.25); 
}

/* Responsive */
@media(max-width: 900px){
    .gallery-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ===== CONTACTO ===== */

.contact-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-image img {
    width: 520px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.contact-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    padding: 40px;
    border-radius: 20px;
    width: 480px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.contact-card h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #c2187a;
}

.contact-card input,
.contact-card select,
.contact-card textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 16px;
    font-family: inherit;
}

.contact-card textarea {
    resize: none;
    height: 120px;
}

.contact-card button {
    width: 100%;
    padding: 16px;
    border-radius: 40px;
    border: none;
    background: linear-gradient(90deg, #ff2ea6, #ff008c);
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-card button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255,0,140,0.4);
}
.contact-header{
    text-align: center;
    margin: 0 auto 40px auto;
    max-width: 700px;
}

/* =========================================
   FIX REAL MOBILE DEFINITIVO
========================================= */

@media (max-width: 768px){

    html, body{
        width:100%;
        overflow-x:hidden;
    }

    /* evitar desbordes en cualquier imagen */
    img{
        max-width:100%;
        height:auto;
    }

    /* por seguridad */
    .services-grid{
        flex-wrap:wrap !important;
    }

    /* ===== HERO MOBILE IGUAL ESTILO PC ===== */

    .hero{
        height:100vh;
        padding:0;
    }

    .wrap{
        position:relative;
        height:100%;
    }

    /* TEXTO grande inclinado */
    .texto{
        position:absolute !important;
        width:130% !important;
        max-width:none !important;
        left:50% !important;
        top:55% !important;
        transform:translate(-50%, -50%) rotate(-6deg) scale(1) !important;
        opacity:1 !important;
    }

    /* LOGO arriba derecha como PC */
    .logo{
        position:absolute !important;
        width:140px !important;
        top:40% !important;
        right:8% !important;
        left:auto !important;
        transform:scale(1) !important;
        opacity:1 !important;
    }

    /* ===== GALERIA ===== */
    .gallery-grid{
        grid-template-columns: repeat(2, 1fr);
    }
/* ===== ABOUT MOBILE ===== */

.about-container{
    flex-direction: column;
    text-align: center;
}

.about-img{
    width: 100%;
}

.about-img img{
    width: 100%;
    max-width: 100%;
    height: auto;
}

.about-text{
    max-width: 100%;
}

    /* =========================================
       FOOTER MOBILE AJUSTADO (NO TOCADO)
    ========================================= */

    .footer{
        padding:60px 20px 30px 20px;
        margin-top:100px;
        text-align:center;
    }

    .footer-logo{
        position:relative;
        top:0;
        left:auto;
        transform:none;
        margin-bottom:20px;
    }

    .footer-logo img{
        width:160px;
    }

    .footer-line{
        margin-top:30px;
        margin-bottom:25px;
    }

    .footer-top-contact{
        flex-direction:column;
        gap:8px;
        font-size:15px;
    }

    .footer-address{
        font-size:14px;
    }

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

    .footer-dev{
        position:relative;
        left:auto;
        transform:none;
        margin-top:12px;
        font-size:12px;
    }

    .footer-social-icons{
        position:relative;
        right:auto;
        bottom:auto;
        justify-content:center;
        margin-top:18px;
        gap:12px;
    }

    .social-circle{
        width:42px;
        height:42px;
    }
}
/* ICONOS SOCIALES */
.footer-social-icons{
    position: absolute;
    top: 20px;   /* misma altura aproximada del logo */
    left: 0;
    right: 0;
}
.footer-social-icons .facebook{
    position: absolute;
    left: 30%;
}

.footer-social-icons .instagram{
    position: absolute;
    right: 30%;
}

/* CIRCULOS */
.social-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.social-circle svg {
    width: 22px;
    height: 22px;
    fill: white;
}

/* FACEBOOK */
.facebook {
    background: #1877f2;
}

/* INSTAGRAM */
.instagram {
    background: linear-gradient(45deg, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.social-circle:hover {
    transform: scale(1.1);
}
/* ===== BOTONES FLOTANTES ===== */

.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.whatsapp-float img {
    width: 24px;
    height: 24px;
}

.scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: #555;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 9999;
}