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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #f39c12;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
}

/* Elementos decorativos del fondo del sitio */
.site-paint-splashes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.site-paint-splash {
    position: absolute;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.25;
    filter: blur(3px);
    animation: siteFloat 25s ease-in-out infinite;
}

.site-paint-splash-1 {
    width: 250px;
    height: 230px;
    background: #ff6b6b;
    top: 5%;
    left: 3%;
    animation-delay: 0s;
}

.site-paint-splash-2 {
    width: 200px;
    height: 180px;
    background: #4ecdc4;
    top: 45%;
    right: 8%;
    animation-delay: 3s;
}

.site-paint-splash-3 {
    width: 220px;
    height: 240px;
    background: #ffe66d;
    bottom: 10%;
    left: 12%;
    animation-delay: 6s;
}

.site-paint-splash-4 {
    width: 180px;
    height: 160px;
    background: #a8e6cf;
    top: 25%;
    right: 15%;
    animation-delay: 9s;
}

.site-paint-splash-5 {
    width: 210px;
    height: 190px;
    background: #ff8b94;
    bottom: 25%;
    right: 4%;
    animation-delay: 12s;
}

.site-paint-splash-6 {
    width: 190px;
    height: 200px;
    background: #c7ceea;
    top: 60%;
    left: 45%;
    animation-delay: 15s;
}

@keyframes siteFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -40px) rotate(8deg);
    }
    50% {
        transform: translate(-25px, -30px) rotate(-8deg);
    }
    75% {
        transform: translate(15px, -20px) rotate(5deg);
    }
}

.site-art-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.site-art-element {
    position: absolute;
    font-size: 3.5rem;
    opacity: 0.25;
    animation: siteArtFloat 18s ease-in-out infinite;
}

.site-pencil-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.site-pencil-2 {
    bottom: 20%;
    right: 12%;
    animation-delay: 6s;
}

.site-brush-1 {
    top: 50%;
    right: 6%;
    animation-delay: 3s;
}

.site-brush-2 {
    bottom: 35%;
    left: 20%;
    animation-delay: 9s;
}

@keyframes siteArtFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(-20deg);
    }
    33% {
        transform: translate(40px, -50px) rotate(-10deg);
    }
    66% {
        transform: translate(-30px, -30px) rotate(-30deg);
    }
}

.site-pencil-2 {
    animation-name: siteArtFloat2;
}

@keyframes siteArtFloat2 {
    0%, 100% {
        transform: translate(0, 0) rotate(40deg);
    }
    33% {
        transform: translate(-40px, -50px) rotate(50deg);
    }
    66% {
        transform: translate(30px, -30px) rotate(30deg);
    }
}

.site-brush-1,
.site-brush-2 {
    animation-name: siteArtFloat3;
}

@keyframes siteArtFloat3 {
    0%, 100% {
        transform: translate(0, 0) rotate(50deg);
    }
    33% {
        transform: translate(35px, -45px) rotate(60deg);
    }
    66% {
        transform: translate(-35px, -35px) rotate(40deg);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Navegación */
.navbar {
    background: transparent;
    box-shadow: none;
    border: none;
    outline: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    overflow: visible;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 20px;
    position: relative;
    z-index: 2;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand .logo {
    height: 160px;
    width: auto;
    object-fit: contain;
}

.nav-brand h1 {
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.25rem;
    transition: var(--transition);
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: var(--transition);
}

/* Elementos decorativos del navbar */
.navbar-paint-splashes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.navbar-paint-splash {
    position: absolute;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.2;
    filter: blur(2px);
    animation: navbarFloat 15s ease-in-out infinite;
}

.navbar-paint-splash-1 {
    width: 80px;
    height: 70px;
    background: #ff6b6b;
    top: -10%;
    left: 5%;
    animation-delay: 0s;
}

.navbar-paint-splash-2 {
    width: 60px;
    height: 55px;
    background: #4ecdc4;
    top: -10%;
    right: 15%;
    animation-delay: 3s;
}

.navbar-paint-splash-3 {
    width: 70px;
    height: 65px;
    background: #ffe66d;
    top: -10%;
    right: 40%;
    animation-delay: 6s;
}

@keyframes navbarFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, -15px) rotate(5deg);
    }
    50% {
        transform: translate(-8px, -10px) rotate(-5deg);
    }
    75% {
        transform: translate(5px, -5px) rotate(3deg);
    }
}

