@import url('https://fonts.googleapis.com/css2?family=Playfair+Display&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");
/* NEW: Raleway for AI Flex Slider */
@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', serif;
}

html{
    scroll-behavior: smooth;
}
body{
    background: #F0F2E8;
}

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* Header Styling:Start */
#header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 1000;
    height: 70px; /* Explicitly defining height */
    padding: 20px;
    width: 100%;
    border-bottom: 2px solid #000;

    background: #F7A400;
}

#header-img{
    height: 30px;
    width: auto;
}

#nav-bar ul{
    display: flex;
    justify-content: space-around;
    width: 450px; /* Increased width to accommodate links */
    list-style-type: none;
}

/* Dropdown specific styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
    padding: 5px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: black !important;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    text-align: left;
    width: 100%;
    font-family: 'Poppins', sans-serif !important;
}

.dropdown-content a:hover {
    background-color: #F0F2E8;
}

/* New styles for nested AI dropdown */
.dropdown-sub {
    position: relative;
}
.dropdown-sub-content {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10;
    border-radius: 5px;
    overflow: hidden;
    padding: 5px 0;
}
/* When hovering over the IA link (which is inside .dropdown-content) */
.dropdown-content > .dropdown-sub:hover .dropdown-sub-content {
    display: block;
}
/* Style the IA link to look like a menu item and show arrow */
.dropdown-content > .dropdown-sub > a {
    color: black !important;
    padding: 10px 15px !important;
    text-decoration: none;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-family: 'Poppins', sans-serif !important;
}
.dropdown-content > .dropdown-sub > a:hover {
    background-color: #F0F2E8;
}

#nav-bar a{
    font-weight: 500;
    color: #000;
    text-decoration: none;
    padding: 5px 10px; 
    display: inline-block;
    transition: color 0.3s;
}

#nav-bar a.active {
    font-weight: 600;
    border-bottom: 2px solid #000;
}

#nav-bar ion-icon{
    display: none;
    padding: 5px;
    font-size: 30px;
    border-radius: 50px;
}

#nav-bar ion-icon:hover{
    background: rgba(255, 255, 255, 0.2);
    transition: 0.5s all ease-in-out;
}
/* Header Styling:End */

/* Hero Styling:Start */
.hero{
    display: flex; /* Changed from block */
    flex-direction: column;
    justify-content: flex-start; /* Changed from center: Align content to the top (just below padding) */
    height: fit-content;
    min-height: 100vh; /* Changed for full screen height request (pantalla completa) */
    width: 100%;
    padding: 0; /* Remove old vertical padding (150px 0) */
    padding-top: 70px; /* Add padding to account for fixed header, ensures content is visible */
    text-align: left;
    background: url('/ilustracion-3d-prestados-de-un-diseno-de-rostro-humano (1).jpg') no-repeat center center; /* New background image */
    background-size: cover;
    position: relative;
    min-height: 500px; 
}

/* Optional overlay to soften the image and maintain contrast */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(255, 255, 255, 0.4); */ /* Filter removed as requested by user */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* Style for text container (inside .container) */
.hero-text-area {
    max-width: 600px; /* Reduced width to make left alignment more prominent */
    margin-left: 0; /* Adjusted from -15px to align with container left edge (20px padding) */
    margin-right: auto;
    text-align: left; /* Explicitly ensure left alignment */
    margin-top: 15vh; /* NEW: Push content significantly lower on PC screens using VH units */
}

.hero h1{ 
    width: 100%;
    max-width: none;
    margin: 0 0 10px 0;
    font-size: 38px; /* Reduced from 45px */
    color: #fff; /* Ensure visibility against colorful background */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.hero .sub-title{
    font-size: 15px; /* Reduced from 16px */
    font-weight: 400;
    margin-top: 10px;
    color: #fff; /* Ensure visibility against colorful background */
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.hero form{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 35px 0 10px;
}

.hero form input:first-child{
    height: 40px;
    width: 300px;
    padding: 10px;
    border-radius: 6px;
    border: 2px solid gainsboro;
    font-family: 'Poppins', sans-serif;
}

.hero input#submit{
    cursor: pointer;
    height: 40px;
    width: 100px;
    margin-left: 20px;
    font-weight: 600;
    color: #FFF;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;

    background: #000;
}

#acknowledgement{
    font-size: 10px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #fff; /* Ensure visibility against colorful background */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
}

#acknowledgement a{
    color: #F7A400;
    text-shadow: none;
}
/* Hero Styling:End */

/* General Section Title */
h3{
    margin-bottom: 50px;
    font-size: 40px;
    text-align: center;
}

