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

:root {
    --primary-color: #29b1a2;
    --secondary-color: #afbe25;
    --accent-color: #cde11b;
    --background-color: #bac17b;
    --text-color: #343a40;
    --main-shadow: 10px 10px 15px 5px rgba(0, 0, 0, 0.3);
    --text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

body {
    background-color: #ebf3af;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
::-webkit-scrollbar {
    border-radius: 20px;
}

.logo {
    width: 200px;        
    height: auto;        
    position: absolute;  
    top: 135px;          
    left: 22%;         
    pointer-events: none;
    transition: opacity 0.6s ease;
    z-index: 1001;
    opacity: 0;
}

.logo-servicios {
    width: 220px;        
    height: auto;        
    flex-shrink: 0;
    opacity: 0;
}


header {
    background-color: #29b1a2;
    padding: 20px;
    min-width: 100%;
    max-width: 100%;
    font-size: 20px;
    font-weight: bold;
    color: #343a40;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--main-shadow);
}

nav {
    display: flex;
    margin-right: 20px;
}

header nav a {
    color: #343a40;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #cde11b;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

header nav a:hover::after {
    width: 100%;
}

header nav a:hover {
    color: #cde11b;
    transform: translateY(-2px);
}

footer {
    margin-top: 3%;
    background-color: #29b1a2;
    padding: 30px 40px 20px;
    width: 100%;
    color: #343a40;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.footer-section h3 {
    color: #343a40;
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: bold;
}

.footer-section p,
.footer-section a {
    color: #343a40;
    line-height: 1.6;
    font-size: 14px;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
}

.footer-section a:hover {
    transition: all 0.3s ease;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid rgba(52, 58, 64, 0.2);
    font-size: 13px;
}

.footer-map {
    display: flex;
    border: none;
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.contact-item span {
    font-size: 16px;
}

.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start; 
}

.left {
    display: grid;
    gap: 20px;
    grid-auto-rows: min-content;
}

.cuadro-1 {
    background-color: #afbe25;
    padding: 70px;
    border-radius: 7px;
    height: 220px;
    width: 70%;
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 30px;
    margin-top: 60px;
    margin-left: 20px;
    box-shadow: var(--main-shadow);
    overflow-wrap: break-word;  
    word-break: normal;      
    white-space: normal;
}

.cuadro-2 {
    background-color: #29b1a2;
    padding: 40px;
    height: 220px;
    border-radius: 7px;
    width: 100%;
    grid-column: 1;
    grid-row: 2;
    margin-left: 20px;
    box-shadow: var(--main-shadow);
    overflow-wrap: break-word;  
    word-break: normal;      
    white-space: normal;
}

.cuadro-3 {
    grid-column: 2;
    width: 95%;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    margin-right: 0px;
    margin-left: 200px;
    margin-top: 65px;
}

.form-section {
    position: relative;
    min-height: fit-content;
    height: fit-content;
    background: #afbe25;
    padding: 40px;
    border-radius: 25px;
    box-shadow: var(--main-shadow);
    color: #333;
    width: 100%;
    max-width: 500px;
}

.form-section h2 {
    color: #343a40;
    margin-bottom: 30px;
    font-size: 2.2em;
    text-align: center;
    font-weight: bold;
}

.form-section input, 
.form-section textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    border: 2px solid rgba(26, 79, 207, 0.2);
    border-radius: 15px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-section input:focus, 
.form-section textarea:focus {
    outline: none;
    border-color: #1a4fcf;
    box-shadow: 0 0 15px rgba(26, 79, 207, 0.2);
    background: white;
}

.form-section textarea {
    min-height: 120px;
    resize: vertical;
}

.form-section button {
    background: linear-gradient(135deg, #29b1a2);
    color: white;
    border: none;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(26, 79, 207, 0.3);
}

.form-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(26, 79, 207, 0.4);
    background: linear-gradient(135deg, #29b1a2 0%, #29b1a2 100%);
}

.notificacion {
    display: none;
    position: absolute; 
    top: 20px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    padding: 16px 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    min-width: 280px;
    max-width: 90%;
    opacity: 0;
}

.notificacion.show {
    display: block;
    animation: slideDown 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.notificacion.hide {
    animation: fadeOut 0.4s ease-out forwards;
}

.notificacion.error {
    background: linear-gradient(135deg, #fff5f5 0%, #fee 100%);
    color: #c53030;
    border: 2px solid #fc8181;
    box-shadow: 0 8px 24px rgba(197, 48, 48, 0.2);
}

.notificacion.ok {
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
    color: #22543d;
    border: 2px solid #68d391;
    box-shadow: 0 8px 24px rgba(72, 187, 120, 0.2);
}

.notificacion.info {
    background: linear-gradient(135deg, #ebf8ff 0%, #e0f2fe 100%);
    color: #2c5282;
    border: 2px solid #63b3ed;
    box-shadow: 0 8px 24px rgba(66, 153, 225, 0.2);
}

.notificacion.warning {
    background: linear-gradient(135deg, #fffaf0 0%, #fef5e7 100%);
    color: #744210;
    border: 2px solid #f6ad55;
    box-shadow: 0 8px 24px rgba(221, 107, 32, 0.2);
}

.notificacion-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 18px;
    animation: iconBounce 0.5s ease;
}

.servicios-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px 20px;
    opacity: 0;
}

.servicios-header-text {
    text-align: left;
}

.servicios-header h1 {
    font-size: 48px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.servicios-header p {
    font-size: 20px;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 100%;
    margin: 0 auto;
}

.servicio-card {
    background: var(--secondary-color);
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--main-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
}

.servicio-card:hover {
    transform: translate(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.servicio-card h3 {
    color: var(--text-color);
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
}

.servicio-card p {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
}

.servicio-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}
.productos-cuadro {
    border-radius: 20px;
    background-color: #c5ce73 ;
    margin: auto;
    min-height: 100dvh;
    width: 90%;
    box-shadow: var(--main-shadow);
    overflow-wrap: break-word;  
    word-break: normal;      
    white-space: normal;
    overflow: auto;
    opacity: 0;
}
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));;
    margin: 10%;
    gap: 3%;
    max-width: 1400px;
}

.productos-cuadro h1 {
    font-size: 48px;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}
.productos-cuadro h2 {
    border-radius: 5px;
    border: 1px solid black;
    border-top: 20px;
}
.productos-cuadro p {
    font-size: 20px;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.productos-cuadro h3 {
    margin-left: 10px;
}
.productos-card {
    width: 110%;
    margin-bottom: 15px;
    height: auto;
    background: #f8f8f8;
    border-radius: 15px;
    box-shadow: 10px 10px 15px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
}
.productos-card:hover {
    transform: translate(0, 5px);
}
.productos-img {
    width: 100%;
    border-radius: 15px;
    height: 100%;
}
.equipo-cuadro {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--secondary-color);
    width: 60%;
    border-radius: 15px;
    min-height: 800px;
    max-height: 800px;
    margin-left: 270px;
    box-shadow: var(--main-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: auto;
}
.personal-cuadro {
    display: grid;
    place-items: center;
    background-color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 15px;
    min-height: 500px;
    min-width: 70%;
    padding: 20px;
    box-shadow: var(--main-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
}
.personal-img {
    border-radius: 10px;
    width: 50%;
    height: 100%;
}
.cta-section {
    background: var(--primary-color);
    padding: 30px;
    width: 1000px;
    margin: auto;
    margin-top: 3%;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--main-shadow);
    opacity: 0;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.cta-section p {
    font-weight: bold;
    font-size: 17px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.cta-button {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: #bccf3e;
}

h1 {
    color: #343a40;   
    margin-bottom: 18px;
    font-size: 35px;
}

h2 {
    color: #343a40;   
    margin-bottom: 15px;
}

p {
    color: #343a40;
    line-height: 1.6;
    margin-bottom: 10px;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    animation: slideInRight 0.8s ease forwards;
}

.slide-in-top {
    opacity: 0;
    transform: translateY(-50px);
    animation: slideInTop 0.6s ease forwards;
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInTop {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes fadeInDown {
    from { 
        opacity: 0; 
        transform: translate(-50%, -20px); 
    }
    to { 
        opacity: 1; 
        transform: translate(-50%, 0); 
    }
}

@media (max-width: 768px) {
    body {
        background-color: #ebf3af;
    }
    header {
        font-size: 15px;
    }
    
    .logo {
        left: 41%;    
        width: 130px;        
        top: 116px;           
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .left {
        gap: 20px;
    }
    
    .cuadro-1 {
        width: 70%;
        height: 75%;
        margin-top: 30px;
    }
    
    .cuadro-2 {
        width: 90%;
        height: 100%;
    }
    
    .cuadro-1, .cuadro-2 {
        margin-right: 0;
        margin-left: 10px;
        padding: 60px 20px;
    }

    .cuadro-3 {
        margin-top: 30px;
        margin-left: 10px;
        height: auto;
        width: calc(100% - 20px) !important;
        padding: 0;
    }
    
    .form-section {
        max-width: 100%;
        padding: 30px 20px;
    }
    
    .form-section h2 {
        font-size: 1.5em;   
    }

    .form-section button {
        font-size: 14px;     
        padding: 14px 20px;  
        border-radius: 30px; 
        white-space: nowrap; 
    }

    .form-section input, 
    .form-section textarea {
        font-size: 14px;
        padding: 12px;
    }
    
    .notificacion {
        min-width: 90%;
        font-size: 14px;
        padding: 14px 20px;
    }
    
    .logo-servicios {
        width: 120px;
        height: auto;
        display: block;
        margin: 30px auto 15px;
        opacity: 0;
    }

    .servicios-header {
        padding: 20px 20px 20px;
    }

    .servicios-header h1 {
        font-size: 32px;
    }

    .servicios-header p {
        font-size: 16px;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
        padding: 20px 10px;
        gap: 20px;
    }
    .servicio-card {
        padding: 25px;
    }
    .productos-cuadro {
        border-radius: 25px;
        width: 90%;
        min-height: 100dvh;
        max-height: 500px;
    }

    .productos-buscador {
        width: 50%;
    }
    .productos-card {
        margin-left: 6.5%;
    }
    .equipo-cuadro {
        width: 80%;
        margin: auto;
    }
    .personal-cuadro {
        margin-left: 15px;
        height: 300px;
        width: 80%;
    }
    .personal-img {
        height: 80%;
        width: 75%;
    }

    .personal-cuadro h2 {
        font-size: 15px;
    }
    .cta-section {
        width: auto;
        padding: 20px 10px;
        margin: 20px;
    }

    .cta-section h2 {
        font-size: 24px;
    }

    .cta-section p {
        font-size: 16px;
    }
    
    h1, h2 {
        font-size: 21px;
        justify-content: center;
        margin-bottom: 10px; 
    }

    footer {
        margin-top: 10%;
        padding: 25px 20px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .footer-bottom {
        margin-top: 15px;
        padding-top: 12px;
        font-size: 12px;
    }
}