.navbar-art-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.navbar-art-element {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: navbarArtFloat 12s ease-in-out infinite;
}

.navbar-pencil {
    top: 50%;
    left: 8%;
    animation-delay: 0s;
    transform: translateY(-50%);
}

.navbar-brush {
    top: 50%;
    right: 10%;
    animation-delay: 4s;
    transform: translateY(-50%);
}

@keyframes navbarArtFloat {
    0%, 100% {
        transform: translateY(-50%) translateX(0) rotate(0deg);
    }
    33% {
        transform: translateY(-50%) translateX(15px) rotate(10deg);
    }
    66% {
        transform: translateY(-50%) translateX(-10px) rotate(-10deg);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    padding: 0 20px 100px;
    text-align: center;
    margin-top: 0;
    padding-top: calc(100px + 150px);
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Manchas de pintura decorativas */
.hero-paint-splashes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.paint-splash {
    position: absolute;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.3;
    filter: blur(2px);
    animation: float 20s ease-in-out infinite;
}

.paint-splash-1 {
    width: 200px;
    height: 180px;
    background: #ff6b6b;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.paint-splash-2 {
    width: 150px;
    height: 160px;
    background: #4ecdc4;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.paint-splash-3 {
    width: 180px;
    height: 200px;
    background: #ffe66d;
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
}

.paint-splash-4 {
    width: 120px;
    height: 140px;
    background: #a8e6cf;
    top: 30%;
    right: 20%;
    animation-delay: 6s;
}

.paint-splash-5 {
    width: 160px;
    height: 170px;
    background: #ff8b94;
    bottom: 30%;
    right: 5%;
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -30px) rotate(5deg);
    }
    50% {
        transform: translate(-15px, -20px) rotate(-5deg);
    }
    75% {
        transform: translate(10px, -10px) rotate(3deg);
    }
}

/* Elementos artísticos (lápices y pinceles) */
.hero-art-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.art-element {
    position: absolute;
    font-size: 3rem;
    opacity: 0.4;
    animation: artFloat 15s ease-in-out infinite;
}

.pencil-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.pencil-2 {
    bottom: 25%;
    right: 15%;
    animation-delay: 5s;
}

.brush {
    top: 50%;
    right: 8%;
    animation-delay: 10s;
}

@keyframes artFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(-25deg);
    }
    33% {
        transform: translate(30px, -40px) rotate(-15deg);
    }
    66% {
        transform: translate(-20px, -20px) rotate(-35deg);
    }
}

.pencil-2 {
    animation-name: artFloat2;
}

@keyframes artFloat2 {
    0%, 100% {
        transform: translate(0, 0) rotate(35deg);
    }
    33% {
        transform: translate(-30px, -40px) rotate(45deg);
    }
    66% {
        transform: translate(20px, -20px) rotate(25deg);
    }
}

.brush {
    animation-name: artFloat3;
}

