/* Reset y variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #60B657;
    --secondary-green: #7BC142;
    --accent-blue: #4A72B8;
    --dark-blue: #3A5998;
    --navy-blue: #2C4B8D;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
}

/* Ensure water effects work properly on all devices */
body {
    /* ...existing code... */
    position: relative;
    overflow-x: hidden;
}

/* Prevent text selection during water effects */
.water-effect, .water-ripple, .floating-bubble, .touch-effect {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Hero Section */
.hero {
    background: url('hom b.webp') center center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 2rem;
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    max-width: 600px;
}

.hero-main-image {
    display: none;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 3;
    margin-top: 2rem;
}

.hero-description {
    font-size: 1.4rem;
    color: var(--white);
    line-height: 1.7;
    margin-bottom: 3rem;
    font-weight: 600;
    max-width: 600px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--dark-blue));
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-blue), var(--navy-blue));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #20C55A);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #20C55A, #1DA851);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--dark-blue));
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-blue), var(--navy-blue));
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #20C55A;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.feature-card {
    background: var(--white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background: url('fondo.png') repeat;
    background-size: auto;
    color: var(--white);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 2rem;
    background: url('fondo.png') repeat;
    background-size: auto;
    position: relative;
}

.contact-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--dark-blue));
    padding: 1rem 2rem;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.contact-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.error-message {
    color: #f44336;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.captcha-group {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-green);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    font-size: 1.1rem;
    padding: 1.25rem;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    transform: translateY(-2px);
}

/* Social & Footer Combined Section */
.social-footer-section {
    padding: 4rem 2rem 2rem;
    background: url('fondo.png') repeat;
    background-size: auto;
    position: relative;
}

.social-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Social Content */
.social-content {
    text-align: center;
    margin-bottom: 4rem;
}

.social-content h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    color: var(--white);
}

.social-link.facebook {
    background: #1877F2;
}

.social-link.facebook:hover {
    background: #166FE5;
    transform: translateY(-3px);
}

.social-link.whatsapp {
    background: #25D366;
}

.social-link.whatsapp:hover {
    background: #20C55A;
    transform: translateY(-3px);
}

/* Footer Content within combined section */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-image {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
    filter: brightness(1.1);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 500;
}

.footer-contact h4 {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.2rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: var(--white);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    margin: 2rem;
    box-shadow: var(--shadow-hover);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header i {
    font-size: 4rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.modal-header h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
}

.modal-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Water Drop Effects */
.water-effect {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    color: rgba(74, 114, 184, 0.8);
    font-size: 1.5rem;
    animation: waterDrop 2s ease-out forwards;
    background: radial-gradient(circle, rgba(74, 114, 184, 0.3), transparent);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes waterDrop {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.3) rotate(360deg) translateY(50px);
        opacity: 0;
    }
}

/* Water Ripple Effect */
.water-ripple {
    position: fixed;
    pointer-events: none;
    z-index: 999;
    border: 2px solid rgba(96, 182, 87, 0.6);
    border-radius: 50%;
    animation: rippleEffect 1.5s ease-out forwards;
}

@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* Floating Water Bubbles */
.floating-bubble {
    position: fixed;
    pointer-events: none;
    z-index: 998;
    background: radial-gradient(circle, rgba(96, 182, 87, 0.3), rgba(74, 114, 184, 0.2));
    border-radius: 50%;
    animation: floatBubble 3s ease-out forwards;
}

.floating-bubble.large {
    animation: floatBubbleLarge 4s ease-out forwards;
}

@keyframes floatBubble {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-30px) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) scale(0.5);
        opacity: 0;
    }
}

@keyframes floatBubbleLarge {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0.9;
    }
    25% {
        transform: translateY(-20px) scale(0.8);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-80px) scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: translateY(-150px) scale(0.3);
        opacity: 0;
    }
}

/* Touch effect for mobile */
.touch-effect {
    position: fixed;
    pointer-events: none;
    z-index: 1001;
    background: radial-gradient(circle, rgba(96, 182, 87, 0.4), transparent);
    border-radius: 50%;
    animation: touchWave 1s ease-out forwards;
}

@keyframes touchWave {
    0% {
        width: 20px;
        height: 20px;
        opacity: 0.8;
    }
    100% {
        width: 150px;
        height: 150px;
        opacity: 0;
    }
}

/* Animations */
@keyframes productFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.water-drop {
    position: absolute;
    font-size: 2rem;
    opacity: 0.7;
    animation: dropAnimation 4s infinite ease-in-out;
}

.drop-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.drop-2 {
    top: 60%;
    right: 20%;
    animation-delay: 1.5s;
}

.drop-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

@keyframes dropAnimation {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        background: url('for-mobil.png') center center/contain no-repeat, url('fondo.png') repeat;
        background-size: contain, auto;
        background-position: center center, center center;
        min-height: 100vh;
        position: relative;
    }
    
    .hero::after {
        content: '';
        position: absolute;
        top: 2rem;
        left: 50%;
        transform: translateX(-50%);
        width: 45vw;
        max-width: 200px;
        min-width: 150px;
        height: auto;
        aspect-ratio: 2/1;
        background: url('logo.png') center center/contain no-repeat;
        background-size: contain;
        z-index: 10;
    }
    
    .hero::before {
        background: transparent;
    }
    
    .hero-content {
        padding: 1rem;
        justify-content: center;
        padding-right: 1rem;
        padding-top: 5rem;
    }
    
    .hero-content-wrapper {
        align-items: center;
        text-align: center;
        max-width: none;
        gap: 2rem;
    }
    
    .hero-actions {
        align-items: center;
        text-align: center;
        margin-top: 2rem;
    }
    
    .hero-description {
        display: none;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        justify-content: center;
    }
    
    .btn {
        width: 250px;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem;
        margin: 1rem;
    }
      .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .logo-image {
        max-width: 150px;
        margin: 0 auto 1rem;
    }
    
    .footer-logo {
        align-items: center;
        text-align: center;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-link {
        width: 200px;
        justify-content: center;
    }
    
    .features {
        padding: 3rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        background: url('for-mobil.png') center center/contain no-repeat, url('fondo.png') repeat;
        background-size: contain, auto;
        background-position: center center, center center;
        padding: 1rem;
        position: relative;
    }
    
    .hero::after {
        content: '';
        position: absolute;
        top: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 60vw;
        max-width: 250px;
        min-width: 180px;
        height: auto;
        aspect-ratio: 2/1;
        background: url('logo.png') center center/contain no-repeat;
        background-size: contain;
        z-index: 10;
    }
    
    .hero::before {
        background: transparent;
    }
    
    .hero-content {
        padding-right: 1rem;
        padding-top: 4rem;
    }
    
    .hero-description {
        display: none;
    }
    
    .btn {
        width: 220px;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .modal-content {
        padding: 2rem;
        margin: 1rem;
    }
}

/* Pantallas muy pequeñas (menos de 360px) */
@media (max-width: 359px) {
    .hero::after {
        width: 70vw;
        max-width: 220px;
        min-width: 160px;
        top: 1rem;
    }
    
    .hero-content {
        padding-top: 3.5rem;
    }
}

/* Pantallas pequeñas de móvil (360px - 480px) */
@media (min-width: 360px) and (max-width: 480px) {
    .hero::after {
        width: 65vw;
        max-width: 240px;
        min-width: 180px;
    }
}