/* Features Styling:Start (Standard template code preserved/ignored) */
#features{
    display: block;
    height: fit-content;
    width: 100%;
    padding: 100px 0; 
    text-align: center;
}
#features .box{
    display: inline-block;
    max-width: 300px;
    margin: 15px;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#features .box ion-icon{
    font-size: 40px;
    margin-bottom: 15px;
    color: #F7A400;
}

#features h4{
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

#features p{
    font-family: 'Poppins', sans-serif;
    color: #737373;
    font-size: 15px;
}

/* Features Styling:End */

/* Pricing Table:Start (Standard template code preserved/ignored) */
#pricing{
    height: fit-content;
    width: 100%;
    padding: 100px 0;
    text-align: center;
    background: #fff;
}

#pricing .table{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

#pricing .table .plan{
    height: 400px;
    width: 300px;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: #fcfcfc;
    transition: transform 0.3s;
}

#pricing .table .plan:hover{
    transform: translateY(-5px);
}

#pricing .table .plan h4{
    font-size: 25px;
    font-family: 'Poppins', sans-serif;
}

#pricing .table .plan h3{
    font-size: 20px;
    margin-bottom: 10px;
    color: #555;
    font-family: 'Poppins', sans-serif;
}

#pricing .table .plan p{
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

#pricing .table .plan button{
    cursor: pointer;
    height: 40px;
    width: 100%;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    color: #FFF;
    background: #000;
    font-family: 'Poppins', sans-serif;
    transition: background 0.3s;
}

#pricing .table .plan button:hover{
    background: #333;
}
/* Pricing Table:End */

/* Footer:Start */
.footer{
    display: block;
    padding: 40px 20px; 
    height: fit-content;
    text-align: left; 
    margin-top: 40px;
    background: rgba(123, 134, 118, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.footer-section ul {
    display: block;
    width: auto;
    list-style-type: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    color: #444;
    font-size: 0.9em;
}

.footer-bottom {
    border-top: 1px solid #ccc;
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
}

.footer p{
    font-family: "Poppins", sans-serif;
    color: #737373;
    font-size: 0.8em;
}

.social-links a {
    margin-right: 10px;
    font-size: 1.5em;
    color: #000;
}

/* Newsletter CTA styling for footer/general use */
.newsletter-cta {
    padding: 20px;
    border: 1px solid #000;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    max-width: 400px;
    margin: 20px auto;
}

.newsletter-cta h4 {
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.newsletter-cta form {
    display: flex;
    justify-content: center;
}
.newsletter-cta input[type="email"] {
    font-family: 'Poppins', sans-serif;
}
/* Footer:End */

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.pagination button {
    background: #F7A400;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    color: #000;
    font-family: 'Poppins', sans-serif;
}
.pagination button.active {
    background: #000;
    color: #FFF;
    font-weight: 700;
}
.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Page Responsiveness:Start */
@media screen and (width < 950px) {
    .footer-content {
        justify-content: space-around;
    }
    .footer-section {
        min-width: 150px;
    }
}

@media screen and (width < 768px) {
    #header ul {
        display: none;
    }
    #nav-bar ion-icon {
        display: block;
    }
    .dropdown:hover .dropdown-content {
        display: none; /* Hide hover effect on mobile */
    }
    
    .hero h1 {
        font-size: 30px;
    }
    .hero-text-area {
        margin: 0 auto; 
        text-align: center;
        margin-top: 20px; /* Reset vertical margin for mobile */
    }
    .hero input#submit {
        margin-left: 0;
    }
    .hero form {
        flex-direction: column;
        justify-content: center;
    }
    .hero form input:first-child {
        width: 80%;
        max-width: 300px;
        margin-bottom: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    .footer-section {
        width: 100%;
        text-align: center;
    }
    .newsletter-cta {
        margin: 20px 0;
    }
}
@media screen and (width < 650px) {
    #features .box{
        max-width: 420px;
    }
}
/* Page Responsiveness:End */

/* General button style */
.btn {
    padding: 10px 20px;
    background: #F7A400;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    transition: background 0.3s;
}
.btn-primary {
    background: #000;
    color: #FFF;
}
.btn:hover {
    opacity: 0.9;
}

.post-content {
    line-height: 1.8;
    font-family: 'Poppins', sans-serif;
}
.post-content p {
    margin-bottom: 1em;
}

/* NEW: Styling for links within post content (blue text as requested) */
.post-content p a, 
.post-content li a {
    color: #0000ff !important; /* Blue color */
    text-decoration: underline;
    font-weight: 500;
}
.post-content p a:hover, 
.post-content li a:hover {
    color: #0000ff; /* Keep blue on hover */
    opacity: 0.8;
}

/* New style for embedded images in post content */
.content-image-wrapper {
    max-width: 100%;
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.content-image-wrapper:hover {
    transform: scale(1.02);
}

.content-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.content-image-wrapper .caption {
    text-align: center;
    padding: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #555;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}