@keyframes artFloat3 {
    0%, 100% {
        transform: translate(0, 0) rotate(45deg);
    }
    33% {
        transform: translate(25px, -35px) rotate(55deg);
    }
    66% {
        transform: translate(-25px, -25px) rotate(35deg);
    }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: #f39c12;
    color: #fff;
    border: none;
    margin-left: 12px;
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: #d68910;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.hero-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* Secciones */
section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    /* Antes solo tenía margin-bottom; añadimos margen superior
       para que el título no quede pegado al menú fijo */
    margin: 70px 0 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Servicios */
.servicios {
    background: rgba(255, 255, 255, 0.15);
}

/* Contenido de páginas internas (Servicios, Galería, etc.) */
.page-content {
    /* Espacio entre el menú y el contenido (Servicios, Galería, etc.). Reduce este valor para acercar el título al menú. */
    padding-top: 200px;
}

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

.servicio-card {
    background: rgba(255, 255, 255, 0.85);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.servicio-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.servicio-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    background: rgba(255,255,255,0.9);
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

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

.servicio-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.servicio-features {
    list-style: none;
    text-align: left;
}

.servicio-features li {
    padding: 0.5rem 0;
    color: var(--text-color);
    position: relative;
    padding-left: 25px;
}

.servicio-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Galería */
.galeria {
    background: rgba(255, 255, 255, 0.15);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 0;
}

.galeria-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    cursor: pointer;
    background: transparent;
    width: 100%;
    position: relative;
    aspect-ratio: 1;
    transform: scale(0.85);
    will-change: transform;
}

.galeria-item:hover {
    transform: scale(1.3) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
    position: relative;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
    border-radius: 10px;
}

/* Videos: contenedores del tamaño del video (16:9), sin cuadrados enormes */
/* Menos espacio entre título/subtítulo y los iframes en Videos */
.videos .section-title {
    margin-bottom: 0.25rem;
}
.videos .section-subtitle {
    margin-bottom: 0.75rem;
}

.videos .galeria-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
}

.videos .galeria-item {
    aspect-ratio: 16/9;
    transform: none;
    max-width: 100%;
    position: relative;
}

.videos .galeria-item:hover {
    transform: none;
}

.videos .galeria-item iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
    border: none;
}

/* Sobre */
.sobre {
    background: rgba(255, 255, 255, 0.15);
    padding-top: 0.5rem;
    min-height: calc(100vh - 200px);
}

/* Menos espacio entre el título de página y el "Quiénes Somos" del contenido */
.sobre .section-title {
    margin: 0 0 1rem;
}

.sobre-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.sobre-text {
    padding: 2rem 0;
}

.sobre-text p {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
}

/* Contacto */
.contacto {
    background: rgba(255, 255, 255, 0.15);
    margin-top: 0;
    padding-top: 0.5rem;
}

/* Menos espacio entre el título "Contacto" (negro) y el formulario */
.page-content:has(section.contacto) .page-title {
    margin-bottom: 0.5rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 3rem;
    background: rgba(255, 255, 255, 0.85);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form-message {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
}
.contact-form-success {
    background: rgba(39, 174, 96, 0.2);
    border-left: 4px solid #27ae60;
    color: #1e8449;
}
.contact-form-error {
    background: rgba(231, 76, 60, 0.2);
    border-left: 4px solid #e74c3c;
    color: #c0392b;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

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

.form-group textarea {
    resize: vertical;
}

.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-item strong {
    color: var(--primary-color);
    margin-right: 10px;
}

.contact-item-whatsapp {
    margin-top: 0.75rem;
}
.btn-whatsapp {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 8px 16px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-whatsapp:hover {
    background: #20bd5a;
    color: #fff;
}

/* Footer */
.footer {
    background: rgba(44, 62, 80, 0.95);
    color: white;
    text-align: center;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.footer p {
    margin: 0.5rem 0;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }
    
    .nav-menu a {
        color: var(--primary-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-brand .logo {
        height: 120px;
    }

    .nav-brand h1 {
        font-size: 1.6rem;
    }

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

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

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

    .servicios-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-brand .logo {
        height: 100px;
    }

    .nav-brand h1 {
        font-size: 1.4rem;
    }

    .hero {
        /* Más espacio arriba en móvil para que el título no se corte con el menú fijo */
        padding: 160px 20px 80px;
    }

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

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

    section {
        padding: 60px 0;
    }
}

